Unexpected CAN2 Error Interrupts on i.MX RT1064 Despite ESR Error Bits Being Clear

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

Unexpected CAN2 Error Interrupts on i.MX RT1064 Despite ESR Error Bits Being Clear

533 Views
documentsNeeded
Contributor II

I'm using the i.MX RT1064 development board to develop a CAN driver. The code uses both CAN lines (CAN1 and CAN2). CAN1 works flawlessly, but I'm getting random error interrupts from CAN2. In the ESR register, the ERR_INT flag is set, but the Error Bits (bits 15–10) in the ESR are all zeros.

While debugging, I noticed that the SDK code defines the FSL_FEATURE_FLEXCAN_HAS_ERRATA_6032 flag in the MIMXRT1064_features.h file. Disabling this flag seems to solve the problem — or at least significantly reduces the number of interrupts. However, when I checked the official errata documents on NXP's website, there was no mention of errata 6032 for the i.MX RT1064.

Is there a specific reason why this define is included in the SDK files, or am I missing something?

Labels (1)
Tags (2)
0 Kudos
Reply
5 Replies

483 Views
mayliu1
NXP Employee
NXP Employee

Hi @documentsNeeded ,

Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.

Please check whether CAN2 has the problems described below.

mayliu1_0-1750145122571.png

I recommend using the SDK example “evkmimxrt1064_flexcan_interrupt_transfer ”, which  use CAN2. Please do not  making any code modifications. If the SDK runs successfully, please compare your project with the SDK project to identify discrepancies.

Wish it helps you.
If you still have question about it, please kindly let me know.

Wish you a nice day!

Best Regards
MayLiu

0 Kudos
Reply

478 Views
documentsNeeded
Contributor II
Hi! Thank you for quick response.

I will try SDK example as soon as possible but confusing part is the erratum you mentioned does not appear to be in i.MX RT1064 errata documentation. Why do SDK codebase includes this workaround?
0 Kudos
Reply

439 Views
mayliu1
NXP Employee
NXP Employee

Hi @documentsNeeded ,

Thanks for your updated information.

Question: confusing part is the erratum you mentioned does not appear to be in i.MX RT1064 errata documentation. Why do SDK codebase includes this workaround?

Answer: I double check this question with SDK relevant team,  SDK codebase need include this workaround. In IMXRT1050CE, there is a description about this errata  ID 6032.

https://www.nxp.com/docs/en/errata/IMXRT1050CE.pdf

Regarding why errata  ID 6032  does not list  in i.MX RT1064 errata documentation.

I will also escalate your question internally.

Best Regards

MayLiu

0 Kudos
Reply

392 Views
documentsNeeded
Contributor II
Hello, is there any update about errata documentation?
0 Kudos
Reply

385 Views
mayliu1
NXP Employee
NXP Employee

Hi @documentsNeeded ,

Thanks for your reply.

I have already created an internal ticket for this issue.

Thank you for raising this question.

Best Regards

MayLiu

0 Kudos
Reply