cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F107+LWIP(2.0.3)+freeRTOS not work

HKabi.1
Associate II

i use STM32F107+LWIP(2.0.3)+freeRTOS

I wrote the program with the help of the following document :

https://www.st.com/resource/en/user_manual/um1713-developing-applications-on-stm32cube-with-lwip-tcpip-stack-stmicroelectronics.pdf

After connecting the computer with the micro a few times, the information is correctly received by the micro.

But I don't send a reply to the computer. The tcp_server_recv callback function only turns one LED on and off for one second.

After sending information a few times, it stops receiving and I don't have ping anymore.

What advice can you give?

13 REPLIES 13
srdas
Associate II

@spoatech 

GO to freeRTOS-> Advanced Settings and Enable USE_NEWLIB_REENTRANT

srdas_0-1711028897728.png

This will fix the issue

 

srdas
Associate II

@HKabi.1 Are you able to ping STM107 when FreeRTOS + LWIP is used? If yes, could you please check my code attached? I am not able to ping the STM107 when I am using FreeRTOS and LWIP, but I can ping it when I use LWIP alone without FreeRTOS

 

@srdas,

Thanks for your reply. However, I already had this setting in FreeRTOS (Enable USE_NEWLIB_REENTRANT) and it was not the solution. A representative from ST helped out with this and the picture below explains the proper setup. The setting below in LWIP General Settings, must be set to "1" and this fixed the problem.

 

LWIP_FreeRTOS.png

@spoatechThanks for the Update.

I'd like to like to know if you can ping the STM32F107. If possible, I'd appreciate guidance on configuring it for Ethernet functionality. In my case, I'm unable to ping the STM32F107 when using FreeRTOS and LWIP together, but I can ping it when using LWIP alone without FreeRTOS.

Hardware used : HAOYU Electronics STM107 Board

IDE: STMCubeIDE