Flexray function Cycle Repetition and Base Cycle for MPC5604

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

Flexray function Cycle Repetition and Base Cycle for MPC5604

1,885 Views
kevin198776
Contributor II

Hi all,

I try to find function about Flexray Cycle Repetition and Base Cycle. But I don't know which function should I use.

Is there any function that can accomplish Cycle Repetition and Base Cycle?

Thank you.

0 Kudos
Reply
5 Replies

1,824 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Regarding configuration of FlexRay driver, the configuration of message buffers is done in function Fr_buffers_init

which parameter is the pointer to the MB configuration structure. Fr_transmit_buffer_config_type is used for configuring the whole TX MB parameters.

for question the cycle filtering needs to be set

petervlna_0-1636707808236.png

Best regards,

Peter

 

0 Kudos
Reply

1,781 Views
kevin198776
Contributor II

Hi petervlna,

I tried modify the cycle value and cycle mask, and I got the result as follows:

value: start cycle count=> It's fine.

mask: 0x000000=>every cycles

0x000001=>2 cycles

0x000011=>4 cycles

0x000111=>8 cycles

0x001111=>16 cycles

0x011111=>32 cycles

0x111111=>64 cycles

And I can't get cycle 5,10,20,40,50. Do you have any suggestion?

 

Thanks.

0 Kudos
Reply

1,556 Views
Lyn
Contributor I
It is right according to reference manual. But it seems not work on my board. What about you?
0 Kudos
Reply

1,851 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Could you please close specify what you are looking for and which driver you are using?

Best regards,

Peter

0 Kudos
Reply

1,839 Views
kevin198776
Contributor II

Hi Petervlna,

I'm using the MPC5604P StarterTRAK (Development Kit).

I generated base code from RAppID and porting flexray driver from the example "FlexRay UNIFIED Driver and Application Example". I didn't find any function or register about  "Cycle Repetition and Base Cycle" in this example.

Could you give me some advice? Thanks.

0 Kudos
Reply