This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LAUNCHXL-RM42: Failed to load flash loader with IAR

Part Number: LAUNCHXL-RM42
Other Parts Discussed in Thread: UNIFLASH

Hello,

I'm getting the following message when trying to load/erase the chip:

Thu Apr 16, 2020 15:02:48: Failed to load flash loader: C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.3 EWARM FS 8.40.3\arm\config\flashloader\TexasInstruments\FlashRM42L.out

Any idea why?

  • The RM42 launchpad has a built-in xds100v2 emulator. Other RMx launchpads (RM46x, RM57x) use xds110 emulator. Is the emulator selected correctly? 

  • Hello QJ,

    I've removed the JTAG resistors and I'm using the 14 pin header to debug the board. I have an external xds100V2 and i-jet. both of them acts the same.

    I've investigated the problem with IAR support and they said I "locked myself out on the RAM" meaning the RAM is not accessible to load the flashing program.

    This set up worked for me for almost  2 months, now, and the problem happens when I work on the startup code to implement CPU self tests (following the sample code in the SafeTI diagnostic library)

    Yuval

  • Hello QJ, 

    This is the error I'm getting from Uniflash when trying to erase the entire chip:

    [ERROR] CortexR4: Trouble Writing Memory Block at 0x8000300 on Page 0 of Length 0x20: (Error -1065 @ 0x0) Unable to access device memory. Verify that the memory address is in valid memory. If error persists, confirm configuration, power-cycle board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 8.4.0.00006)

  • Hello QJ, 

    After erasing Bank 7 separately with XDS100, I could flash the CPU with new program and debug it with I-jet and IAR workbench.

    Yuval