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.

Problem in Flash programing with TMDSDOCK28035

Other Parts Discussed in Thread: TMDSDOCK28035, CONTROLSUITE

Here is the background of what I am trying to do:

1. I am using CCS V4.2.1 with windows 7

2. Using TMDSDOCK28035, the control card does not have emulator (older version), I am using XDS510LC USB Jtag emulator for programing

3. Installed ControlSUITE from TI web under C:\TI

4. Using 2XPM_Sensorless program in the directory LVMultiAxis+PfcKit_v1.4 in the ControlSuite.

5. I bought TMDS2MTRPFCKIT, however starting from scratch to learn on the controlcard first.

Problem:

I can compile and produce the .out file and load into the flash by selecting Flash option in active build configuration. However, when I see the program execution I realized the operation is stuck in the following code

 

// Waiting for enable flag set

 while (EnableFlag==FALSE)

 {

BackTicker++;

 }

 

in the 2XPM_Sensorless.c file. So, I commented out this part and then loaded the new .out file. This is better and the execution goes to A,B,C tasks etc and I can insert small LED blinking stuff there and it works.

However, it looks like to me the program is still in RAM, because when I power off and then turn on, the program goes away. Since I have used flash option, why is this problem ???

 

 

  • Unfortunately setting up a program for flash isn't as simple as selecting an option.  Linker files may need to be changed and flash initialized.  I suggest you read this document, follow the steps and see if it works.

    http://focus.ti.com/lit/an/spra958i/spra958i.pdf

     

    Tim

  • Well, I will read the document and try to understand if there is any problem with the .cmd files. However when I select Flash option in active build configuration, the project adds the proper .cmd files for flash programing from controlsuite. Don't you think I don't need to alter these files. Do you think the .cmd files in controlsuite is not properly written for the devices. Can somebody help me in understanding what going on here !!

  • The example project in controlSUITE indeed contain different configurations for CCS4, so it actually just needs the activation of the correct configuration (in this case "FLASH") to have all the correct cmd-files as part of the project.

    The code examples are based on "switch" variables, which can be used to activate/deactivate the execution of certain parts of the code while it is running.  The "EnableFlag" in your code example is one of them. Add this variable to the watch window, start the execution in realtime-mode, enable continuous refresh for the watch window and manipulate  "EnableFlag" there.