Closed HareshPrajapati closed 5 months ago
Hi @HareshPrajapati, could you please check if it works in Arduino IDE?
@valeros It is completely compiled on an Arduino.
@valeros It is completely compiled on an Arduino.
No, if you only defined HAL_ETH_LEGACY_MODULE_ENABLED
it does not compile but this is normal.
You have to define also: HAL_ETH_MODULE_DISABLED
So you have to define both:
#define HAL_ETH_LEGACY_MODULE_ENABLED
#define HAL_ETH_MODULE_DISABLED
I already did it. see.. still throwing same errors
i have the same problem
Any Update?
What happens if you set those defines globally in the platformio.ini
file? For example:
...
build_flags =
-DENABLE_HWSERIAL2
-DHAL_ETH_LEGACY_MODULE_ENABLED
-DHAL_ETH_MODULE_DISABLED
Thank you very much @valeros
It Works !
build_flags =
-DENABLE_HWSERIAL2
-DHAL_ETH_LEGACY_MODULE_ENABLED
-DHAL_ETH_MODULE_DISABLED
Solution..
Just a quick thought, the hal_conf_extra.h
file should work in pio environment.
https://github.com/stm32duino/Arduino_Core_STM32/blob/f31d070d1f2059494c6369ab52808729381f9750/system/STM32F4xx/stm32f4xx_hal_conf.h#L10-L12
If not (it seems the case), the way pio builds and includes files is not correct and would hide other issue compare to Arduino IDE env.
I am using latest
ststm32
and latest STM32Ethernet forgenericSTM32F407VGT6
board.below is
platformio.ini
fileI also added
hal_conf_extra.h
file withHAL_ETH_LEGACY_MODULE_ENABLED
define as suggested hereStill unable to compile project.
I am getting below errors while compiling
Please Help...