AnsweredAssumed Answered

System crash with the function Malloc

Question asked by gaojian xu on Nov 15, 2016
Latest reply on Nov 21, 2016 by Bob Paddock

I transplanted some old source code ran on K10 to Kv31 (KV31F512M12). The IDE is Kinetis Design Studio 3.2.0.

The debug interface is GDB PEMicro. The compilation and download is ok. But in the debug mode, the system crash and enter into DefaultISR every time the system enconter the function malloc. As below:

Excute this:

This = (struct evt_queue_ty *)malloc(sizeof(struct evt_queue_ty) + size*sizeof(struct evt_event_ty)); 

Crash and jump to:

b DefaultISR
.size DefaultISR, . - DefaultISR

What's wrong? Is it failed with source code or IDE configuration?