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/TMS320F28379D: Program doesn´t start after FLASH_and_RESET

Part Number: TMS320F28379D


Tool/software: Code Composer Studio

Hello there

i have created a project for the TMS320F23879D on the LaunchXL board from scratch using
CCS Version 6.2.0.00050
by
FILE > NEW > CCS Project > Empty Project


I´m observing two begaviours which are new to me:

1)
until now i have only created a project for CPU_1. When i flash it by starting a debugg session, CPU_2 also get´s flashed with the
same .out File.

2)
When the flash process is done, i press the green RUN button in the IDE. On the first run the
programm doesn´t run. I have to push the PAUSE button, then RESET button, then "BackToStart" button and
again RUN button (all in the IDE). Then the programm runs normal. I observed that earlier already. The thing which is different now
is, that after a PowerOnReset or after pressing the Reset button on the eval board the programm doesn´t start
which it did earlier.
I tried to stroll around in Project > Properties > Run/Debug Settings where i found a few checkboxes which
sounded to be "topic-related" like in "Target > Autorun and Launch Options > On a programm load or restart / On reset
but trying around didn´t help me.
Has someone a suggestion what to try?

best regards!

  • user4221161 said:
    1)
    until now i have only created a project for CPU_1. When i flash it by starting a debugg session, CPU_2 also get´s flashed with the
    same .out File.

    Please take a look at this post by JohnS. I believe it explains the behavior you are seeing and how to resolve it.

    user4221161 said:
    The thing which is different now
    is, that after a PowerOnReset or after pressing the Reset button on the eval board the programm doesn´t start
    which it did earlier.

    Are you trying to run the code standalone or while still connected to CCS? Did any of the project settings or boot mode settings on the Launchpad change since the previous runs? This thread has details on what the BOOTMODE pin setting should be to boot from Flash and run the code standalone. 

  • Hello,

    Are you trying to run the code standalone or while still connected to CCS?
    I´m not sure, if understand the term "standalone" correct. I read that expression and it´s said, that TRSTn has to be low.
    If i see it correctly, this deviates from the factory setting of the switch S1?
    Until now, i never changed the "out-of-the-box" settings from this switch and it always worked. Plus the demo which is
    present on the device boots as well with this default setting without starting it from CCS - that´s what i´d understand under "standalone". So may be my
    understanding is wrong.
    So i also tried it with pulling TRSTn low, but that doesn´t help, wether on pushing the reset button on the board nor on POR. The only difference is, that the debugger can´t connect.
    I read that the boot from flash only works, when OTP KEY is != A5 - how can i read this key? I dind´t found it in the registers view of the debugger.

    best regrads!

  • user4221161 said:
    I´m not sure, if understand the term "standalone" correct. I read that expression and it´s said, that TRSTn has to be low.

    What I meant by the question was whether you were loading the code using CCS and then putting it to Run using the CCS debugger, or if after the code was loaded you were power cycling the board to let it run standalone.

    Your questions about the switch settings and OTP key are best answered by the experts in the C2000 device forum. If you still have trouble getting this program to work after reset, I would suggest starting a new post in the C2000 forum for the experts there to comment.