The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

Issue: memory allocation failure for STMicro Nucleo F401RE

I have noticed a memory allocation failure on the STMicro Nucleo F401RE platform. I tested on that board and a Freescale Freedom KL46Z board that I had handy.

The KL46Z executes the entire program without any issues and prints all eight times, while the F401RE makes it through the first four allocations/prints and then crashes.

Example program

1 comment:

26 Aug 2014

Hello, I think for F401RE platform heap size is equal to 0x400 Bytes / 1024 Bytes / 1 KiB and you are trying to allocate a lot more. Please try less ;)

startup_stm32f401xe.s

Heap_Size       EQU     0x00000400

                AREA    HEAP, NOINIT, READWRITE, ALIGN=3
                EXPORT  __heap_base
                EXPORT  __heap_limit