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/TMS320F28069: Boot fail after firmware update

Part Number: TMS320F28069
Other Parts Discussed in Thread: CONTROLSUITE, C2000WARE

Tool/software: Code Composer Studio

Dear Sirs:

I have a TMS320C200o Kit with TMS320F28069 inside. 

I use CCS to update firmware and the process seems successful until at the end a message shows, , as attached graph.

"Can't find a source file at "R:/dspsrdc_csa/emeter/dsp_c28x/prime/src/common/prime_main.c" 

After power cycle, the kit seems bot fail and the LED on board never blinks as usual. 

I use another programming tool C2Prog.exe and it shows successful, as attached graph.

But it still hang up after power cycle. 

How can I fix it?

 

Thank you very much. 

 


 


  • Hey Clifford,

    Your errors in Code Composer look like they are due to the program running in flash, and if you click the run button the code should still execute.

    This being said, the code is usually run on the evaluation kit, and typical behavior cannot be expected if you use something else.


    Regards,

    VR
  • Hi Clifford,

    What boot mode is the device set to when you power cycle the board?

    If you have programmed the flash with your application, there are a few things to consider.
    1) Your entire application should be programmed in flash if you desire to run from stand alone. Any code which needs to run from RAM needs to be programmed into flash and copied into RAM. On a power cycle, all RAM contents will be lost.
    2) If you desire to boot to flash, you need to configure the GPIO boot pins to set the device into boot-to-flash mode.
    3) Additionally, when the device boots to flash, Boot ROM will execute and branch to a specific flash memory location. At this location is where you should place a LB (long branch) instruction to branch to the start of your application. controlSUITE and C2000Ware have examples of this using the linker command files, specifically the BEGIN section, and also a CodeStartBranch.asm file.

    Hope this helps!
    sal
  • hi VR:

    Thank you for reply.

    I clicked run button and the code is executed. But, according to the instruction file "TI PRIME User Guide-Flashing firmware.pdf" which comes along with the kit TMS320C200 (with TMS320F28069), the code should be loaded to flash.
  • hi sal:

    Thank you for reply.

    The boot mode is from Flash. (J3 is open, according to "TI PRIME User Guide-General.pdf")
    Before any firmware update, (this kit remains the same status as it was brought), booting from flash is successful and able to be detected by its API (Zero configuration). However, after I follow the instructions of "TI PRIME User Guide-Flashing firmware.pdf" which is inside the pen drive that come along with the kit. Then, flash content (or maybe boot section) seems to be erased. The firmware also comes along with the pen drive. (installed from "TexasInstruments_PRIME_DDKPackageV7_9_1_0.exe")

    What can I do now?

    (1) I know this process, just don't how to make sure the boot code and application firmware are well programmed in flash.
    (2) Option should not be a problem, because it used to be proved right (before fw update) and the setting remains unchanged.
    (3)I am not intended to make or build new code. For this moment, I just need this kit to perform PRIME function and evaluate TI's PLC solution.


    Thank you.
  • Hi Clifford,

    Can you connect via JTAG using CCS? If so, you can connect to the target CPU and Add symbols of the project you just flashed to see if the code is properly flash to the device.

    Connect to the target.
    Click RUN->LoadProgram->Load Symbols -> and select the .out of the flash program you just programmed.

    Hope this helps.

    sal
  • hi sal:

    I don't have a JTAG, but my issue was solved by using "Unflash.exe" and TMDSPLCKITV4 module.
    TMDSPLCKITV3 seems to have problem when running in PRIME mode.

    Thank you for replying.