cancel
Showing results for 
Search instead for 
Did you mean: 

Build the code for Keil

HKabi.1
Associate II

I configured lwip in cube for stm32f107, when I generate code for keil and run it the micro hangs, but if I write a program without cube, it runs without any problem.

What is the problem?

Note: If I get the output for CubeIDE, it runs without any problem.

11 REPLIES 11

Hi @Piranha​ 

The stack size is correct. I didn't use printf, but I don't know if LWIP used it or not.

I didn't use COM or UART port in my device and therefore I didn't make settings for it and I didn't connect printf to it either.

When I run the same code with cubeide, it runs, but when it receives data from the network several times, only the network stops working and there is no ping, but everything else works.

https://community.st.com/s/question/0D53W00001vDY9ZSAW/stm32f107lwip203freertos-not-work

i remove freertos but the problem still exists

MrSon
Associate

Hi  HKabi.1 !

I also had the same problem as you on CubeMx version 6.9.2 and stm32cube_fw_f4 V1.27.1. This is ST's latest software update. If you have found the solution, please guide me.