Hi,
My CAN0 FD works well, but when i set the CAN1 and CAN2 FD register, I find the IDE S32 show the error.Then i compare the CAN0 and CANX register in the MPC5748.h, and surprise find there are a lot of difference between CAN0 and CANX. A lot of registers exit in CAN0, while not exit in CANx, like CBT、IMASK3. Then i don't know how to configure CANX can_fd register.
the IDE S32 show error as below:
the register comparison between CAN0 and CAN7 .
Can I replace the CAN_1_7_tag with the can_0_tag?
Hi,
what is the device you are using in fact? Is this MPC5748G?
If yes all FlexCAN modules supports CAN FD, CAN0 supports also PN functionality, but does not have ECC functions as you shown (MECR, ERR... registers)
So what is the header version you have?
You can do modification you mentioned, but you shoudl not access registers that are not available.
BR, Petr
The device i use is Mpc5748G, and the version is 4.0.00. Do you have the newest version?
Hi petr,
Now i am using the PC10 and the PC11 as the CNA1 Can Fd transmit and receiver
while using the PF8 and PF9 as the CAN2 can fd transmit and receiver.
But the Sch show that two CAN share the same port, I have a little confusion about how to configure the port. Especially to the SIUL2.IMCR[Num].B.SSS register, I can't confirm the Num value, and i also can't find the value in the MPC5748 datasheet.
My PC10 and the PC11 port configuration as below:
PF8 and PF9 port configuration as below:
can you help me confirm the value and tell me where i can find the value?
Thanks.
Hi,
you can fond that info in the IO Signal Table or Input Muxing table given in IO Signal description excel file attached to the Reference Manual.
So for CAN1RX on PC11 you have
and thus SIUL2.IMCR[701-512].B.SSS = 0x3;
or from Input muxing
and you have directly
SIUL2.IMCR[189].B.SSS = 0x3;
Similarly you can find necessary info for CAN2 RX on PF9
BR, Petr
Hi petr,
Thanks,I find the attachment in the reference manual.