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?
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.
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
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
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