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.

Flexray example on TMS570LS12 HDK

Hi, Im trying to get the "The FlexRay demo source code for CCSv4.x" up and running on my TMS570LS12 HDK.

I only have one node on the network and want to analyse the FlexRay lines with a picoscope. 

I`m quite new to the TI MCU´s, but familiar with other MCU´s, I am wondering how to set up the FlexRay example on the TMS570LS12 using CCSv6. 

I have downloaded and installed the example, but are struggling a bit with implementing this in CCS and run it on the MCU. 

Do you have any pointers on how to proceed with this? The "HDK_FlexrayCanLin_Daughter_Crad" with TJA1080 (both channels) are connected to the TMS570LS12 HDK

Best Regards

Markus 

  • If you will be working with the TMS570LS12HDK and CCSv6, I suggest you start with this demo. This will install two CCSv5 projects in "c:\ti\Hercules\TMS570LS31 Flexray CCS5 Samples". Open CCSv6 and select File->Import->CCS Projects (Next) browse to the install path above, and select that directory (OK). It should find projects for node A and for node B. Select both projects and then (Finish). You should now be able to compile these projects in CCSv6.

  • Thank you Bob!

    I am not able to run the example, however, the code gets stuck waiting for CYCS interrupt flag:

    // wait for cycle start interrupt flag
    Fray_PST->SIR_UN.SIR_UL = 0xFFFFFFFF; // clear all status int. flags
    while ((Fray_PST->SIR_UN.SIR_UL & 0x4) == 0x0); // wait for CYCS interrupt flag <-------------------------- HERE
    Fray_PST->SIR_UN.SIR_UL = 0xFFFFFFFF; // clear all status int. flags¨

    This is in Fr.h under transmit_check_node_a(FRAY_ST *Fray_PST).

    Would you know how to get past this point?

    What i would like to acheive is to make the node send countinuously, (communication cycle 1.....n) and analyse the signal.

    I only have node a connected. Do i Need a node b in oder to achieve this? (Hopefully not :))

    EDIT: I also tried to "remove" the CYCS interrupt part of the code, in order to see if im able to se any signs of life when analyzing the BM and BP signals from the Transceiver, or on the RX or TX pins, but this seems to be quite calm... Hoping for a fast reply ! :)


    e2e.ti.com/.../552761

  • You must have at least two nodes for FlexRay to start and synchronize. National Instruments has a nice white paper on FlexRay. LINK

  • Thank you. 

    I was under the influence that it might work with one, but then ill get another TMS57012 HDK and produce another daughter card and test that. Ill also read the white paper, thanks :)