2025-08-19 1:15 PM - last edited on 2025-08-29 7:11 AM by Andrew Neil
Want to incorporate LwIP_UDP_Echo_Server example code for NUCELO-H723ZG with another project which has ADC, DMA, and timer system setup for sampling data. Issue is there is no .ioc file for the example code and when trying to look into the code manually for the parameters to feed into cubeMX when trying to configure a new project, there was some values that were missing, and some that were showing up as invalid (even though when testing the example code it was working fine). A bit lost and have been spending a lot of time trying to identify how to go about this. Any help on this would be appreciated.
2025-08-20 6:01 AM
Hello @dhruvp, and welcome to ST Community!
Below, I have attached an LwIP UDP Echo Server example that includes an IOC file, which you can modify and adjust to suit your application needs.
Best regards,
2025-08-26 2:25 PM
Hello @STackPointer64 ,
Thank you so much for your response! I changed the ioc file so that DHCP is disabled and then manually configured the ip to be 192.168.000.010 the netmask addr to 255.255.255.0 and the gateway addr to 192.168.000.020 (since this is the ip addr I have set for my laptop which is the device I am connecting the my stm32 board via ethernet). When I tried to use echotool (which was the software mentioned in the previous example that I was using), I keep getting a response time out error. I know for a fact though that the two devices are connected since, only when I try to send the packets from my laptop does the STM32 device start to go into the hardfault handler loop. Additionally I know that the all the addresses are setup correctly since I double checked using the live expressions feature while in debug mode.
Would appreciate any help to rectify and fix this issue!
2025-08-29 7:02 AM
Hello @dhruvp,
Thank you for your patience! It appears I forgot to add the modifications I manually made to the project into the IOC file, so when the project was regenerated, those changes were deleted. Below, you will find the fixed version. Please let me know if it works.
Best regards,