AnsweredAssumed Answered

__heap_malloc exception with bf525

Question asked by Julien on Feb 22, 2011
Latest reply on Mar 2, 2011 by CraigG

Hi Analog,

 

I observe a recurring exception, occuring while i call the malloc routine (not ocurring each time, but under certain circumstances). To be more precise, the exception occurs in the __heap_malloc routine (offset 0x42 from the beginning of the function).

However, I have not the code of the function to help me understand why the exception occurs.

 

The EXCAUSE may be 0x21, 0x22 or 0x24 (different cases observed).

 

When i supress some little line of code that is located before I call malloc, the bug may disapear (surprisingly, knowing that the little line of code that I suppress or not is very harmless).

 

I am very confused, and if you have any suggestion i would be very grateful,

 

Thanks,

 

Julien

 

PS: Hardware : BF525, cutom board, with hpusb emulator, system heap in L3 (external memory was successfully tested).

Pièce jointe : sequencer status and call stack.

Attachments

Outcomes