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.

TMDX570LC43HDK: Setup for fast prototyping with the TMS570 HDK board

Part Number: TMDX570LC43HDK
Other Parts Discussed in Thread: HALCOGEN

Hi,

We would like to use the TMS570 HDK board for automation and CAN communication. It will replace a PLC. The main usage is a PIL (infinite loop) with CAN communication, get data from sensors and activate some relays. 

The HDK seems like iy suits our needs (we need a high level of safety). We have some experience with PLC and microcontroller programming, but still a little bit new to the TI world.

I have some questions about the needed setup so I we can make the best choices and don't buy unecessary licenses / parts.

Hardware : 

- From my understanding, the HDK board has CAN tranceivers and GIO pin exposed, so we only need wires and compatibles sensors. Is that true ?

Software :

- For programming, we would like to keep it simple, so we thought Simulink could be a good option ( but the licenses are expensive). Is it possible to use the HDK board with simulink embedded coder ? Will we have direct acces to blocks for GIO and CAN ? 

- For CAN, is it compatible with the Vehicle Network toolbox from simulink ? is this toolbox necessary for CAN communication ?

- If we use simulink, can we use StateFlow ? (for tasks timing)

- Should we use FreeRTOS along with simulink or only simulink is suffiscient ? (I saw people trying to use both along but I don't why )

- It semms like the process is ti generate the config files with HalCoGen, then use only simulink so program the board (without using CCS). I am right ?

I read somewhere in the forum from an old post that using PIL with hercules prevented acces to GIO. Is that true ?

Thanks again for your help, your answears will help use make the right purchase. 

 

  • Hello Ilyass,

    Hardware : 

    - From my understanding, the HDK board has CAN tranceivers and GIO pin exposed, so we only need wires and compatibles sensors. Is that true ?

    QJ> Yes, the HDK has 2 CAN transceivers for CAN1 and CAN2 modules. The GIO signals are exposed on the headers. 

    Software :

    - For programming, we would like to keep it simple, so we thought Simulink could be a good option ( but the licenses are expensive). Is it possible to use the HDK board with simulink embedded coder ? Will we have direct acces to blocks for GIO and CAN ? 

    QJW> Yes, you can use simulink embedded code. You can create your own receive and transmit blocks to use with TMS570LC43x which may not be supported by Vehicle Network Toolbox

    - For CAN, is it compatible with the Vehicle Network toolbox from simulink ? is this toolbox necessary for CAN communication ?

    QJ> I am not sure if TMS570 is supported by Vehicle Network Toolbox. If it is not supported, you can build your won CAN communication blocks with Simulink instead of using the CAN blocks in Vehicle Network toolbox. I don't have experience with Vehicle Network Toolbox.

    - If we use simulink, can we use StateFlow ? (for tasks timing)

    QJ> You can create a stateflow to define a Simulink model to react for external input signals.

    - Should we use FreeRTOS along with simulink or only simulink is suffiscient ? (I saw people trying to use both along but I don't why )

    QJ> I did not find any relevant information for freeRTOS + Simulink. I think you can use stateflow logic to implement the scheduler.

    - It semms like the process is ti generate the config files with HalCoGen, then use only simulink so program the board (without using CCS). I am right ?

    QJ> Yes, you are right.

    I read somewhere in the forum from an old post that using PIL with hercules prevented acces to GIO. Is that true ?

    QJ> Please refer to

     

  • Hi,

    Thanks for your answear ! That solves almost everything !

    But I still have questions on the CAN bus usage : 

    -> Is it supported by FreeRTOS ?

    -> Is there a default CAN block on simulink compatible with the TMS570 ? (We would like to prevent long custom coding and focus on the fuxtionnality of the prototype).

    I have the same question about the ethernet interface : Is it compatible with Freertos TCP/IP Webserver ? What about simulink ?

    Thanks !

  • Hello,

    As far as I know, we didn't develop Simulink block for CAN communication. 

    Please refer to this page:

    https://www.mathworks.com/hardware-support/arm-cortex-r.html