cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F756 Ethernet and lwIP LWIP_RAM_HEAP_POINTER

avinash_elec
Associate III

I am using the latest version of CubeIDE (1.17.0), a STM32F765 Nucleo board with Ethernet. I am configuring the project to run lwIP using the internal Ethernet MAC. I am using FreeRTOS (CMSIS V2). CubeMX configures this LWIP_RAM_HEAP_POINTER to a default value of 0x30004000 which is NOT a valid address in the processor. I have gone through the reference manual to find out that nothing is present on this address and it is a reserved address. This causes a hardfault whenever I execute the code. However, if I comment the definition of LWIP_RAM_HEAP_POINTER, in that case lwIP uses normal buffer declared in RAM as heap and my code runs without any problem. I am making a course on this, so I just wanted to confirm if this is a bug in CubeMX or what?

 

avinash_elec_0-1738381879008.png

 

0 REPLIES 0