SPC5604 flexray relevant issues

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SPC5604 flexray relevant issues

1,000 Views
qiuquanfeng
Contributor II

I am trying to start a FlexRay bus with one  SPC5604 board and two BMW'S ECU but the bus wont start up.

    I get stuck in the "vfnFlexRay_Init" after "Fr_start_communication".

 

The Boards send the first Startup Frame but then nothing more happens and the loop

 

   /* Initialize startup */

    return_value = Fr_start_communication();

    if(return_value == FR_NOT_SUCCESS) Failed(4);   /* Call debug function in case of any error */

    

    protocol_state = Fr_get_POC_state();            /* Load current POC state */

   while(Fr_get_POC_state() != FR_POCSTATE_NORMAL_ACTIVE)  /* Wait till the FR CC is not in the FR_POCSTATE_NORMAL_ACTIVE */

    {

   }

  is endless.

 How can I solve the problem  ?

0 Kudos
Reply
1 Reply

984 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @qiuquanfeng 

let me re-use general suggestions when node1 and node2 can't reach normal active state:

I propose to check the following:
Connection between nodes (e.g. swapped wires, swapped channels)
All cluster parameters (g prefix) are same for both Node1 and Node2. Note that these parameters (e.g. gNumberOfStaticSlots, gNumberOfMinislots, etc..), must have the same value in all nodes in a cluster! See FlexRay Protocol Specification document.
There is no collision on the bus. Node1 and Node2 are not configured to transmit data in the same time slot.
Both Node1 and Node2 are configured as coldstart nodes. Then both nodes can initiate cluster start-up. See FlexRay Protocol Specification document.
Flexray protocol engine clock is correct. Normally 40MHz external oscillator or 80MHz PLL can be selected for FlexRay protocol clocking. See FR_MCR register for more details.

Regards,

Lukas

 

0 Kudos
Reply