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 example code

Part Number: TMS570LS3137

We are using tms570ls3137 launchpad,we run the example code on demo board,but the code stopped at while ((Fray_PST->SIR_UN.SIR_UL & 0x4) == 0x0);    // wait for CYCS interrupt flag,What causes this?

And we have used the TJA1080A as a FlexRay transceiver.

  • Hi Qunxiong,

    The communication doesn't start. How many nodes are on the flexray nextwork? 

    Please be aware of that two fault-free coldstart nodes are necessary for the flexray network or cluster startup. Each startup frame must be a sync frame, therefore all coldstart nodes are sync nodes.

  • Hi QJ Wang,

    We have 2 nodes on the flexray network,do you have the example that communicate between 2 nodes?

  • And the coldstart is configured in the configure_initialize_node function

    Fr_ControllerInit(Fray_PST);
    	// Initialize Interrupts
    	Fray_PST->EIR_UN.EIR_UL       = 0xFFFFFFFF; // Clear Error Int.
    	Fray_PST->SIR_UN.SIR_UL       = 0xFFFFFFFF; // Clear Status Int.
    	Fray_PST->SILS_UN.SILS_UL     = 0x00000000; // all Status Int. to eray_int0
    	Fray_PST->SIER_UN.SIER_UL     = 0xFFFFFFFF; // Disable all Status Int.
    	Fray_PST->SIES_UN.SIES_UL     = 0x00000004; // Enable CYCSE Int.
    	Fray_PST->ILE_UN.ILE_UL       = 0x00000002; // enable eray_int1
    
    	Fr_AllowColdStart(Fray_PST);
    }
    	

  • Because you opened a new thread for flexray questions, I will close this one.