![]() What I discovered was that if the array was 688 bytes long (or less), it would download fine (with one caveat, see below.), but if it was 689 bytes (or more), the flash loader error would occur and the debugger would terminate. Next, I decided to add a global constant array to increase the flash image size and see if the problem was related to the download size. It ran to main and stopped, ready to debug. I found that a bare-minimum application (e.g.: main() function with while(1) loop only) was able to download fine. I decided to simplify things by starting with a fresh project. board file, use I-Jet interface in SWD mode, etc. ![]() correct target device "MK22FX512xxx12", default. The debugger will terminate." I checked all the project options and they seemed reasonable. Compilation worked fine, but any attempt to "Download and Debug" failed with an error "The flash loader program reported an error." and "A fatal error has occurred. I first noticed the problem upon porting an existing K20 project to a new K22 target board. I am using IAR EWARM v7.2 and an I-Jet debugger, firmware version 4. I'm trying to get a very simple project running on a custom board, using MK22FX512VLL12 target, and I'm having difficulty getting it to download into flash and run on the device.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |