Other Parts Discussed in Thread: C2000WARE
Hi,
You are my last hope, been pulling my hair out for last couple of weeks. Got 6 brand new boards built with TMS320F28377D on them, 2 - work, 4 don't. Replaced MCU on one of the boards that did not work - still does not work. Got some very expensive software to rule out JTAG issues - JTAG is fine. Power supplies are fine. +3V3, +1V2 are fine. Grounding is fine. No shorts detected. Nothing is warming up that should not. I can control IOs via the JTAG software.
So down the rabbit hole I go.
1. Set Boot mode pins (GPIO72,GPIO84) to 1,0 respectively to get the MCU into WAIT mode and try to flash the firmware. Output I get is
C28xx_CPU1: GEL Output: Memory Map Initialization Complete C28xx_CPU1: If erase/program (E/P) operation is being done on one core, the other core should not execute from shared-RAM (SR) as they are used for the E/P code. Also, CPU1 will be halted to determine SR ownership for the CPU which will run the Flash Plugin code, after which CPU1 will be set to run its application. User code execution from SR could commence after both flash banks are programmed. C28xx_CPU1: Writing Flash @ Address 0x00080000 of Length 0x00000008 (page 0) C28xx_CPU1: Error: (Error -1135 @ 0xC095) The debug probe reported an error. Confirm debug probe configuration and connections, reset the debug probe, and retry the operation. (Emulation package 8.2.0.00004) C28xx_CPU1: Trouble Halting Target CPU: (Error -1044 @ 0x0) The debug probe reported an error. Confirm debug probe configuration and connections, reset the debug probe, and retry the operation. (Emulation package 8.2.0.00004) C28xx_CPU1: Error: (Error -1135 @ 0xC095) The debug probe reported an error. Confirm debug probe configuration and connections, reset the debug probe, and retry the operation. (Emulation package 8.2.0.00004) 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 C28xx_CPU1: Error occurred during flash operation: Could not read 0x0007026D@Data: target is not connected C28xx_CPU1: Error occurred during flash operation: Could not write 0x0005F444@Data: target is not connected C28xx_CPU1: Error occurred during flash operation: Could not read 0x0005F444@Data: target is not connected C28xx_CPU1: Error occurred during flash operation: Could not read 0x00130@Program: target is not connected C28xx_CPU1: PLL configuration status = 0. C28xx_CPU1: Error executing PLL configuration algorithm. Operation cancelled. (0x0) C28xx_CPU1: Error occurred during flash operation: Could not write 0x0005D200@Data: target is not connected C28xx_CPU1: File Loader: Memory write failed: Unknown error C28xx_CPU1: GEL: File: C:\ProjectFiles\rimac\obc\src\clp\obc\ccs\OBC_A_Debug\obc.out: Load failed. C28xx_CPU1: Error occurred during flash operation: Could not read register PC: target is not connected C28xx_CPU1: Error occurred during flash operation: Could not write 0x0005F800@Data: target is not connected C28xx_CPU1: Error occurred during flash operation: Could not write 0x00000@Program: target is not connected C28xx_CPU1: Error occurred during flash operation: Cannot enable while the target is disconnected C28xx_CPU1: Error occurred during flash operation: Could not read 0x0005F444@Data: target is not connected C28xx_CPU1: Error occurred during flash operation: Could not read 0x0007026D@Data: target is not connected C28xx_CPU1: Error occurred during flash operation: Could not write 0x0005F444@Data: target is not connected C28xx_CPU1: Error occurred during flash operation: Could not read 0x0005F444@Data: target is not connected C28xx_CPU1: Error occurred during flash operation: Failed to run target while trying to execute pwrite_en.alg C28xx_CPU1: Flash operation timed out waiting for the algorithm to complete. Operation cancelled. 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: Error occurred during flash operation: Could not read 0x0007026D@Data: target is not connected C28xx_CPU1: Error occurred during flash operation: Could not write 0x0005F444@Data: target is not connected C28xx_CPU1: Error occurred during flash operation: Could not read 0x0005F444@Data: target is not connected C28xx_CPU1: Error occurred during flash operation: Could not read 0x0007026D@Data: target is not connected C28xx_CPU1: Error occurred during flash operation: Could not write 0x0005D200@Data: target is not connected C28xx_CPU1: Error occurred during flash operation: Could not read 0x5D200@Program: target is not connected C28xx_CPU1: Error occurred during flash operation: Could not read 0x0007026D@Data: target is not connected C28xx_CPU1: Error occurred during flash operation: Could not read 0x0005D20E@Data: target is not connected C28xx_CPU1: Error occurred during flash operation: Could not write 0x0005D20E@Data: target is not connected C28xx_CPU1: Error occurred during flash operation: Could not read 0x0005D20E@Data: target is not connected C28xx_CPU1: Error occurred during flash operation: Could not write 0x0005D20E@Data: target is not connected C28xx_CPU1: Error occurred during flash operation: Could not read 0x0005D22E@Data: target is not connected C28xx_CPU1: Error occurred during flash operation: Could not read 0x0005D208@Data: target is not connected C28xx_CPU1: Error occurred during flash operation: Could not write 0x0005D208@Data: target is not connected C28xx_CPU1: Error occurred during flash operation: Could not read 0x0005D208@Data: target is not connected C28xx_CPU1: Error occurred during flash operation: Could not write 0x0005D208@Data: target is not connected C28xx_CPU1: Error occurred during flash operation: Could not read 0x0005D222@Data: target is not connected C28xx_CPU1: Error occurred during flash operation: Could not write 0x0005D222@Data: target is not connected C28xx_CPU1: Error occurred during flash operation: Could not write 0x0005D214@Data: target is not connected C28xx_CPU1: Error occurred during flash operation: Could not read 0x0005D20E@Data: target is not connected C28xx_CPU1: Error occurred during flash operation: Could not write 0x0005D20E@Data: target is not connected C28xx_CPU1: Error occurred during flash operation: Could not write 0x0005D20E@Data: target is not connected C28xx_CPU1: Error occurred during flash operation: Could not write 0x0005D222@Data: target is not connected C28xx_CPU1: Error occurred during flash operation: Could not write 0x0005D200@Data: target is not connected C28xx_CPU1: Error occurred during flash operation: Could not write 0x00000@Program: target is not connected C28xx_CPU1: Error occurred during flash operation: Cannot enable while the target is disconnected C28xx_CPU1: Error occurred during flash operation: Could not read 0x0005F444@Data: target is not connected C28xx_CPU1: Error occurred during flash operation: Could not read 0x0007026D@Data: target is not connected C28xx_CPU1: Error occurred during flash operation: Could not write 0x0005F444@Data: target is not connected C28xx_CPU1: Error occurred during flash operation: Could not read 0x0005F444@Data: target is not connected C28xx_CPU1: Error occurred during flash operation: Failed to run target while trying to execute pwrite_dis.alg C28xx_CPU1: Flash operation timed out waiting for the algorithm to complete. Operation cancelled. 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: Error occurred during flash operation: Could not read 0x0007026D@Data: target is not connected C28xx_CPU1: Error occurred during flash operation: Could not write 0x0005F444@Data: target is not connected C28xx_CPU1: Error occurred during flash operation: Could not read 0x0005F444@Data: target is not connected C28xx_CPU1: Error occurred during flash operation: Could not write register PC: target is not connected
At no point power supplies trip or go low - very unsure as to why the target it not connected.
2. Instead of flashing code, connecting to the MCU via debugger to see what is happening inside (Using the same .ccxml as the Debug Configuration).
I Launched the .ccxml from the Target Configurations in CSS and Connected to the CPU 1 core. Great. Do System Reset then CPU Reset.
Looking at the Disassembly tab, I can see that the Program Counter is at 0x003FF16A. Looking at the Delfino user manual, it seems that this is somewhere within the Secure ROM area.
I let the code execute and it gets itself into ESTOP0, the Program Counter is at 0x003FE2ED which is within the Boot ROM space. The MemoryErrRegs, RomWaitStateRegs and RomPrefetchRegs registers are all 0s.
RESC register shows that XRSn and TRSTn are 1, everything else is 0.
I am using Blackhawk USB560-v2 Debugger, but I tried XDS200 too and it is the same issue.
3. Return Boot Mode pins both to HIGH, so the Boot ROM jumps to Boot from Flash instead of Wait.
Again, Launch Target Configuration connecting to the target, System Reset, CPU Reset, let the code to execute, it stops at ITRAP0 @0x0 from 0x0F189 (GS3 RAM)?
So, what is going on here? I am lost. Any advise on what I am doing wrong, what could be causing what I am seeing would be much appreciated. I can flash the same code with the exact same tools on the other 2 boards and they work, but these 4 are just dead.
Much appreciated