PROBLEM IN FLEXCAN FD TX

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

PROBLEM IN FLEXCAN FD TX

2,752 次查看
383076174
Contributor I

hi, i use the mpc5748 devkit to do some research on CAN FD via S32DS.

i have tried to configure the fd registers and got some problems when debugging.

i import the can0 transmit example   anmake changes on it :use can1 port,add fd function.

then the related codes as,followed:

CAN_1.MCR.B.MIDS=1;

CAN_1.CTRL1.B.CLKSRC=0;

CAN_1.MCR.B.MIDS=0;

WHILE(!CAN_1.MCR.BFRZACK)

{}

CAN_1.CTRL1.R=0X04DB0086;

//ADD BY ME

CAN_1MCR.B.FDEN=1;

CAN_1.FDCTRL.B.MBDSR0=3;

...

CAN_1.FDCBT.R=0X00431863;//500bps

...

//CODE END

 

When i try to debug the project and have a sigle steP the code "CAN_1.FDCTRL...", the mistake happens and the related infomation is in the following accessory.

i cannot find the reason, and will appreciate if anyone sall help me,than you!

标签 (1)
标记 (2)
0 项奖励
2 回复数

2,557 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi Mandy,

could you please send us the whole project so we can test your issue?

BR, Petr

0 项奖励

2,557 次查看
383076174
Contributor I

PS: the expression is :

Failed to execute MI command:

-data-evaluate-expression (CAN_1.FDCTRL).MBDSR0

Error message from debugger back end:

There is no member named MBDSR0.

But i have found in MPC5748.h,  the example project has this definition( MBDSR0).

i think something set wrong with the registers which i pay no attention to,could anyone help me? Thanks a lot!

0 项奖励