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/TMS320F280049C: Binary .OUT file for program execution

Part Number: TMS320F280049C
Other Parts Discussed in Thread: UNIFLASH

Tool/software: Code Composer Studio

Hello,

        I have a working code for digital control of a power converter. To use the code in TMS320F280049C MCU, I believe we can use the .OUT file found in the Binaries folder of Project Explorer. Currently, I am using my laptop to flash the program every time I want to implement the code in the MCU. I would like to know how I can use this .OUT file to flash the code one time and not use my laptop again. Please let me know.

Thanks and Regards,

Satish R 

  • Hi Satish,
    If the code is indeed flashed to the target, then you should not need to flash it again (unless you made changes to the code of course). It should remain there. If you find this is not the case, could it be you are loading your code to RAM?

    Thanks
    ki
  • Hi Ki,
    Thanks for your response. Yes, I understand that the code would stay in the MCU once it is flashed. What I really want to know is that how I can carry a version of the .OUT file of the code so that I can download it from anywhere and load the code to a different MCU so that I can run it somewhere else. Basically, I want to distribute the code without using the full CCS project files. Thanks!!
  • Thanks, I get it now.

    All you need is the .out file to flash the program using CCS. The project is not needed. You would do this via a "manual launch"
    software-dl.ti.com/.../ccs_debug-main.html

    Once a debug session is started via manual launch, the you can select the .out file to flash

    Another non-CCS option is to use UniFlash:
    processors.wiki.ti.com/.../Category:CCS_UniFlash

    UniFlash is designed for the main purpose of an easy interface to quickly flash your program.

    Thanks
    ki
  • Hello Ki,
    I tried doing what you mentioned here. These are the steps that I followed:
    1. From target configuration, select the appropriate configuration for the DSP and the code using "Launch Selected Configuration" option.
    2. The debug perspective was manually opened along with the required connection.

    I wasn't sure on how to add the .OUT file to this configuration. Would I have to go under the binaries tab and select the .OUT file and debug from there? How exactly is it added to the Flash memory?

    The end goal would be to not use CCS at all and keep the program in the DSP flash memory. If this is achieved, how would the control card know when to initiate and terminate the code? Kindly let me know. Thanks!!
  • Satish Rengarajan said:
    I wasn't sure on how to add the .OUT file to this configuration. Would I have to go under the binaries tab and select the .OUT file and debug from there? How exactly is it added to the Flash memory?

    Once you have launched the debug session and you are in the Debug perspective, select your CPU in the Debug view and use the menu item 'Run -> Connect Target' to connect the target to the debugger. One the connection has been established, use the menu item 'Run -> Load -> Load Program' to open the 'Load Program' dialog. Use the 'Browse' button there to browse to your .OUT file to flash it.

    Satish Rengarajan said:
    If this is achieved, how would the control card know when to initiate and terminate the code?

    There are device specific considerations you need to make to your program and project to make sure your program can run from flash on power up. This is a question best asked in the C2000 device forum.

    Thanks

    ki