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.

How to program and run C code in release...

Other Parts Discussed in Thread: TMS320F28069

I have been working with the TMS320F28069U in a development environment for a few weeks and yesterday I decide to switch over to release mode and have the code execute standalone and realized I do not know how to execute this in the tool.

1. I used the hammer icon and switched the build option to release. The program compiles with no errors or warning.

2. I use the debugger/emulator (TI XDS100v2) to load the .out file in the release directory of the project. I see the program load and execute when reset. As soon as I cycle power the program is gone and must be reloaded.

What am I doing wrong?

Brian

  • Hello Brine!

    If I understand you have worked only with emulator and now you wish to run DSP in standalone mode. If it is so, then I would recommen you this manual 6153.TI_Running_from_Flash_spra958l.pdf. Check that file  F2806x_CodeStartBranch.asm is presented in your project. Selecting the active configuration (Debug or Release) does not matter in this context.

    Regards,

    Igor

  • Hi Brian,

    As Igor has mentioned... You need to run the code from flash. What you're doing is running the code from RAM which is a volatile  memory and so the .out file gets erased the moment you reset the power :)

    For running the project from flash, all you've to do is Right click on the Project -> and select Run from Flash option.

    TMS320F28069 projects havve that advantage, else you can always refer the above doc.

    Regards,

    Gautam

  • Thanks for the reply gentleman...when I added the CodeBranch.asm file it immediately began working.

    Guatam, I couldn't find the option you were referring to in your instructions; however, I did verify in the disassembly that the main function was placed in flash and not RAM.

    Thanks again...

    Brian