Flexray function Cycle Repetition and Base Cycle for MPC5604

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Flexray function Cycle Repetition and Base Cycle for MPC5604

1,822 次查看
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 项奖励
回复
5 回复数

1,761 次查看
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 项奖励
回复

1,718 次查看
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 项奖励
回复

1,493 次查看
Lyn
Contributor I
It is right according to reference manual. But it seems not work on my board. What about you?
0 项奖励
回复

1,788 次查看
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 项奖励
回复

1,776 次查看
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 项奖励
回复