Different linking behavior (same project) between Clion and STM32CubeIDE
Hello.
I am currently working on CLion and I am trying to switch to STM32CubeIDE but my code is asserting in a malloc function called in rand() function called in udp_init() of LwIP.
In _sbrk() function I can see :
- heap_end : 0x200119fc
- sp : 0x20003370
In CLion I did the same test :
- heap_end : 0x20012000
- sp : 0x20005d58
In this case malloc is working.
I am using code generated by STM32CubeMX, I am using FreeRTOS and LwIP.
Do you know how to change this behavior to allocate memory without issue ?
Do you know if I can stop using malloc but use pvPortMalloc instead ? I don't have access to standard C library with STM32CubeIDE so I don't know how to do it.
Thank you for you help.
