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.

CCS/RM57L843: Impossible to load a program into LaunchPad RM57L843

Part Number: RM57L843
Other Parts Discussed in Thread: UNIFLASH

Tool/software: Code Composer Studio

Hello,

It’s impossible to launch a program into a Load development board.

The error is the following:

CortexR5: GEL Output:      Memory Map Setup for Flash @ Address 0x0CortexR5: Error initializing flash programming: Target failed to read 0xFFFFFFF0

CortexR5: Loader: One or more sections of your program falls into a memory region that is not writable. These regions will not actually be written to the target. Check your linker configuration and/or memory map.

CortexR5: File Loader: Verification failed: Values at address 0x00000000 do not match Please verify target memory and memory map.

CortexR5: GEL: File: D:\Data_RM57\Asrtos_Start_LPd_1_08\Debug\Asrtos_Start_LPd_1_08.out: a data verification error occurred, file load failed.

 

Is this error can result of an anterior bad configuration?

The same program can be loaded without any problem on another Launchpad.

Is it a hardware problem on the board?

Thanks for your help.

Jerome

  • Hello Jerome,

    Yes, this is usually caused by the code executing on the part making the CPU enter an exception state (e.g. abort) repeatedly or stay stuck in it (if not handled in code). The only way to retrieve the part is to erase the flash. Even this make take multiple trials. You have to execute the erase command, and then quickly press and release the system reset button (labeled "RESET" on the RM57 launchpad). The idea is to halt the CPU before it executes the code that makes it enter the exception state. Hope this helps.

    Regards,
    Sunil
  • Hello Sunil

    Thanks very much for your fast reply.

    I don’t know how to execute directly the erase command.

    The only way to erase the flash for me is to load the program, with the “debugger option” “Erase all the Flash”.

    Is there another command, to erase the flash? From the debugger?

    Thanks for your help.

    Jerome

  • Hi Jerome,

    You could issue the erase command from the debugger, or by using another tool called Uniflash.

    Regards,
    Sunil
  • Hi Sunil,
    I have solved the issue.
    I disabled all verifications and check in debug configuration. Then I loaded the program with the option “Erase the entire flash” and it was OK.
    In the future I will always end a debug session with a good program.
    Thanks very much for your help.
    Jerome
  • Hi Jerome,

    Thanks for the confirmation. Actually this is one of the most common peeves we receive on the forum, so it is likely many other users will benefit from your suggestion of disabling verification and other checks before attempting to erase the entire flash.

    Thanks again,
    Sunil