Ethernet example for W5500 does not compile OK
Posted: Sun May 01, 2022 7:43 pm
Hi,
I recently updated from ESP-IDF 4.2 to 4.4
Now I want to compile the Ethernet basic example, but I have no succes. The code compiles without errors but at run-time it does not show the expected output.
The example contains a number of conditional compilation statements, such as e.g.: #if CONFIG_EXAMPLE_USE_SPI_ETHERNET
By placing some logs I notice that the code inside the conditional blocks does not compile. Only logs outside these blocks give the expected output.
I used menuconfig to configure the example, but apparently that action does not produce the correct macros.
Did I overlook some action that must be carried out to enable conditional compilation? Especially after a fresh install of ESP-IDF 4.4?
Thanks
Fred
I recently updated from ESP-IDF 4.2 to 4.4
Now I want to compile the Ethernet basic example, but I have no succes. The code compiles without errors but at run-time it does not show the expected output.
The example contains a number of conditional compilation statements, such as e.g.: #if CONFIG_EXAMPLE_USE_SPI_ETHERNET
By placing some logs I notice that the code inside the conditional blocks does not compile. Only logs outside these blocks give the expected output.
I used menuconfig to configure the example, but apparently that action does not produce the correct macros.
Did I overlook some action that must be carried out to enable conditional compilation? Especially after a fresh install of ESP-IDF 4.4?
Thanks
Fred