Nowadays I tried to make a code associated with CAN.
I searched internet to find example code of CAN for S12ZVML but there is nothing.
In datasheet, there are many configuration registers.
Can you pick a few registers for testing CAN?
S12ZVML devices don't have CAN physical layer and only some of them have a CAN module (see Table 1-2. S12ZVM Family Feature Set Differences in the RM rev 2.13).
So, you will need S12ZVML with CAN module and external CAN PHY.
You can look at AN4975 Using MSCAN on the MagniV Family:
I hope it helps.
I refer the code and application note. But there are still problems.
When I do debug one of examples(AN4975SW code), it is okay to go to initialization mode.
When I check 'CAN0CTL0_INITRQ = 0', it must be exited initialization mode. CAN0CTL1_INITAK is not changed at all.
I have a problem from starting initialization of CAN.
DONE! Follwing AN4975
Retrieving data ...