STM32CubeF4
STM32CubeF4 copied to clipboard
lwIP project could not work in stm32cubeide
Hello, I had a problem with the lwIP project not working on STM32CubeIDE using the Nucleo-F429ZI board.
The cause of the problem is that the default LWIP_RAM_HEAP_POINTER default value is 0x30044000, and if STM32IDE generates code with that value, it is accessing a non-existent memory area, resulting in a hard fault.
So the solution can be summarized in two ways. The first is to comment LWIP_RAM_HEAP_POINTER in lwipopts.h among the codes responsible for the lwip function (Figure 1). The second is to disable ICMP checksum-related features in the Ethernet Configuration window (Figure 2).
Figure 1
Figure 2