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.

LAUNCHXL-F28379D: I now debug the LAUNCHPAD 28379d,It can download the program, But the button RUN is always gray, can't run.

Part Number: LAUNCHXL-F28379D
Other Parts Discussed in Thread: C2000WARE,

I now debug the LAUNCHPAD 28379d,It can download the program, But the button RUN is always gray, can't run.

just like below.What's wrong ?

  • Scaler,

    Also, can you halt the program execution? If you halt it, where is PC?

    What is the boot switch setting? You may want to set it in Wait-boot, and then try.

    Just to make sure your setup is correct, can you try one of the simple example from C2000ware and check if it works. Please try Blinky_led example.

    The path of Blinky_led example

    C:/ti/c2000/C2000Ware_3_03_00_00/driverlib/f2837xd/examples/cpu1/led/

  • Hi Santosh,

    Thank you so much for replying me.

    I don't know how to setup the boot switch setting in ccs.from the picture we can see, this is the GUI when I selected the debug button, it point out that I can't halt the program execution but only can terminate the executin. just like picture below.

    but as I have selected the cpu1 ,It can halt can also can run. but when I selected the cpu2 and also selected the halt button, it indicated  "trouble removing breakpoint with the action "finish auto run"..........."

    I have also tried the simple example as you indicated to, It worked well. so what's wrong? How to setup? 

  • Hi Scaler,

    Please refer to the user's guide of Launchpad.

    www.ti.com/.../sprui77

  • Hi Santosh ,

    Thanks so much for your reply.

    But as the file SPRACO3 indicated that all the S1 switch in the LAUNCHXL-F28379D need to up and I just did like that.

    So it's not the problem.It seems like that when I debug the second time ,It cannot start at the program of main();

    But my debug options setup are like that , it seems right.

  • Hi,

    I assume you have tried simpler example (blinky_led) from C2000ware driverlib , and it works, right? I just wanted to make sure your setup is correct.

    Then In Autorun/Launch option, uncheck "On a program load and restart". Then it will stop at "codestart" assembly code and then you can debug from there.

  • Hi Santosh,

    Thank you for your reply,Now it works well.

    But I am still confused about that the graph on the graph window is always zero. I found that because the variable  in the expression window named motorVars[0].runMotor  is always MOTOR_STOP, and I have tried to change it to MOTOR_RUN, the motorVars[0].isrTicker and the motorVars[1].isrTicker didn't changed anymore.

    like Below.How to solve?

  • If you halt it, does the variables get refreshed and graph works ok?

  • Now it can works well, I have checked the programs in the project. In the expression window  a variable named ctrlState control the whole result of running firmware. As I have changed the motorVars[0].ctrlState from CTRL_FAULT to CTRL_RUN,it can works well.

    But as the instruction from SPRACO3 (LEVEL 4), I cannot regulate the speed. whatever I have give to the motorVars[0].speedRef, the speed keep unchanged. and  motorVars[0].Speed.Speed do not keep same with speedRef. why?

  • Create a separate thread on Motor Control so that we can assign to right expert. I am not familiar with Motor Control SDK. I will mark this thread as resolved.

  • Hi Santosh,

    Fine, thank you so much!

    Scaler