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.

CCS/TMS570LS3137: FlexRay communication

Part Number: TMS570LS3137
Other Parts Discussed in Thread: HALCOGEN

Tool/software: Code Composer Studio

Dear, I am a master student and I am doing studies on embedded communication, where I used 3 TMS570LS31HDK boards as processors, and a board was designed based on the files of the "HDK_FlexrayCanLin_Daughter_Crad" board with 3 full Flexray nodes (node A and node B using 2x TJA1080A ) to interconnect the processor boards directly on this board using the J11 connector. I need to perform the communication using the FlexRay protocol between these 3 nodes (A and B), sending a small data packet between them, so that I can check the reception and transmission via DEBUG. I have 2 questions for this setup, they are:
1) Can the sample code of the FlexRay nodes be used for this test? If so, what do I need to change in the code for the 3 modules to communicate with each other?
2) Can the TI-RTOS be used on these cards and communicating through FlexRay? If so, how should I proceed?

Thanks in advance for the help.

  • Hello Daniel,

    1. You can download the example code for TMS570LS31x. If you have 2 flexray nodes in the network, you don't need to change the code
    2. You can generate a freeRTOS project through the HALCoGen. TI-RTOS doesn't support TMS570LSx devices.
  • Hi Wang,

    On my network, I have 3 nodes, with channels A and B each node. As I understood, in this case, I have to change the configuration of the example you cited, could you show me what changes and in what source file do I make these changes?

    About freeRTOS, it's possible use this OS to communicate with FlexRay as I mentioned above?

    Thank you.

    Regards

  • Hello,

    In clusters consisting of three or more nodes, at least three nodes shall be configured to be coldstart nodes. Your 3rd node should be configured as coldstart node. Each startup frame must also be a sync frame, so all of your nodes will also be a sync nodes.

    Please check the controller configuration to make sure the sync node max is 8, and static clot number is more than 3.

    GTUC2[19:16]
    GTUC7[25:16]

    The buffer configuration should be different for each node: buffer ID, pointers to data, filter pattern,
  • Hello Wang,
    In your answer, you indicated that I could connect the 3 nodes using the demo software, taking into consideration that the 3 should be configured as cold start. I confess that I could not identify how I proceed with this configuration (could you give me an example?). I searched the site, but I did not find an explanation about the operation of this demo, an operating manual, etc., is there such a document? Where can I find it?
    As I said earlier, I built the daughter FlexRay boards (3 nodes) and set Node 1 to 1 and Node 2 to node B, at first the communication starts (the white LEDs of the run_LED_StartUp function flash) and there is an access to the bus (displayed with an oscilloscope), but this "communication" ends. I can not see the data transmitted and / or received in the CCS debug, can I verify this data? In which registers and / or variables?
    Another issue that was not clear to me, is it possible to use FreeRTOS by implementing the FlexRay nodes? Why in HalCoGen when using FreeRTOS, is the FlexRay function disabled?