STM32CubeMX and DHCP + UDP + NOSYS : How to configure ?
- June 23, 2017
- 6 replies
- 2250 views
Hello,
I start a project with STM32CubeMX and a NUCLEO-F207ZG board. My goal is to have a TFTP client, but for now I'm stuck getting an IP address with DHCP. You can find my project attached.
In the lwip.c, I had to modify the MX_LWIP_Init.c file of the generated code (not in the user section), otherwise the code stops in
LWIP_ERROR('netif is not up, old style port?', netif_is_up(netif), return ERR_ARG;);
What is wrong with the STM cube configuration ?
Plus, I never go to the ethernet interrupt. How the ethernet reception is handled when there is no operating system ? (NO_SYS configuration)
Do you have a STM Cube project with DHCP and UDP (and
no TCP and no OS
) working ?Regards,
Florent
--------
Here is a summary of my configuration in STM32CubeMx
In STM32CubeMx, I enabled LWIP. In the LWIP configuration,
-> General settings I enabled :
- LWIP_DHCP
- LWIP_UDP
The others are wether disabled or let to theirs default values.
-> In 'Key Options :
- OS not used
- LWIP timer enabled
- LWIP ARP Enabled
- LWIP_NETIF_STATUS_CALLBACK Enabled
The others are wether disabled or let to theirs default values.
