CAN interface is not working for MIMXRT1064CVJ5B custom board

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CAN interface is not working for MIMXRT1064CVJ5B custom board

1,310 Views
nagesh150
Contributor I

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:

nagesh150_0-1703232839454.png

Custom board CAN TX data in logic analyzer:

nagesh150_1-1703232883008.png

If anyone has any idea about this issue can you please help me to resolve it?

 

Regards,

Nagesh

 

0 Kudos
Reply
5 Replies

1,253 Views
nxf77486
NXP TechSupport
NXP TechSupport

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.

0 Kudos
Reply

1,216 Views
nagesh150
Contributor I

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.

nagesh150_0-1704705739231.png

 

Thanks

0 Kudos
Reply

1,209 Views
nxf77486
NXP TechSupport
NXP TechSupport

Hello,

 

This is more  hardware configuration problem on the CAN side I will recommend to give a look into the hardware guide.

0 Kudos
Reply

1,207 Views
nagesh150
Contributor I

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

0 Kudos
Reply

1,144 Views
nxf77486
NXP TechSupport
NXP TechSupport

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.

https://www.influxtechnology.com/post/baud-rate

0 Kudos
Reply