This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

MDK-ARM malloc/calloc always return NULL

Hello,

 I just started using uVision and converted a project from STM32CubeIDE to this platform.

However, I am unable to allocate memory like I was before:

p = calloc(1, DATA_VOL * sizeof(uint16_t));

This is about 16MB, and now returns NULL.  However, with STM32CubeIDE it works fine.  

The project was generated using STM32CubeMX.  Is there something I am missing that needs to be considered for memory allocations?