PROBLEM IN FLEXCAN FD TX

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

PROBLEM IN FLEXCAN FD TX

868 Views
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!

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

673 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi Mandy,

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

BR, Petr

0 Kudos

673 Views
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 Kudos