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: Flexray code example - debug recommendations

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

My customer is having issues to debug the Flexray code example. It seems the first packet is transmitted, but little happens after that.

Here are questions and observations in a numerical format. Any comments you have are helpful to get us moving:

1. The system is comprised of 3 evaluation modules TMDS570LS31HDK at the moment. One programmed as node A and two programmed as node B. When resetting any of the boards in the system, the others respond by briefly flashing the LED's. 

2. The code execution stops at FlexRAy.c, line 203 of node A (the

board being debugged), waiting for the flag CYCS to get set - picture below

3. The customer collected some of the traffic with a logic analyzer, but it seems the payload is zero. Would it be helpful for us to understand if this capture has any issues or not based on what is expected from the code example.

4. Question: are the examples supposed to continue to exchange data indefinitely?

5. Question: what are the changes we should make to the examples to make this run properly? Should addresses, memory protection areas, and FlexRay ID's be configured? What are the files we should modify?

Thank you!

  • Hello!

    To complement this information about system, the TMDS570LS31HDK are connected to a board designed based on  HDK_FlexrayCanLin_Daughter_Crad, from TI, using as FlexRay driver the TJA1080A.

  • After few more experiments with the system, we are able to confirm that the transmission and reception are happening, but the data exchanged is zero. As a result, the verification in the example code is failing, causing the execution to get trapped. I have a suspicion that the memory blocks are not properly setup and therefore the buffers either don't have access to RAM or are trying to pull the data from invalid locations. Can you please comment on that? How do we properly and specifically setup the example to run with the TMS570LS3137?

    Thank you!

  • Please help me understand a couple of aspects in the Hercules development and how those relate to the Flexray code example:

    1. I understand now that the original Flexray example is for the LS202xx series and therefore we should adjust the PLL when running the code in the LS3137. I pulled an example for the LS3137 and did see minor differences in how each of the PLL1, 2, and 3 are setup. Should I just copy those configurations over? Any special settings that might be related to the Flexray example?

    2. In the Flexray example I could not find any linker command files. I do see one in the generic LS3137 code example - should I also just copy and include the sys_link.cmd file? If so, should I configure it in any special way?

    Thank you! 

  • Lenio

    Looks like QJ has sent you some guidance offline. 

    For now I am marking this thread resolved/closed, feel free to post back if the guidance did not help.

    Regards

    Mukul