Hi All,
I'm using the MIMXRT1064CVJ5B custom board. To test the CAN-2 peripheral using MCUXpresso IDE auto-generated code. But when I'm checking data over CAN-TX of the microcontroller it's showing a high signal. Same code I tested in MIMXRT1064-EVK it's showing the correct CAN frame format.
For more details please check the below pics.
EVK board CAN TX data in logic analyzer:
Custom board CAN TX data in logic analyzer:
If anyone has any idea about this issue can you please help me to resolve it?
Regards,
Nagesh
Hello,
Thank you for contacting NXP support.
In this case as the EVK is working properly, I would recommend to evaluate the hardware configuration on your custom board that can be the root cause. Also are you able to run an example like a hello world?
Please fin on this link the hardware user guide.
Hello,
Thanks for your support.
Yes, I'm able to run the "Hello World" example on the custom board.
I'm using the same configuration which I used for Evk. I'm using the MCUXpressoIDE_11.8.0 to generate code.
But not able to read the correct CAN frame in the case of the custom board.
Custom board CAN TX pin showing below data frame on the logic analyzer.
Thanks
Hello,
This is more hardware configuration problem on the CAN side I will recommend to give a look into the hardware guide.
Hi,
Thanks for help I changed baud rate to 500k previously It was 1M.
After changing baud rate to 500k I'm getting correct data. If I try baud rate more than 500k I'm not getting correct CAN frame.
Do you have any idea regarding this behavior?
Thanks
Hello,
Sure, the baud rate it is related to the bit rate and this will change depending on the messages are going to be send the value of the baud rate might vary. This is given through a formula, also it will depend on the device you are trying to communicate.
Please find the following link that has better explanation on the baud rate value calculations.