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.

Burning programs onto TMS570LS3137

Other Parts Discussed in Thread: TMS570LS3137, INSTASPIN-BLDC, DRV8301, CONTROLSUITE, UNIFLASH, MOTORWARE

Hi all.

I have the DRV8301-HC EVM RevD board along with the TMS570LS3137 control card. I have followed the instructions that came with the kit ( bought the DRV8301-LS31-KIT). And also looked at this video here : https://www.youtube.com/watch?v=M9XWL4NDtnU

The problem is that i can't burn the program into the flash from the CCS. I have created a target configuration as per the instructions in the video, and hit connect target, but after that i get the error message : No source available for "0x0" and 

CortexR4: GEL: File: C:\ti\controlSUITE\development_kits\DRV830x-HC-C2-KIT_v105\~GUI\InstaSPIN-BLDC_GUI_DRV8301_v104.out Does not match the target type, not loaded.

When trying to load the program.

Also, the icons in the Debug window look like this :



not like the icons in the Youtube video.

Do you have any thoughts on what I am missing here?

Regards, Gunnar.

  • Hi Gunnar,

    Generally speaking, CCS likes to have a project loaded upon connect so that it can program the device on connect.  It does not appear that you have any projects loaded so this is why you get the "no source available for 0x0" message in your disassembly window. i.e., if there is no source loaded to the device, there is no source to load into the view. However, usually the control cards come pre-programmed with the BLCD demo code.

    If all you want to do is program a .out file into the device, I might recommend downloading/installing the Universal Programming Tool from TI, Uniflash. It is located here: http://processors.wiki.ti.com/index.php/Category:CCS_UniFlash

    I understand that you are just getting started and looking for guidance in getting things up and running. I found the following video on you tube that I think will be quite helpful since it is actually using a Hercules version of the kit.

    https://www.youtube.com/watch?v=ofZE8qTWDtY

    Also, the video link you included is a bit out of date since we are now up to CCS v.6.0 so there are significant changes to the IDE that are not comprehended in the video you were looking at. There might also be some differences between the C2000 implementation and Hercules implementations causing some confusion.

    None the less, please reference the video link above and let us know if you continue to have any issues.

  • Hi Chuck.

    I did everything exactly as he does in the video, but there doesn't seem to be a connection between my computer and the board.

    When i open up the InstaSpin Gui I get this message :


    It seems on all the videos that it should be very simple, and work straight out of the box, but it just doesn't, and im clueless over what could be the cause.

    Regards, Gunnar.

  • Hello,

    When you open the TMS570_instaspin_bldc project in CCS, you should see the following in the "Project Explorer" window.

    The circled file is a target configuration file that is used to define the specific part being used to CCS (part number, flash configuration, debug access path).

    Right-click on this file and choose "Set as  Active Target Configuration".

    Also, once you make any changes and recompile the project, the updated .out file should be under the following folder:

    C:\ti\Hercules\MotorWare\v1.0.3.03\sw\solutions\instaspin_bldc\boards\drv8301kit_revD\hercules\tms570ls3137\projects\ccs5\project01\Debug\TMS570_instaspin_bldc.out

    The file that you mentioned in this thread is not built for the TMS570LS31x MCU and will indeed generate errors if you try to program that file into the LS31x MCU.

    Hope this helps.

    Regards, Sunil

  • Ok. I think Im getting closer.

    My main concern now is that the icons in my debug window look nothing like those in the instruction videos, this is my debug window : 

    But i think everything in the project explorer looks normal (except that the target configuration won't go active).

    Any thoughts on that? Still cant burn into the flash :(

    Regards, Gunnar.

  • Gunnar,

    I wouldn't worry too much about that at this point. It could be primarily due to the user's setup in the demo video, OS differences, or simply a CCS version difference. The screen capture you have shown looks similar to what I see when using CCS.

  • Hi Chuck.

    To me it seems like the control card just cant connect with the computer. I think the settings and configurations are correct, but somehow im not able to connect.

    Ive already spent like 3 days on and off just trying to get the motor spinning, and im on the brink of just dropping all this and finding another platform to work with...

  • Some steps to follow to further debug this:

    1. Create your own target configuration file for the XDS100v2 emulator. Please choose the correct part number from the list of MCUs.
    2. This target configuration will now appear in the set of "User Defined" target configurations.
    3. Right-click on this target configuration and select "Launch Selected Configuration".
    4. This will switch CCS to the "Debug" perspective. Now right-click on the "XDS100v2 USB Emulator...  (disconnected)" and select "Connect Target".
    5. Only once this step finishes are you truly connected to the MCU via JTAG.

    Once you get to this point, then you can try programming the flash with updated code.

    -Sunil

  • Ive done exactly this about 50 times, and this is where i get the error prompts ive posted above...