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/TMS320F28335: Can not flash 28335

Part Number: TMS320F28335

Tool/software: Code Composer Studio

I am working on firmware for custom 28335 board , and am trying to flash/debug my code. I am using CCS 10.1.1, the JTAG probe is SpectrumDigital XDS200 USB, 'Test connection' in target connection had succeed.. However when flash the device, I got the following: 

C28xx: Failed CPU Reset: (Error -1137 @ 0x6) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 9.2.0.00002)
C28xx: Trouble Reading Register PC: (Error -1137 @ 0x0) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 9.2.0.00002)
C28xx: Trouble Reading Register ST1: (Error -1137 @ 0x0) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 9.2.0.00002)
C28xx: GEL: Error while executing OnReset(-1): Target failed to read register ST1
at (ST1&~(0x0100)) [f28335.gel:322]
at C28x_Mode() [f28335.gel:38]
at OnReset(-(1))
C28xx: GEL: Error while executing OnTargetConnect(): Reset failed: retcode=-1
at GEL_Reset() [f28335.gel:96]
at OnTargetConnect()
C28xx: Flash Programmer: Warning: The configured device (TMS320F28335), does not match the detected device (). Flash Programming operations could be affected. Please consider modifying your target configuration file.
C28xx: Failed CPU Reset: (Error -1137 @ 0x0) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 9.2.0.00002)
C28xx: Trouble Reading Register PC: (Error -1137 @ 0x0) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 9.2.0.00002)
C28xx: Trouble Reading Register ST1: (Error -1137 @ 0x0) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 9.2.0.00002)
C28xx: GEL: Error while executing OnReset(-1): Target failed to read register ST1
at (ST1&~(0x0100)) [f28335.gel:322]
at C28x_Mode() [f28335.gel:38]
at OnReset(-(1))
C28xx: GEL: Error calling OnPreFileLoaded(): Reset failed: retcode=-1
C28xx: Flash Programmer: Device is locked or not connected. Operation cancelled.
C28xx: File Loader: Memory write failed: Unknown error

  • Xi,

    Thank you for reaching us on this. Couple of questions:

    1. If not flash, are you able to load to RAM successfully on your custom board?

    2. Did it anytime succeed to load the code in to flash on your board?  

    3. Did you select the correct device when creating the linker cmd file?

    4. What do you see in the password locations on this failing device? Are you trying to program anything in the security settings area?

    Thanks and regards,
    Vamsi

  • Thank you for helping, Vamsi!.

    1. Yes, I was able download and run a simple RAM program.

    2. This is my first time using this board. But it had program in flash, so it was programmable. Though people familiar with the board had left.

    3. I am pretty sure the device is correct, and the link cmd  is correct.

    4. I don't know about the password, as I had never used C2000 before (only worked on OMAP 10+ years ago). I was just trying to debug program I wrote.

  • Xi,

    Ok. 

    How are the boot mode pins configured on this device?  Can you try wait boot and see if that helps?

    Can you check if there is a toggle on the XRSn pin?  May be the power supply is not able to meet the demand during flash load.

    Please go through the Table 1-12. Code Security Module (CSM) Registers in TRM for the password locations in flash memory.  Open those locations in the debugger memory window and see what exists there.

    Thanks and regards,
    Vamsi

  • XA13-15 are pulled up, XA12 is driven externally, I will probe it and the XRS. Or shall I force BOOT0 to 1 and a toggle on reset?

    The CSM keys are all 0xffff, CSR = 0x70.

  • Xi,

    Since XA13-15 are pulled up, try SCI-A boot (XA12 should be 0) before powering up.  This way application in flash will not execute before you try to program the flash using debugger.  

    Thanks and regards,

    Vamsi