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.

target connection info for Hercules TMS570 USB stick

Other Parts Discussed in Thread: HALCOGEN

i just purchased the TMS570 USB stick which comes with CCSv4.2.4 I'm able to run the demo projects from the Hercules Demo Suite launcher, like the "Safety Features" and "Ambient Light" demos, which appear to burn the demo program in flash and run it out of flash. When i try to create a simple hello world project in CCS v4 however, i can't successfully run/debug the project. What is the right settings when creating a target configuration for the tms570 USB stick?

i tried starting CCS from the Hercules Safety MCU Demos launcher, which is supposed to import the demo projects into CCS but it does not appear to do that, as there are no projects visiable in the C/C++ project perspective.

If i create a new project after starting CCS via start->All Programs->TI->CCS, then add a simple hello world main() , build the project just fine and create a new target configuration,,, selecting TI XDS100v2 USB Emulator and TMS570LS137 as the "board or device". Then i launch the TI debugger which uses the tms570_tgt.ccxml target config i just created. In the debug perspective i can connect to the target and see the following message in the console window

"CortexR4: GEL Output:     Memory Map Setup for Flash @ Address 0x0"

next i try to do a target download by selecting the .out file from my project (Target->Load Program) and the Loading dialog window pops up and says operation in progress...   which if i expand the Details... shows that it is erasing flash and loading, but it never seems to complete successfully. Well i should say it appears to finish and automatically starts running but i never see teh "hello world" message displayed int he Console i/o window and if i halt the processor, it seems to be stuck at address 0x00000004 which has no program data there (all FFFFF's) perhaps the reset vector is missing?

Is there a way to download the image and run it out of RAM on the dev board? how does the necessary startup code also getting downloaded and burned into flash? i've done this with other TI dev boards and i presumed that the necessary startup code was generated as a result of using the project creation wizard and specifying the target processor suring that process.

thanks for any guidance you can provide

 

 

 

 


  • rmb_vector,

    Are you using HALCoGen to generate basic startup code for the device?

    There are a couple of very useful videos on this page that will help walk you through the process of creating a correct target in CCS as well as getting started with HALCoGen (especially USB Stick in CCSv4 and Getting Started with Halcogen). Keep in mind that these videos refer to the LS20216 device versus you would need to select the LS3137 instead.

    Getting you started gets handled in detail in our 1-day workshop. Slides for which can be found here.

     

    Once you are setup with the above this may help you with the missing bit for getting printf on the console.

    Also this should help you find the source code of the demo s/w.

     

    Regards,

    Abhishek

  • i have reviewed these videos but i see different behavior. The video that describes getting started with the USB stick shows that you can start CCS from the MCU demo launcher and the demo projects are automatically imported into CCS. When i start CCS is does not import the demo projects. perhaps i need to be pointing to a particular workspace for this to happen?

    for the simple hello world project i was trying, i did not use Halcogen to generate basic start up code for the device. Is it necessary to use Halcogen to generate startup code? On previous versions of CCS i did the same thing without using Halcogen, i assumed that the project creation wizard created the necessary startup code, is that the case?

    Also i would expect the instruction videos for the USB stick would show the exact target configuration you need to connect to the board. perhaps earlier versions used different processor devices? i will use the LS3137 that you suggest.

     

    thanks

  • In the latest version of the demo, the example code is not brought up in CCS. This is not a workspace issue.

    You can navigate to the project though. Please see  - "Also this should help you find the source code of the demo s/w." - for more information.

    >>for the simple hello world project i was trying, i did not use Halcogen to generate basic start up code for the device. Is it necessary to use Halcogen to generate startup code? On previous versions of CCS i did the same thing without using Halcogen, i assumed that the project creation wizard created the necessary startup code, is that the case?

    The Hercules family parts do not have any bootrom. So essentially all that you put in your CCS project is all that it will execute.

    As the device needs startup, initialization, configuration of PLL, etc, before executing application code, we recommend to use HALCoGen to generate this startup code.

    >>Also i would expect the instruction videos for the USB stick would show the exact target configuration you need to connect to the board. perhaps earlier versions used different processor devices? i will use the LS3137 that you suggest.

    The instruction video was done for the LS20x family. Everything other than which target you pick should be the same.