malloc fails on NucleoSTM32F030R8
I have started a small project, using 2 UARTS by interruption, in order to learn STM32 Núcleo technology.
The target being used is a NucleoBoard STM32F030R8, having the project under Eclipse and AC6 addin
This device has 8k of internal RAM and my program is using less then 256Ram.
Heap is set as 0x200 and stack as 0x400.
When malloc function is called, with 17 bytes as parameter, it always returns NULL.
I have no access to malloc code in stdlib, but it calls _sbrk in the syscals.c
Debuging the call of malloc, at the first time it calls the _sbrk, the incr param is 32 and the second time it is 3808.
Not sure if the problem is a missing parameter in order to use malloc function.
How can I identify the stdlib version being used ?
Has someone had success on using malloc to STM32F030R8 ? If affirmative, I would need to migrate the stdlib to the one in success case or it is a missing parameter issue ?