I've been struggling on this for a while. I'm configuring the CAN communication on the PMSM kit from NXP, in the below link.
The can_simple example that comes with the toolbox doesn't work on this kit, however, I have tested this module on the blue free evaluation board of MPC5643 from my local contact. It worked.
I submitted a help ticket on NXP customer support then. They sent me a simple project with just CAN transmission (hand written, not generated with MCToolbox). This compiled .elf works on the PMSM kit, but doesn't work on my blue evaluation board. So I'm pretty sure it's not my hardware broken. And there might be something not written properly or configured properly in the Motor Control Toolbox, so it's not compatible with the PMSM kit.
I'm not a software engineer, and I don't have software support resources in our team to spend months reading the reference manual and learn to use this microcontroller, not this year. That was why we chose to buy this toolbox, and the PMSM kit. They all come from NXP, there shall not be any compatibility issue and if any, I shall be able to get help from NXP.
So anybody knows about this issue, please help me!
Solved! Go to Solution.
An update is that, I found that compared to the simple CAN example from NXP support team, the
SIU.PCR.R = 0x0627;
SIU.PCR.R = 0x0103;
SIU.PSMI.R = 0x01;
are set the same values for CAN 0 and 1, so I change the CAN 0 to the above values to match what the support team sent me.
Then I got output from the CAN0_TXD pin, pretty much the same as it shows with the project from the support team. However, I'm transmitting 204, which is 11001100 in bin, and they are toggling 0x01. So it doesn't make sense for them to be the same.
So I'm suspecting even the program from the support team does not work. Then instead of probing on the CAN0_TXD, I probed on the CANH and CANL on J102, no output at all on the scope.
So to summarize, I don't have anything that works on my PMSM kit now for this CAN thing now.