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/TMS570LS3137-EP: Target failed to read memory

Part Number: TMS570LS3137-EP

Tool/software: Code Composer Studio

while I am trying to read a memory at some locations within the flash, using the memory browser in CCS, it was showing ???????? and on hovering the mouse on it, it showed "Target failed to read memory at

0x0015FF50"

why is this happening?

when this is a valid memory location, also defined in  cmd file.

also, what does the Erase do? Make the entire flash as all FFFFs or 0000s or into some tristate?

  • Erased flash will be all FFFF's. Are all the flash locations showing ????, or just some? If the device has a program in it that enables the ECC, but some flash locations were unused and did not have the correct ECC value programmed, the debugger may get an "uncorrectable error" when reading that location. Does it look like you have branch instructions at location 0?
  • Not all locations are showing as ???? but only at some locations-when I don't use fill=0xffffffff in the cmd file. but when I try to fill the flash completely, the CCS crashes right in the middle of flashing process.
    ECC is enabled.
    I have branch instructions at 0. but 0 is reset vector right? There isn't supposed to be a branch instruction?
  • The reset vector on a Cortex R4 CPU is a branch instruction, so that is as expected.

    What you are seeing is the result of blank flash with incorrect ECC. You can use the linker to generate the ECC. See section 8.5.9 of the Assembly Language Tools User's Guide SPNU118. Use the vfill option to create a virtual fill so that ECC is generated for all of the main flash without blowing up the size of the .out file.