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.

TMS570LS3137: Is there example CAN Read and Write, and HALCoGen code available for this processor and the TMS570LS31x HDK Hercules Safety MCU Demo board?

Part Number: TMS570LS3137
Other Parts Discussed in Thread: HALCOGEN,

I'm looking for examples besides the code in the 'CAN Reader' demo of the TMS570LS31x HDK Hercules Safety MCU Demo which does not work, 

  • Hello William,

    The example code included with the HALCoGen tool does work. It has been fully tested and used for many years by a large number of our customers. If you would like assistance in getting this code working in your test setup, please post the symptoms of the problems that you are seeing along with your HW setup and we will do our best to help you through the implementation of the example.

    With that stated, you might also find this training video on youtube, www.youtube.com/watch. This video walks you through using Halcogen to configure and produce the CAN drivers and setting up a CAN network. Note that the video is dated so the tool versions referenced are early renditions and the USB kits that are used are no longer supported; however, the process with the current tools and the HDKs is the same.

    Again, if you encounter problems/issues in getting the code to work, we are more than happy to help debug any issues via this E2E forum.
  • Thank you for your reply. I will try the CAN example in the YouTube clip you reference. You don't address the issue about the CAN code on the Demo board not working.

    Please see this post on 3/6/2018 8:18:25 AM:
    TMS570LS3137-EP: Why does the Hercules Development Kit TMS570LS31x HDK not work for the Hercules Safety MCU Demos: Web Server and CAN Reader?
    Part Number: TMS570LS3137-EP TMS570LS31x HDK works fine with the Ambient Light, Ambient Temperature, LED Light Show, and Light Balancing demos, but not for the Web Server and CAN Reader. Is the demo code obsolete?
  • I am not a TI associated person. I did get some CAN working on a RM46 HDK.

    I suggest you get the demo board loaded from the demo sample tool program (not built from the demo samples), and see if you can observe CAN frames in the demo program.
    Wiring and resistors are often too easy to get wrong.
    You will need to make sure you are sending CAN frames.
    The demo CAN frame window can also "lose focus" and not display the incoming frames. Even though it is actually getting frames.

    I suggest you start there.