SPC5604 flexray relevant issues

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

SPC5604 flexray relevant issues

825件の閲覧回数
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 件の賞賛
返信
1 返信

809件の閲覧回数
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 件の賞賛
返信