I am getting an error "Failed to load flash loader" in IAR EWARM v7.40.3.8938 when I attempt to download the sample KSDK IAR version of the Hello World example application (I've tried KSDK 1.1 and 1.3 with same result). I am using the OpenSDAv2 (CMSIS-DAP) interface. There is not an issue with the hardware/connection/drivers as I can build the project and load it successfully using the KDS version of the example. I have investigated the project debugger settings in IAR and they appear correct.
The IAR Debug Log is as follows:
Mon Jan 18, 2016 11:32:05: Loaded macro file: C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.2\arm\config\debugger\Freescale\Kxx.dmac
Mon Jan 18, 2016 11:32:05: Loaded macro file: C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.2\arm\config\flashloader\Freescale\FlashK60Xxxx128K.mac
Mon Jan 18, 2016 11:32:06: Loading the CMSIS-DAP driver
Mon Jan 18, 2016 11:32:06: Unloaded macro file: C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.2\arm\config\flashloader\Freescale\FlashK60Xxxx128K.mac
Mon Jan 18, 2016 11:32:06: Failed to load flash loader: C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.2\arm\config\flashloader\Freescale\FlashK64Fxxx128K.flash
Mon Jan 18, 2016 11:32:15: Loading the CMSIS-DAP driver
Any guidance on this matter would be appreciated.
Hello Aaron,
In the debugger configure view , please select the "J-LINK/J-Trace" . Even we use the OpneSDA firmware , it is open Jlink.
I just test it , it can work well on my side , if it still have error , please tell me .
Have a great day,
Alice Yang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Are you saying that the default mBed firmware is not supported under IAR and I need to use J-Link firmware instead?
Per this link, I would need to install a Segger firmware version to replace the mBed firmware.
Hello Aaron,
Do you want to use the mbed firmware to debug , ok , it also be ok.
I forget the default firmware , while it doesn't matter, please first copy and past the firmware ""k20dx128_k64f_if_mbed.bin"
to the bootloader , about the detail steps you can refer to the "FRDM-K64F Freedom Development Platform -Quick Start Guide":
I have test the two method to debug on IAR, both are ok , if it still can not work , please show me your steps .
Hope it helps
Have a great day,
Alice Yang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------