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.

programming firmware SafeTI-HSK TMS570LS3137

Other Parts Discussed in Thread: TMS570LS3137, CCSTUDIO, NOWECC

 I'm trying to program the firmware of the Safety device of the safeTI-HSK kit. This is a TMS570LS3137
.
This is explained in the user manual. When I do everything like the user manual says, i am stuck with an error and fail to debug and load the HSK_Safety_Application project in the kit.

I'll explain first my actions step by step. If you're only interested in the error, I suggest you scroll down.

first I import the project delivered on the disc, and as you can see, i am 2 project files short.

when I import the project and build, I get my first error:

it says "Build-configuration 'com.ti.ccstudio.buildDefinitions.TMS470.Debug.2064034188' does not exist in the referenced project 'HSK_SafeTILib'. Use the 'Properties > Build > Dependencies' page to select an existing build-configuration."

The 2 projects I'm missing, are apperently in the depencies list:

Because I don't have these projects, i thought i'd better delete them from my depencies list.

After deleting them from the list an rebuilding, all the errors were gone.
But I saw there was one post-build error ignored..

As it was reffering to nowECC, i assumed it had a reason to ignore it. Because as requested in the manual, I installed nowECC in the right place:

after this I debugged the project, got yet again an error:


I checked the ccxml file and the project build options serveral times, but there's not the problem I think.

this is the third day i'm stuck with this error. I would prefer to not lose another day, trying to solve this error, because I am running out of inspiration..  i also emailed  hitex yesterday about my problem over here..

But I hope I get a quicker response here.

So can you please give a solution, or give me some links for extra/complete information about programming the firmware of the SafeTI-HSK kit with TMS570LS3137 as SDUT?
Or explain me just how to debug and load this project in this kit properly, without any errors?


i'll post some extra screens below as information.



  • Hi Jonas,

    I've assigned this query to one of our experts who will get back to you.

    Best regards,
    Paul

  • Hello,

    Sorry for a late response.

    I was able to reproduce this problem on my computer.

    However, on a colleague's computer, we were able to program the device correctly. This would lead me to infer that the problem is in the drivers installed on my computer (and possibly yours as well.)

    My observation was that irrespective of specifying the device to connect to be the TMS570LS3137 SDUT (specified by the Serial number TISAF001), the connection was always being established to the RM48 device. (You can verify this by opening up Debug view in Code Composer Studio, and launching the debug configuration for Hercules MCU specifying TISAF001 serial number for XDS100v2 (using the CCS configuration provided in the HSK) - then connecting to the target - you will observe that CCS shows it is connected to a Little Endian machine (and not Big Endian as it should for TMS570LS3137)). once you succeed in connecting, you may then flash the Control and monitor application to this target, OR the LE build version of the safety application. (Since you're connected to the LE Control and monitor device and not the BE SDUT); but not the BE variant - which will flag an endianness issue.

    Further, on flashing the C&M application, I was able to observe the backlight for the LCD on the HSK board turning on, which indicates that the C&M device is the one we are connected to.

    I've been trying to fix this problem but haven't succeeded other than finding another PC. You could try to clean the FTDI Drivers and TI CCS then reinstall the drivers and TI CCS. Please note that I haven't verified if this works.

    I've also raised this issue with Hitex - they may have had other similar reports for this problem, and so they may be able to corroborate my analysis and may already know a way to fix this.

    Thanks,

    Girish Gajwani

  • hello,

    Thanks for the response, it was very helpful. When I connect the SafeTI-HSK kit with my usb 2.0 gate instead of with the 3.0 gate, it works.

    but now i have another probem.. when I now succesfully load the HSK_Safety_Application project in the TMS570LS3137. The kit is not able to complete the sys_startup.c in a decent way, the project is not running as it should be. It gets stuck in the exception_vectors.asm.

     


    And it doesn't get out. So I started debugging step by step, to see where it goes wrong.

    This is the last step apparently, right before jumping to the exception_vectors.asm file:

    when i press the "step into" button (F5), it goes immediatly to the exception_vectors.asm file...

    any idea how to solve this problem? because I just want to be able to run the HSK_Safety_Application on the kit as it should be. So I can start at least from a working project to modify, for my requirements and developments.

    thanks,

    J.L.