AnsweredAssumed Answered

MQX-K60 Program Memory Corruption

Question asked by Robert Ryan on Jan 2, 2014
Latest reply on Jan 17, 2014 by David E Seymour

Hi All,,

 

I am running into an issue where my program memory is being corrupted.  The corruption manifests itself as 16 bytes of 0xff at address 0xf660.  Right in the middle of my LLWU wakeup interrupt...  The problem is only seen in release mode code, not with debug.  After the code gets corrupted I get an unexpected interrupt with a Hard Fault as a cause.  This makes perfect sense.

 

From the memory before corruption (starting at 0xf650):

01 20 fb f7 ee bb 00 00 00 b5 83 b0 f2 f7 fa f8 00 bf 00 bf 00 bf 43 48 00 bf 81 78 41 f0 20 01 81 70 01 78 01 f0 3f 01 01 70 3f 48 01 68 09 06

 

From the memory after corruption:

01 20 fb f7 ee bb 00 00 00 b5 83 b0 f2 f7 fa f8 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 81 70 01 78 01 f0 3f 01 01 70 3f 48 01 68 09 06

 

I shouldn't be able to write to program memory (by definition) as I am not doing any boot loader activity.  Not sure what might be causing this.  I am not seeing any bus errors so I don't think that I have a pointer going wonky.

 

Any ideas on what to look for?

 

Rob

Outcomes