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/TMS320F28377D: GEL Error while executing OnTargetConnect

Part Number: TMS320F28377D

Tool/software: Code Composer Studio

Hi expert,

My customer debugging F28377D on their custom board. After they debug the code once in flash memory successfully, the debugger will not do this again with below error message given.

C28xx_CPU1: Trouble Writing Memory Block at 0x5f452 on Page 1 of Length 0x1: (Error -1041 @ 0x5F453) The debug probe reported an error. Confirm debug probe configuration and connections, reset the debug probe, and retry the operation. (Emulation package 8.0.27.9) 
C28xx_CPU1: GEL: Error while executing OnTargetConnect(): Target failed to write 0x0005F452@Data
    at *((int *) 0x5F452)=0xFFFF [f28377s.gel:82]
    at OnTargetConnect()
C28xx_CPU1: Error: (Error -1135 @ 0x8E286) The debug probe reported an error. Confirm debug probe configuration and connections, reset the debug probe, and retry the operation. (Emulation package 8.0.27.9) 
C28xx_CPU1: Failed CPU Reset 
C28xx_CPU1: Error: (Error -1135 @ 0x8E286) The debug probe reported an error. Confirm debug probe configuration and connections, reset the debug probe, and retry the operation. (Emulation package 8.0.27.9) 
C28xx_CPU1: Unable to determine target status after 20 attempts
C28xx_CPU1: Failed to remove the debug state from the target before disconnecting.  There may still be breakpoint op-codes embedded in program memory.  It is recommended that you reset the emulator before you connect and reload your program before you continue debugging

They are using CCS 8.2 with debugger connection test successfully passed. Do you have any idea on this?

Thanks

Sheldon

  • Sheldon,
    The error is related to the GEL trying to initialize the GS memories.

    I noticed in the code you attached the 28377S device GEL is being used. Can customer replace this with 28377D GEL file. These are located in the ccs install directory here: C:\ti\ccsv8\ccs_base\emulation\gel\

    I beleive this should fix it, as the F28377S.GEL will NOT release the CPU2 from reset, which may be required to initialize the memories on the F28377D dual core device.

    Best,
    Matthew
  • Hi Matt,
    Forget to mention, they are soldering F28377s on the board for test in this case.
    Thanks
    Sheldon
  • Sheldon,
    Is the device security enabled, i.e. is the device what we typically call "locked" . The write to this register will intialize all the Gx shared RAM, so I can see that the DCSM would block writes to it so that the memory can't be cleared using this register.

    Please note that the GEL is will attempt to execute this command on a Target Connect, before customer could unlock the device.

    Matt