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.

TMS320F2800157-Q1: XRSn pin toggle, does not allow to flash

Part Number: TMS320F2800157-Q1

Hello ,

I am working with TMS320F2800157-Q1 microcontroller for one of my project. I was flashing the device with no problem for some days. But, suddenly one time I got the following error during flashing. 

C28xx_CPU1: GEL Output:
Memory Map Initialization Complete
C28xx_CPU1: GEL Output: ... DCSM Initialization Start ...
C28xx_CPU1: GEL Output: ... DCSM Initialization Done ...
C28xx_CPU1: GEL Output: ... DCSM Initialization Start ...
C28xx_CPU1: GEL Output: ... DCSM Initialization Done ...
C28xx_CPU1: GEL Output: ... DCSM Initialization Start ...
C28xx_CPU1: GEL Output: ... DCSM Initialization Done ...
C28xx_CPU1: Warning: Failed unlocking device (zone 1) after reset.
C28xx_CPU1: Warning: Failed unlocking device (zone 2) after reset.
C28xx_CPU1: Trouble Setting Breakpoint with the Action "Remain Halted" at 0x8058: (Error -1066 @ 0x8058) Unable to set/clear requested breakpoint. Verify that the breakpoint address is in valid memory. (Emulation package 9.11.0.00128)
C28xx_CPU1: Breakpoint Manager: Retrying with a AET breakpoint
C28xx_CPU1: Trouble Setting Breakpoint with the Action "Remain Halted" at 0x8154: (Error -1066 @ 0x8154) Unable to set/clear requested breakpoint. Verify that the breakpoint address is in valid memory. (Emulation package 9.11.0.00128)
C28xx_CPU1: Breakpoint Manager: Retrying with a AET breakpoint
C28xx_CPU1: Error executing PLL configuration algorithm. Operation cancelled. (0x0)
C28xx_CPU1: Perform a debugger reset and execute the Boot-ROM code (click on the RESUME button in CCS debug window) before erasing/loading the Flash. If that does not help to perform a successful Flash erase/load, check the Reset cause (RESC) register, NMI shadow flag (NMISHDFLG) register and the Boot-ROM status register for further debug.
C28xx_CPU1: File Loader: Memory write failed: Unknown error
C28xx_CPU1: GEL: File: C:\Work Files\CCS_code\100617_obc_appl\software\source\DEBUG\100617_obc_appl_EMC.out: Load failed.
C28xx_CPU1: Trouble Setting Breakpoint with the Action "Remain Halted" at 0x8058: (Error -1066 @ 0x8058) Unable to set/clear requested breakpoint. Verify that the breakpoint address is in valid memory. (Emulation package 9.11.0.00128)
C28xx_CPU1: Breakpoint Manager: Retrying with a AET breakpoint

I tried it changing all the setting and it was giving me same error. With the same setting I was able to flash other boards with no problem.

And after much research, I found out that it is mostly connected to XRSn pin.

Therefore, I tried to look up at this. (blue colour is the XRSn pin)

The XRSn pin keeps going down after the power up. (happens at 60Hz frequency)

I tried to observe, VDDIO,VDD and other lines. They were all stable and there was no disturbance in them. 

Therefore, I thought microcontroller damage, then I changed the micrcontroller on the board. 

After soldering new microcontroller, I am getting the same error and XRSn looks the same. 

I checked all the components in and around microcontroller, but, was unable to find any fault. 

I am out of idea how to get this board working. '

Please help me if anyone has some insights, 

  • Vinay,  

                    It is likely the WD is timing out and resetting the device. This is very normal on a new device (or an erased device), whose Flash content is all 0xFFFF. If your board has a reset button, you can hold the device in reset while connecting and release it just after CCS has connected to it. Else, if your board design allows it, put the device in SCI or CAN boot mode, so that it just loops in the Boot-ROM code, thereby preventing a WD-initiated reset. After CCS connects to the device, you can switch to Flash boot mode.

  • Hello Hareesh,

    You were bang on. I did change the boot mode by changing the boot pin config. Now I am able to flash the microcontroller.

    Thanks for your perfect diagnosis!!

    Regards,

    Vinay