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.

TMS320F2801: Failed to load the program to mcu

Part Number: TMS320F2801

Hello everyone

 I am trying to program a 320F2801PZA device with CCSV8.3. I found an example project from www.ti.com/.../sprc191,  which is built to use in a 320F 2808 device. 

1.   Is it ok to use 2808 code in a 2801 device. ?

2. code compiled successfully, but when ccs try  to load the program it says following line in the terminal and fail. why is that?.

3. Note that it also says configured device (TMS320F2801), does not match the detected device, which is wierd because the TMS320F2801PZA is printed on the CPU.  How can i know which device is detected by CCS?.   target config source code is included below.

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<configurations XML_version="1.2" id="configurations_0">
    <configuration XML_version="1.2" id="Texas Instruments XDS100v2 USB Debug Probe_0">
        <instance XML_version="1.2" desc="Texas Instruments XDS100v2 USB Debug Probe_0" href="connections/TIXDS100v2_Connection.xml" id="Texas Instruments XDS100v2 USB Debug Probe_0" xml="TIXDS100v2_Connection.xml" xmlpath="connections"/>
        <connection XML_version="1.2" id="Texas Instruments XDS100v2 USB Debug Probe_0">
            <instance XML_version="1.2" href="drivers/tixds100v2c28x.xml" id="drivers" xml="tixds100v2c28x.xml" xmlpath="drivers"/>
            <platform XML_version="1.2" id="platform_0">
                <instance XML_version="1.2" desc="TMS320F2801_0" href="devices/f2801.xml" id="TMS320F2801_0" xml="f2801.xml" xmlpath="devices"/>
            </platform>
        </connection>
    </configuration>
</configurations>


This is the terminal window text

C28xx: Failed CPU Reset: (Error -1137 @ 0x6) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 8.3.0.00003)
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 8.3.0.00003)
C28xx: Trouble Reading Register ST1: (Error -1137 @ 0x6) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 8.3.0.00003)
C28xx: GEL: Error while executing OnReset(1): Target failed to read register ST1
     at (ST1&~(0x0100)) [f2801.gel:257]
     at C28x_Mode() [f2801.gel:38]
     at OnReset(1)
C28xx: Flash Programmer: Warning: The configured device (TMS320F2801), 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 8.3.0.00003)
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 8.3.0.00003)
C28xx: Trouble Reading Register ST1: (Error -1137 @ 0x6) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 8.3.0.00003)
C28xx: GEL: Error while executing OnReset(1): Target failed to read register ST1
     at (ST1&~(0x0100)) [f2801.gel:257]
     at C28x_Mode() [f2801.gel:38]
     at OnReset(1)
C28xx: Trouble Writing Memory Block at 0xae0 on Page 1 of Length 0x1: (Error -1137 @ 0xAE1) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 8.3.0.00003)
C28xx: Error occurred during flash operation: Target failed to write 0x00000AE0@Data
C28xx: Trouble Writing Memory Block at 0xae1 on Page 1 of Length 0x1: (Error -1137 @ 0xAE2) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 8.3.0.00003)
C28xx: Error occurred during flash operation: Target failed to write 0x00000AE1@Data
C28xx: Trouble Writing Memory Block at 0xae2 on Page 1 of Length 0x1: (Error -1137 @ 0xAE3) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 8.3.0.00003)
C28xx: Error occurred during flash operation: Target failed to write 0x00000AE2@Data
C28xx: Trouble Writing Memory Block at 0xae3 on Page 1 of Length 0x1: (Error -1137 @ 0xAE4) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 8.3.0.00003)
C28xx: Error occurred during flash operation: Target failed to write 0x00000AE3@Data
C28xx: Trouble Writing Memory Block at 0xae4 on Page 1 of Length 0x1: (Error -1137 @ 0xAE5) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 8.3.0.00003)
C28xx: Error occurred during flash operation: Target failed to write 0x00000AE4@Data
C28xx: Trouble Writing Memory Block at 0xae5 on Page 1 of Length 0x1: (Error -1137 @ 0xAE6) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 8.3.0.00003)
C28xx: Error occurred during flash operation: Target failed to write 0x00000AE5@Data
C28xx: Trouble Writing Memory Block at 0xae6 on Page 1 of Length 0x1: (Error -1137 @ 0xAE7) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 8.3.0.00003)
C28xx: Error occurred during flash operation: Target failed to write 0x00000AE6@Data
C28xx: Trouble Writing Memory Block at 0xae7 on Page 1 of Length 0x1: (Error -1137 @ 0xAE8) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 8.3.0.00003)
C28xx: Error occurred during flash operation: Target failed to write 0x00000AE7@Data
C28xx: Flash Programmer: Device is locked or not connected. Operation cancelled.
C28xx: File Loader: Memory write failed: Unknown error
C28xx: GEL: File: C:\Users\VEGA_1010\Documents\CcsWork2\Example_2808_Flash\Debug\Example_2808_Flash.out: Load failed.

  • Damith,

    Code compiled for the F2808 will run on the F2801 so long as the code size fits within the 6K of RAM and 16K of FLASH on the F2801 vs the 18K of RAM and 128K of Flash on the F2808.  From your dialogue window, this is not the error you are getting at this point.

    Currently CCS is having issues connecting to the device, which has to happen before it can attempt to load code.

    I'd like to attempt a connection only vs a connection/code load, run etc.  If you right click on the target .ccxml file you made for this device, select "Launch Target Configuration".  If this is successful you can then right click on the C28x CPU and "connect target".

    Let's see if we can get this to work first, and then we can see if the code size is an issue.

    The above steps and more are outlined in this app note http://www.ti.com/lit/spracf0 in case you are still having issues you can try to go through the steps before replying back.

    Best,

    Matthew

  • Damith,

    Checking back to see if you have been able to solve your issue with the above, I'm going to mark as TI thinks resolved; feel free to reply back and it will alert me.

    Best,

    Matthew

  • Im very sorry for the delay. Yes i was able to resolve the issue. The problem was the power. I supplied 3.3V instead of 1.8V.

    Thank you