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 do I run code on power up? CC2803X & controlSuite LEDBlink example

Other Parts Discussed in Thread: CONTROLSUITE

I have the CC2803X Rev 1.3 controlcard, and I have been working through the controlSuite examples using Code Composer Studio 5.5.0.

How do I get the examples loaded such that they run when power is applied, i.e. not requiring CCS->Run->Debug. Do I need to create a "Release" build configuration?

For example, I would like the LEDBlink example to run automatically, when power is applied to the controlcard.

Thank you

  • Hi Mark,

    It seems you're running your code from RAM. Refer flash example that can be found here for standalone operation:
    C:\ti\controlSUITE\device_support\f2803x\v128\DSP2803x_examples_ccsv5\flash_f28035

    Regards,
    Gautam
  • Gautam, thank you so much for the reply.

    For future readers, here are my steps for getting the LEDBlink example to run standalone. It's not bad at all, basically just need to switch the cmd file and toggle a jumper.

    1) exclude 28035_RAM_lnk.cmd: right click on 28035_RAM_lnk.cmd in CCS and select "Exclude from Build"

    2) add F28035.cmd: right click on the project, then "Add files". Select "controlSUITE/device_support/f2803x/v128/DSP2803x_common/cmd/F28035.cmd"

    3) rebuild project as normal

    4) click on debug to load the project as normal

    5) power down and switch the JTAG jumper to off. For CC2803X, this is SW3, put it in the UP position. The Flash example mentions SW2, but you don't need to touch that, it is in the correct position from the factory which works for both debug and standalone.

    6) power up and you should see the led blinking.

    You need to add a pragma and a memcpy line if you want to run code from ram in standalone mode, see flash_f28035 as Guatam mentioned. But this is not necessary for the LEDBlink example.

  • That's A Great Guide!

    Goodluck & Regards,
    Gautam