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!
Hi Mandy,
could you please send us the whole project so we can test your issue?
BR, Petr
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!