FlexRay Startup fails

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

FlexRay Startup fails

2,667 Views
mexx1860
Contributor I

I am trying to start a FlexRay bus with 2 EVB9S12XF 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

 

while(Fr_get_POC_state() != FR_POCSTATE_NORMAL_ACTIVE) 

    {

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

    }

 

 

is endless.

 

 

 

my configurations are:

 

const Fr_low_level_config_type Fr_low_level_cfg_set_00 =

{

    15,         // G_COLD_START_ATTEMPTS 

    2,          // GD_ACTION_POINT_OFFSET 

    79,         // GD_CAS_RX_LOW_MAX 

    1,          // GD_DYNAMIC_SLOT_IDLE_PHASE 

    6,         // GD_MINISLOT 

    2,          // GD_MINI_SLOT_ACTION_POINT_OFFSET 

     24        // GD_STATIC_SLOT             

    13,         // GD_SYMBOL_WINDOW 

    9,         // GD_TSS_TRANSMITTER 

    59,         // GD_WAKEUP_SYMBOL_RX_IDLE 

    50,         // GD_WAKEUP_SYMBOL_RX_LOW 

    301,        // GD_WAKEUP_SYMBOL_RX_WINDOW 

    180,        // GD_WAKEUP_SYMBOL_TX_IDLE 

    60,         // GD_WAKEUP_SYMBOL_TX_LOW 

    2,          // G_LISTEN_NOISE 

    3636,       // G_MACRO_PER_CYCLE 

    2,         // G_MAX_WITHOUT_CLOCK_CORRECTION_PASSIVE 

    2,         // G_MAX_WITHOUT_CLOCK_CORRECTION_FATAL 

    289,          // G_NUMBER_OF_MINISLOTS      

    91,         // G_NUMBER_OF_STATIC_SLOTS   

    3632,       // G_OFFSET_CORRECTION_START   

    8,         // G_PAYLOAD_LENGTH_STATIC     

    15,          // G_SYNC_NODE_MAX 

    0,          // G_NETWORK_MANAGEMENT_VECTOR_LENGTH 

    TRUE,      // G_ALLOW_HALT_DUE_TO_CLOCK 

    0,         // G_ALLOW_PASSIVE_TO_ACTIVE 

    FR_CHANNEL_A,  // P_CHANNELS 

    212,        // PD_ACCEPTED_STARTUP_RANGE 

    2,          // P_CLUSTER_DRIFT_DAMPING 

    48,         // P_DECODING_CORRECTION 

    1,          // P_DELAY_COMPENSATION_A 

    1,          // P_DELAY_COMPENSATION_B 

    400242,     // PD_LISTEN_TIMEOUT 

    121,        // PD_MAX_DRIFT 

    0,          // P_EXTERN_OFFSET_CORRECTION 

    0,          // P_EXTERN_RATE_CORRECTION 

    4,          // P_KEY_SLOT_ID 

    TRUE,       // P_KEY_SLOT_USED_FOR_STARTUP   

    TRUE,       // P_KEY_SLOT_USED_FOR_SYNC      

    1850,        // P_KEY_SLOT_HEADER_CRC 

    268,         // P_LATEST_TX 

    3,          // P_MACRO_INITIAL_OFFSET_A 

    3,          // P_MACRO_INITIAL_OFFSET_B 

    6,         // P_MICRO_INITIAL_OFFSET_A 

    6,         // P_MICRO_INITIAL_OFFSET_B 

    200000,     // P_MICRO_PER_CYCLE 

    126,       // P_OFFSET_CORRECTION_OUT 

    121,        // P_RATE_CORRECTION_OUT 

    FALSE,      // P_SINGLE_SLOT_ENABLED 

    FR_CHANNEL_A,   // P_WAKEUP_CHANNEL 

    33,         // P_WAKEUP_PATTERN 

    55,         // P_MICRO_PER_MACRO_NOM 

    8           // P_PAYLOAD_LENGTH_DYN_MAX 

};

Labels (1)
Tags (2)
0 Kudos
Reply
4 Replies

934 Views
xulang
Contributor I

Have you solved the problem ?I met the same one.

0 Kudos
Reply

2,123 Views
lydoraemon
Contributor I

Have you solved the problem ?I met the same one.

0 Kudos
Reply

2,123 Views
khalidelazouzi
Contributor I

Hi,

I have the same problem, have you solved it?

Thanks

0 Kudos
Reply

2,124 Views
milanbaca
Contributor III

this equations have not been met

FR_equations.png

correct parameters are

CorrectParameters.jpg

0 Kudos
Reply