Overflowing flash data issue causing MK22F51212 to hang up in I2C.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Overflowing flash data issue causing MK22F51212 to hang up in I2C.

Jump to solution
657 Views
brendanmerna
Contributor IV

I'm working a custom board with the MK22F51212 chip on it. While adding some code to it I noticed the microchip kept malfunctioning. The micro would get stuck in the I2C code in a while loop; waiting for a status flag. Retracing my steps backwards I reached some kind of flash limit. There would be no flag raised by the Kinetis IDE, but if I created 10 bytes to an array the problem would happen, if I took those 10 bytes back out the problem would stop. I also added an include file which caused the problem to happen and removing it causing it to stop.

I've made sure to check in the map file and the linker files to confirm flash size and any possible overflow issues. Judging from those files I don't see a problem. But, clearly something has to be either set up wrong or I am actually overflowing.

Does anyone have any ideas on this or other steps to debugging I should start taking?

Environment:
-Kinetis IDE
-KSDK 2.0

-MK22F51212 chip
-Custom board.

0 Kudos
1 Solution
525 Views
brendanmerna
Contributor IV

Update on this issue: Turns out in the debugger settings the target type was marked as the MK22F12810 version which caused this issue. This is now solved.

View solution in original post

0 Kudos
1 Reply
526 Views
brendanmerna
Contributor IV

Update on this issue: Turns out in the debugger settings the target type was marked as the MK22F12810 version which caused this issue. This is now solved.

0 Kudos