AnsweredAssumed Answered

mk66 minimum atart up code

Question asked by Malcolm Bugler on May 3, 2019
Latest reply on May 5, 2019 by Kerry Zhou

I am attempting to debug startup code on a bare metal MK66 application that I am porting from a MK62 working example. I am running the code on a FRDM K66F dev board. I am debugging by single stepping the code using a J-Link debugger as I do not have an IDE for the bare metal application code.

The app starts from the reset vector location, and runs without issues while it is reading flash and reading / writing sram memory. It sets up the stacks, However, once it accesses memory outside that range (embedded device registers and IO), it crashes back to address 0x202 and simply loops. Is there anything I'm missing in the CPU initialization that would cause this type of fault?

Outcomes