-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
Description
Description
Consider following dummy application:
int main(void)
{
char *buf;
do
{
buf = new char[1024];
}
while (buf);
}
As the application leaks memory, mbed error will eventually occur and on serial port there'll be information like (mbed-os-5.11.5):
++ MbedOS Error Info ++
Error Status: 0x8001011F Code: 287 Module: 1
Error Message: Operator new[] out of memory
Location: 0x80029A5
Error Value: 0x400
Current Thread: main Id: 0x2000551C Entry: 0x8002EA3 StackSize: 0x1000 StackMem: 0x20005560 SP: 0x200064F4
For more info, visit: https://armmbed.github.io/mbedos-error/?error=0x8001011F
-- MbedOS Error Info --
However with mbed-os-5.12.0, no data is received on serial port.
I am observing the issue with 32F746GDISCOVERY board. The command I use to compile and run the application is mbed compile --target DISCO_F746NG -t GCC_ARM --flash
Issue request type
[ ] Question
[ ] Enhancement
[X] Bug