<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: IMXRT1062 Hardfault Reading CAN3 ERFCR Register in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1062-Hardfault-Reading-CAN3-ERFCR-Register/m-p/906140#M3124</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kerry Zhou wrote:&lt;/P&gt;&lt;P&gt;&amp;gt; But at last, I have been told that the RT1060 can't support the enhanced RX FIFO function,&lt;/P&gt;&lt;P&gt;&amp;gt; It's totally the RT1060,RT1064 reference manual bug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's not the only document that doesn't match the CAN FD hardware that is in the chip.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This "&lt;SPAN style="left: 248.032px; top: 1158.1px; font-size: 14.5882px; font-family: sans-serif; transform: scaleX(0.962824);"&gt;&lt;SPAN class=""&gt;Enhanced&lt;/SPAN&gt; Features in i.MX RT1060&lt;/SPAN&gt; Application Note" dated September 2018&lt;SPAN style="left: 492.191px; top: 1158.1px; font-size: 14.5882px; font-family: sans-serif; transform: scaleX(0.816941);"&gt; lists the "Full-featured enhanced Rx FIFO" as being there (or intending to be there):&lt;SPAN class="" style="left: 351.171px; top: 996.616px; font-size: 19.451px; font-family: sans-serif; transform: scaleX(0.815484);"&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN12240.pdf" rel="nofollow noopener noreferrer" title="https://www.nxp.com/docs/en/application-note/AN12240.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/application-note/AN12240.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All of these "Enhanced" registers are also defined in the SDK&amp;nbsp; in "/devices/MIMXRT1062/MIMRX1062h".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's not all that is missing in that module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "Enhanced CAN Bit Timing Prescalers", "Enhanced Nominal CAN Bit Timing", "Enhanced Data Phase CAN bit Timing" and "Enhanced Transceiver Delay Compensation" registers and functionality aren't there. These are all enabled by "CAN_CTRL2[BTE]". This is bit 0x2000 in register 0x401D8034. This bit should not work as the registers it controls don't exist. This works correctly - that bit doesn't seem to be implemented. I can't set it.&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;(gdb) reset
Resetting target
(gdb) x 0x401D8000
0x401d8000: 0x5980000f
(gdb) set *0x401D8000 = 0x5980080f
(gdb) x 0x401D8000
0x401d8000: 0x5980080f
(gdb) x 0x401D8034
0x401d8034: 0x00800000
(gdb) set *0x401D8034=0x00802000
(gdb) x 0x401D8034
0x401d8034: 0x00800000‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But there's something else missing from the CAN_CTRL2 register. According to the Reference Manual, the bits 0xCFFFFBC0 should be read-write. Or 0xCFFFDBC0 when "BTE" is removed. But I'm only getting:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;(gdb) set *0x401D8034=0xffffffff
(gdb) x 0x401D8034
0x401d8034: 0xcfffd800
‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The MBTSBASE and TSTAMPCAP fields are missing as well. They're the "Message Buffer Time Stamp Base" and "Time Stamp Capture Point". Those wishing to program this part might like to compare the i.MXRT1060 manual with this one, which seems to be a better match to the model/version of the FlexCAN part:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Freference-manual%2FMPC5746CRM.pdf" rel="nofollow noopener noreferrer" target="_blank"&gt;https://www.nxp.com/docs/en/reference-manual/MPC5746CRM.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; I have been told that in the new chip RT1170, RT1070&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have those chips been announced? We've managed to find one mention in a "Roadmap" document only. Google now finds this post mentioning that part too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Sep 2019 00:15:59 GMT</pubDate>
    <dc:creator>TomE</dc:creator>
    <dc:date>2019-09-04T00:15:59Z</dc:date>
    <item>
      <title>IMXRT1062 Hardfault Reading CAN3 ERFCR Register</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1062-Hardfault-Reading-CAN3-ERFCR-Register/m-p/906102#M3086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;According to the 1060RM setting the ERFCR will enable the Enhanced FIFO.&amp;nbsp; However when I try to even read the register in the FLEXCAN&amp;nbsp; example it throws a hard fault.&amp;nbsp; When I tried it in my own application on a imxrt1062 I also get a hard fault at that register address.&amp;nbsp; Needless to say I can't set it either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the question is, what is the cause of the issue and is Enhanced FIFO even enabled and the RM is incorrect?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2019 00:17:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1062-Hardfault-Reading-CAN3-ERFCR-Register/m-p/906102#M3086</guid>
      <dc:creator>michaelsmorto</dc:creator>
      <dc:date>2019-05-24T00:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: IMXRT1062 Hardfault Reading CAN3 ERFCR Register</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1062-Hardfault-Reading-CAN3-ERFCR-Register/m-p/906103#M3087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you read the registers at offset zero? Can you read all the registers from 0x00 to 0x50?&lt;/P&gt;&lt;P&gt;... the MBs from 0x80 to 0x47f?&lt;/P&gt;&lt;P&gt;... the RXIMRs from 0x880 to 0x87c?&lt;/P&gt;&lt;P&gt;... 0xbf0 to 0xbfc?&lt;/P&gt;&lt;P&gt;... 0xc00 to 0xc14?&lt;/P&gt;&lt;P&gt;... 0xc30 to 0xd2c?&lt;/P&gt;&lt;P&gt;... 0x2000 - 0x204c?&lt;/P&gt;&lt;P&gt;... 0x3000 - 0x31fc?&lt;/P&gt;&lt;P&gt;Are you sure "CAN_MCR[RFEN]" isn't set?&lt;/P&gt;&lt;P&gt;Does the module have all of its clocks generated and enabled (Table 13-5 and CCM_CCGR7?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2019 01:07:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1062-Hardfault-Reading-CAN3-ERFCR-Register/m-p/906103#M3087</guid>
      <dc:creator>TomE</dc:creator>
      <dc:date>2019-05-28T01:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: IMXRT1062 Hardfault Reading CAN3 ERFCR Register</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1062-Hardfault-Reading-CAN3-ERFCR-Register/m-p/906104#M3088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;STRONG&gt;&lt;A _jive_internal="true" data-avatarid="-1" data-content-finding="Community" data-userid="289576" data-username="michaelsmorto" href="https://community.nxp.com/people/michaelsmorto"&gt;Michael Smorto&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Do you follow this procedure?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_10.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/83997iBF983553CC47BCF1/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_10.png" alt="pastedImage_10.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2019 10:33:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1062-Hardfault-Reading-CAN3-ERFCR-Register/m-p/906104#M3088</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-05-28T10:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: IMXRT1062 Hardfault Reading CAN3 ERFCR Register</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1062-Hardfault-Reading-CAN3-ERFCR-Register/m-p/906105#M3089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kerry&lt;/P&gt;&lt;P&gt;Thanks for getting back to me.&lt;/P&gt;&lt;P&gt;For the easy answers.&amp;nbsp; Yes I did follow the procedure the procedure that you reference from the manual including entering freeze mode before making the changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for your question "&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #51626f; font-family: inherit; font-size: 100%; font-style: inherit; font-variant: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Are you sure "CAN_MCR[RFEN]" isn't set?&lt;/SPAN&gt;"&amp;nbsp; - will have to do a double and check and let you know about that one as well as your other questions in your first post.&amp;nbsp; In regards to the clocks being set, that I can say yes they are set for sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT:&lt;/P&gt;&lt;P&gt;In the app after setting the clocks (know this works - the sdk example works on my hardware).&amp;nbsp; I do a call to:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FLEXCAN_FDInit(EXAMPLE_CAN, &amp;amp;flexcanConfig, EXAMPLE_CAN_CLK_FREQ, BYTES_IN_MB, true);&lt;/P&gt;&lt;P&gt;After that I do a call to my function:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FLEXCAN_SetRxEnhancedFifoConfig(EXAMPLE_CAN, true);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With that function looking like:&lt;/P&gt;&lt;DIV style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 13px;"&gt;void FLEXCAN_SetRxEnhancedFifoConfig(CAN_Type *base, bool enable)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Serial.println("Entered FIFO Config");&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp;//only valid for Flexcan3..........&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Assertion. */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //assert((config) || (false == enable));&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Enter Freeze Mode. */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FLEXCAN_EnterFreezeMode(base);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp;Serial.println("Entered Freeze Mode");&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (enable)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Serial.println(CAN_ERFCR_ERFEN(1), BIN);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; delay(5000);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Serial.println(base-&amp;gt;ERFCR,BIN);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; delay(5000);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;base-&amp;gt;ERFCR |= CAN_ERFCR_ERFEN(1);&amp;nbsp;&amp;nbsp;//Enable enhanced FIFO&amp;nbsp; &lt;STRONG&gt;&amp;lt;======= Dies here......&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Serial.println(base-&amp;gt;ERFCR,BIN);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; delay(5000);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;FLEXCAN3_ERFSR = CAN_ERFSR_ERFCLR(1);&amp;nbsp;&amp;nbsp;//Reset RxFIFO engine&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;//Clear EFRSR bits&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;FLEXCAN3_ERFSR = CAN_ERFSR_ERFUFW(0) | CAN_ERFSR_ERFOVF(0) | CAN_ERFSR_ERFWMI(0) | CAN_ERFSR_ERFDA(0);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;FLEXCAN3_ERFCR |= CAN_ERFCR_NFE(2);&amp;nbsp;&amp;nbsp;&amp;nbsp;//Configure total number of Rx FIFO filter elements&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;FLEXCAN3_ERFCR |= CAN_ERFCR_NEXIF(3);&amp;nbsp;&amp;nbsp;// number of extended ID &amp;amp; standard ID filter elements&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;FLEXCAN3_ERFCR |= CAN_ERFSR_ERFWMI(1);&amp;nbsp;&amp;nbsp;// number of messages in FIFO greater than the watermark&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;FLEXCAN3_ERFIER = 0x01;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// Enable interrupts if they are to be used&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;TBD&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// Enable DMA operation in MCR[DMA]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;//FLEXCAN3_ERFCR |= CAN_ERFCR_DMALW(1);&amp;nbsp;&amp;nbsp;// to configure number of words to be transfered for each data element&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;//Configure filter elements by writing to the ERFFELn registers?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;//FLEXCAN3_ERFFEL0...127&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Serial.println("Registers setup");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;flexcan_fd_fifo_filter_b01_t b01;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;b01.fsch = 0b01;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;//b01.RTRfilt = 0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;b01.std_id_flt1 = 0x000;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;//b01.RTRmsk = 0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;b01.std_id_flt1 = 0x650;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;FLEXCAN3_ERFFEL0 = CAN_ERFFEL_FEL(&amp;amp;b01);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;FLEXCAN3_ERFFEL1 = CAN_ERFFEL_FEL(&amp;amp;b01);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Exit Freeze Mode. */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FLEXCAN_ExitFreezeMode(base);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp;FLEXCAN_EnableEnhancedFIFOInterrupts();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2019 13:37:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1062-Hardfault-Reading-CAN3-ERFCR-Register/m-p/906105#M3089</guid>
      <dc:creator>michaelsmorto</dc:creator>
      <dc:date>2019-05-28T13:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: IMXRT1062 Hardfault Reading CAN3 ERFCR Register</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1062-Hardfault-Reading-CAN3-ERFCR-Register/m-p/906106#M3090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="289576" data-username="michaelsmorto" href="https://community.nxp.com/people/michaelsmorto"&gt;Michael Smorto&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Before you call&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp;base-&amp;gt;ERFCR |= CAN_ERFCR_ERFEN(1);&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Please note this point:&lt;/P&gt;&lt;P&gt;MCR[RFEN] must be cleared so that Enhanced Rx FIFO is enabled.&lt;/P&gt;&lt;P&gt;I find your code didn't add the MCR[RFEN] clear code, please add it and try it again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;BTW, it's better to provide the source code, because I even can't find your definition about:flexcan_fd_fifo_filter_b01_t&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2019 09:07:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1062-Hardfault-Reading-CAN3-ERFCR-Register/m-p/906106#M3090</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-05-30T09:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: IMXRT1062 Hardfault Reading CAN3 ERFCR Register</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1062-Hardfault-Reading-CAN3-ERFCR-Register/m-p/906107#M3091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kerry&lt;/P&gt;&lt;P&gt;Sorry I didn't get back to you sooner but wrapped up in some other testing yesterday.&amp;nbsp; Anyway, I cleared MCR[FREN] bit and double checked that it was cleared by outputting the register in binary.&amp;nbsp; Matter of before clearing the bit I checked and it was already cleared.&amp;nbsp; But anyway, I do have to advise you that I already know that I am sure there are errors in my implementation for Enhanced FIFO but figured it would debug those going forward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway here is the whole source code.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 May 2019 12:00:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1062-Hardfault-Reading-CAN3-ERFCR-Register/m-p/906107#M3091</guid>
      <dc:creator>michaelsmorto</dc:creator>
      <dc:date>2019-05-31T12:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: IMXRT1062 Hardfault Reading CAN3 ERFCR Register</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1062-Hardfault-Reading-CAN3-ERFCR-Register/m-p/906108#M3092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;SPAN style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #646464; font-family: inherit; font-size: 100%; font-style: inherit; font-variant: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; vertical-align: baseline; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px; border: 0px none currentColor;"&gt;Kerry&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I converted the whole app to run on the 1062EVB instead of what I sent you.&amp;nbsp; Please see attached zip.&amp;nbsp; Maybe easier for you to use.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Jun 2019 11:48:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1062-Hardfault-Reading-CAN3-ERFCR-Register/m-p/906108#M3092</guid>
      <dc:creator>michaelsmorto</dc:creator>
      <dc:date>2019-06-02T11:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: IMXRT1062 Hardfault Reading CAN3 ERFCR Register</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1062-Hardfault-Reading-CAN3-ERFCR-Register/m-p/906109#M3093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="289576" data-username="michaelsmorto" href="https://community.nxp.com/people/michaelsmorto"&gt;Michael Smorto&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Thank you for your new code.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Do you port your code to the SDK canfd_interrupt project, now, could you tell me, what the detailed problem in your attachment, still enter the hard fault? Which code line will enter the hard fault, then I will help you to test it on my board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jun 2019 03:06:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1062-Hardfault-Reading-CAN3-ERFCR-Register/m-p/906109#M3093</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-06-03T03:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: IMXRT1062 Hardfault Reading CAN3 ERFCR Register</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1062-Hardfault-Reading-CAN3-ERFCR-Register/m-p/906110#M3094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you check to see what other registers in the Flexcan controller can be read? Which ones can and which ones can't may point to the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;SPAN style="font-size: 13px;"&gt;base-&amp;gt;ERFCR |= CAN_ERFCR_ERFEN(1);&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you sure the compiler isn't turning that into a bit or byte operation? Can you disassemble it and see what it is really doing?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The definition of the address of "ERFCR" also relies on a lot of definitions in the headers being right, and six sets of "uint8_t RESERVED_N[MMM]" being parsed properly. Can you print the address you're actually accessing to see if it is correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jun 2019 04:31:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1062-Hardfault-Reading-CAN3-ERFCR-Register/m-p/906110#M3094</guid>
      <dc:creator>TomE</dc:creator>
      <dc:date>2019-06-03T04:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: IMXRT1062 Hardfault Reading CAN3 ERFCR Register</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1062-Hardfault-Reading-CAN3-ERFCR-Register/m-p/906111#M3095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kerry&lt;/P&gt;&lt;P&gt;Just reran.&amp;nbsp; Yep it hard faults at enabling the enhanced FIFO.&amp;nbsp; Here's a little screenshot:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/85218iC4761B9791F6211A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know there are other problems with my coding for Enhanced FIFO, but need to get past this first.&amp;nbsp; Thanks for all your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Respectfully&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jun 2019 11:45:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1062-Hardfault-Reading-CAN3-ERFCR-Register/m-p/906111#M3095</guid>
      <dc:creator>michaelsmorto</dc:creator>
      <dc:date>2019-06-03T11:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: IMXRT1062 Hardfault Reading CAN3 ERFCR Register</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1062-Hardfault-Reading-CAN3-ERFCR-Register/m-p/906112#M3096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom&lt;/P&gt;&lt;P&gt;Well right before the fault I print several registers as a sanity check of the configuration:&lt;/P&gt;&lt;P style="margin: 0px; text-indent: 0px; padding-left: 60px;"&gt;&lt;SPAN style="font-size: 12px;"&gt;MCR ---- a0080f&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; text-indent: 0px; padding-left: 60px;"&gt;&lt;SPAN style="font-size: 12px;"&gt;CTRL1 ---- 15a2021&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; text-indent: 0px; padding-left: 60px;"&gt;&lt;SPAN style="font-size: 12px;"&gt;TIMER ---- cdd&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; text-indent: 0px; padding-left: 60px;"&gt;&lt;SPAN style="font-size: 12px;"&gt;IMASK1 ---- 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; text-indent: 0px; padding-left: 60px;"&gt;&lt;SPAN style="font-size: 12px;"&gt;IFLAG1 ---- 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; text-indent: 0px; padding-left: 60px;"&gt;&lt;SPAN style="font-size: 12px;"&gt;IFLAG2 ---- 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; text-indent: 0px; padding-left: 60px;"&gt;&lt;SPAN style="font-size: 12px;"&gt;CTRL2 ---- b30000&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; text-indent: 0px; padding-left: 60px;"&gt;&lt;SPAN style="font-size: 12px;"&gt;ESR2 ---- 6000&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; text-indent: 0px; padding-left: 60px;"&gt;&lt;SPAN style="font-size: 12px;"&gt;CRCR ---- 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; text-indent: 0px; padding-left: 60px;"&gt;&lt;SPAN style="font-size: 12px;"&gt;ESR2 ---- 6000&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; text-indent: 0px; padding-left: 60px;"&gt;&lt;SPAN style="font-size: 12px;"&gt;FDCTRL ---- 80008300&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; text-indent: 0px; padding-left: 60px;"&gt;&lt;SPAN style="font-size: 12px;"&gt;CLOCKS&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; text-indent: 0px; padding-left: 60px;"&gt;&lt;SPAN style="font-size: 12px;"&gt;CCM_CSCMR2 ---- 13192e0e&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; text-indent: 0px; padding-left: 60px;"&gt;&lt;SPAN style="font-size: 12px;"&gt;CCM_CCGR7 ---- fffffff3&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; text-indent: 0px;"&gt;&lt;SPAN style="font-size: 15px;"&gt;Also, I have run the CANFD examples without a problem so know at least the normal registers are working.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; text-indent: 0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0px; text-indent: 0px;"&gt;&lt;SPAN style="font-size: 15px;"&gt;As for "&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #51626f; font-family: inherit; font-size: 100%; font-style: inherit; font-variant: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #51626f; font-family: inherit; font-size: 13px; font-style: inherit; font-variant: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; vertical-align: baseline; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px; border: 0px none currentColor;"&gt;base-&amp;gt;ERFCR |= CAN_ERFCR_ERFEN(1); &lt;/SPAN&gt;" &amp;nbsp; I tried it this was as well "&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #51626f; font-family: inherit; font-size: 100%; font-style: inherit; font-variant: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #51626f; font-family: inherit; font-size: 13px; font-style: inherit; font-variant: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; vertical-align: baseline; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px; border: 0px none currentColor;"&gt;base-&amp;gt;ERFCR = CAN_ERFCR_ERFEN(1); " &lt;SPAN style="font-size: 15px;"&gt;and will still get the fault.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; text-indent: 0px;"&gt;&lt;SPAN style="font-size: 12px;"&gt;&lt;SPAN style="font-size: 15px;"&gt;Ok you got me on this one:&lt;/SPAN&gt; "&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #51626f; font-family: inherit; font-size: 100%; font-style: inherit; font-variant: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;six sets of "uint8_t RESERVED_N[MMM]" being parsed properly. Can you print the address you're actually accessing to see if it is correct?&lt;/SPAN&gt;"&amp;nbsp; - &lt;SPAN style="font-size: 15px;"&gt;this is what I get&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="-qt-block-indent: 0; text-indent: 0px; margin: 0px;"&gt;ERFCR -------401d8c0c&amp;nbsp; which is correct to the manual.&lt;/P&gt;&lt;P style="margin: 0px; text-indent: 0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0px; text-indent: 0px;"&gt;&lt;SPAN style="font-size: 15px;"&gt;Can I ask you all another question - i tried adding printf in the driver itself but the compiler complained - can you tell me how to do that?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; text-indent: 0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0px; text-indent: 0px;"&gt;&lt;SPAN style="font-size: 15px;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; text-indent: 0px;"&gt;&lt;SPAN style="font-size: 15px;"&gt;Mike&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jun 2019 11:53:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1062-Hardfault-Reading-CAN3-ERFCR-Register/m-p/906112#M3096</guid>
      <dc:creator>michaelsmorto</dc:creator>
      <dc:date>2019-06-03T11:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: IMXRT1062 Hardfault Reading CAN3 ERFCR Register</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1062-Hardfault-Reading-CAN3-ERFCR-Register/m-p/906113#M3097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;SPAN style="font-size: 15px;"&gt;Can I ask you all another question - i tried adding printf in the driver itself but&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;&amp;gt; the compiler complained - can you tell me how to do that?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;I think you edited the post because there are changes between it and the email notification I received. I'm guessing you found the "%p" option in "printf()" or cast the address to an int or something.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;I don't know what operating system you're running (assuming it isn't Linux on these parts), so don't know what calls they're using for this. How to debug-print from a driver should be documented somewhere. Assuming it isn't, or you can't find it, read the other drivers until you can find some debug printing that a previous author left in there, and copy that. That driver may be including a header that is required for the functions it uses, so you'll have to check through the header sources to find which ones are needed, or just include all of them (that the other driver does) and start deleting them to find out which one or ones it needs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;&lt;BR /&gt;Tom&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2019 02:30:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1062-Hardfault-Reading-CAN3-ERFCR-Register/m-p/906113#M3097</guid>
      <dc:creator>TomE</dc:creator>
      <dc:date>2019-06-04T02:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: IMXRT1062 Hardfault Reading CAN3 ERFCR Register</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1062-Hardfault-Reading-CAN3-ERFCR-Register/m-p/906114#M3098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;Haven't heard anything on this issue for awhile so was wondering if there is any status or is it just not possible to do FIFO FD on the 1062.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Jun 2019 11:46:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1062-Hardfault-Reading-CAN3-ERFCR-Register/m-p/906114#M3098</guid>
      <dc:creator>michaelsmorto</dc:creator>
      <dc:date>2019-06-29T11:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: IMXRT1062 Hardfault Reading CAN3 ERFCR Register</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1062-Hardfault-Reading-CAN3-ERFCR-Register/m-p/906115#M3099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any status on this issue.&amp;nbsp; Is FIFO available for FD?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Aug 2019 04:26:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1062-Hardfault-Reading-CAN3-ERFCR-Register/m-p/906115#M3099</guid>
      <dc:creator>michaelsmorto</dc:creator>
      <dc:date>2019-08-19T04:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: IMXRT1062 Hardfault Reading CAN3 ERFCR Register</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1062-Hardfault-Reading-CAN3-ERFCR-Register/m-p/906116#M3100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; Is there any status on this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're too late. Because:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="215657" data-username="kerryzhou" href="https://community.nxp.com/people/kerryzhou"&gt;&amp;gt; Kerry Zhou&lt;/A&gt; &lt;span class="lia-inline-image-display-wrapper" image-alt="Employee"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/123600i79FC031B4BFAD07D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Employee" alt="Employee" /&gt;&lt;/span&gt; @ &lt;A _jive_internal="true" data-content-finding="Community" href="https://community.nxp.com/thread/503656?commentID=1192983&amp;amp;et=watches.email.thread#comment" title="Go to message"&gt;Michael Smorto&lt;/A&gt; &lt;SMALL&gt;on&lt;/SMALL&gt; &lt;A _jive_internal="true" data-content-finding="Community" href="https://community.nxp.com/thread/503656?commentID=1192983&amp;amp;et=watches.email.thread#comment"&gt;03/06/2019 1:06 PM&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&amp;gt; Note: &lt;BR /&gt;&lt;P&gt;&amp;gt; - We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; &amp;gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you'll have to open a new issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you manage to get debug prints working from the driver? Did you disassemble the code to make sure it is doing the right thing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You printed some registers, but not enough. This chip has registers from 0x00 to 0x50, 0x880 to 0x97c, 0xbf0 to 0xc14, 0xc30 to 0xd2c and 0x3000 to 0x31fc. You should try to print out ALL the registers to try and find out which ones are and aren't working. It is possible there's a bug in the manual that is giving you the wrong addresses for some of those registers. This sort of mistake in these manuals is pretty common.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is a good idea to compare the addresses with ones for the same module in other manuals. Looking for other NXP products with CAN FD support, finds the LPC546xx. And its controller is ... VERY different, because it is "MCAN" and not "FlexCAN". Dead end there... Searching finds the &lt;SPAN style="left: 276.642px; top: 1189.81px; font-size: 16.2092px; font-family: sans-serif; transform: scaleX(0.951699);"&gt;MPC5775, which has FlexCAN and FD. Except it has four FlexCAN modules, and two MCAN FD modules. Weird mix. The S32R27 has three FlexCAN controllers, two of which are FD. But they're different to the ones in the IMXRT1060. For a start, the last register is at offset 0xc08 from the base, and is CAN_FDCRC. That might match up with what you're seeing. It is possible the CAN controller in the IMXRT is documented in the S32R27 manual, and the chapter in the IMXRT manual might be wrong. There are also differences in that one uses addresses 0xAE0 to 0xAEC and the other one has different registers in the range 0xBF0 to 0xBFC. I'd suggest you try to print ALL the registers and see if the map matches the IMXRT or if it somehow matches the S32R27 one.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any files in the development environment that define the registers? Compare them to the manual. Do you have he program that NXP provides (MCUXpresso) that generates code and configurations for setting up the chip? See if it has register definitions inside it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got an i.MX1050 here (not the FD one). I can read those addresses even though there's no peripheral there. But reading the registers of the one that is there works for the registers that are present (0x401d404c) but gives an exception for one that isn't (0x401d4050). So the access logic works OK. Are you sure you're not getting interference from the memory protection unit?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Aug 2019 07:01:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1062-Hardfault-Reading-CAN3-ERFCR-Register/m-p/906116#M3100</guid>
      <dc:creator>TomE</dc:creator>
      <dc:date>2019-08-19T07:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: IMXRT1062 Hardfault Reading CAN3 ERFCR Register</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1062-Hardfault-Reading-CAN3-ERFCR-Register/m-p/906117#M3101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-content-finding="Community" data-userid="289576" data-username="michaelsmorto" href="https://community.nxp.com/people/michaelsmorto"&gt;&lt;SPAN style="color: #0066cc; text-decoration: underline; "&gt;Michael Smorto&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; You don't need to create the new case, I will continue to help you in this post, it doesn't matter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Which SDK version you are using? Do you try the newest SDK, whether you can reproduce the same problem with newest SDK for RT1060? Please update your issue project with the newest SDK, then I will find time to help you to check it, thanks a lot for your undertanding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kerry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2019 02:50:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1062-Hardfault-Reading-CAN3-ERFCR-Register/m-p/906117#M3101</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-08-20T02:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: IMXRT1062 Hardfault Reading CAN3 ERFCR Register</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1062-Hardfault-Reading-CAN3-ERFCR-Register/m-p/906118#M3102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wrote:&lt;/P&gt;&lt;P&gt;&amp;gt; I'd suggest you try to print ALL the registers and see if the map matches the IMXRT or if it&lt;/P&gt;&lt;P&gt;&amp;gt; somehow matches the S32R27 one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got an IMXRT1060 development board now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not using any SDK. I'm directly reading the module registers using GDB. Direct reads. No NXP software involvement at all. I get the same result reading the registers from "running code". If others are able to read the registers, then it is probably due to some previous register writing that some SDK component did.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FlexCAN module in the IMXRT1060 isn't the S32R27 one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can read registers starting at 0x401d8000 with offsets 0x00, 0x50, 0x80, 0x100, 0x880 and 0x97c. I get a bus error on ox980. That matches the IMXRT FlexCAN module, but not the S32R27 one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can read 0xc08, but 0xc0c gives a bus error. This is the same as Michael Smorto is seeing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't read 0xbf0, 0xc30 or 0x3000 either. None of the registers named "Enhanced" can be read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried setting MCR[FDEN] and am making sure the module is halted. RFEN is zero. Nothing I can find makes those registers readable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The registers are behaving as if the Supervisor/User setting is wrong. That says:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Unrestricted read and write access to supervisor registers (registers identified with&lt;BR /&gt;S/U in Table "Module Memory Map" in Supervisor Mode or with S only) results in&lt;BR /&gt;access error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A worked code example that includes setting those registers might show what other actions are required to have these registers enabled. I can't find anything in the Reference Manual saying anything about this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2019 04:29:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1062-Hardfault-Reading-CAN3-ERFCR-Register/m-p/906118#M3102</guid>
      <dc:creator>TomE</dc:creator>
      <dc:date>2019-08-20T04:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: IMXRT1062 Hardfault Reading CAN3 ERFCR Register</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1062-Hardfault-Reading-CAN3-ERFCR-Register/m-p/906119#M3103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-content-finding="Community" data-userid="26468" data-username="TomE" href="https://community.nxp.com/people/TomE"&gt;&lt;SPAN style="color: #0066cc; text-decoration: underline; "&gt;Tom Evans&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Thanks for your detail information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;If you have the official board, can you try to run the offical newest SDK project flexcan driver:&lt;/P&gt;&lt;P&gt;SDK_2.6.2_EVK-MIMXRT1060\boards\evkmimxrt1060\driver_examples\flexcan&lt;/P&gt;&lt;P&gt;&amp;nbsp; Can you reproduce the problem with SDK code?&lt;/P&gt;&lt;P&gt;&amp;nbsp; If yes, please give me modifed project which is based on the SDK, then I will double check it, and discuss it in our internal side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kerry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2019 05:27:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1062-Hardfault-Reading-CAN3-ERFCR-Register/m-p/906119#M3103</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-08-20T05:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: IMXRT1062 Hardfault Reading CAN3 ERFCR Register</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1062-Hardfault-Reading-CAN3-ERFCR-Register/m-p/906120#M3104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; If you have the official board, can you try to run the offical newest SDK project flexcan driver:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No. We're not using any of your software.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you put two lines of code into your SDK that tries to access these registers. Just do something like the following (using whatever the SDK uses for "printf()":&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="token function"&gt;printf&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"FlexCAN MCR Register at 0x%08x = 0x%08x\n"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x401d8000&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;unsigned&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;int&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0x401d8000&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token function"&gt;printf&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"FlexCAN ERFCR Register at 0x%08x = 0x%08x\n"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x401d8c0c&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;unsigned&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;int&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0x401d8c0c&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I get this happening - the first one works, but the second one gives a bus fault:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;[    3.300280] FlexCAN MCR Register at 0x401d8000 = 0x5980000f
[    3.302010] Thread mode exception 5, thread 0x2020b160
[    3.302020]  r0 80026084 r1 401d8c0c r2 00000000   r3 801aae7c
[    3.302030] r12 00000001 lr 80005175 ra 8001bf96 xpsr 61000000
[    3.302030] PANIC: BusFault
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;You may need to add some sort of delay between the two statements so the first print can get out before the second one traps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2019 05:42:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1062-Hardfault-Reading-CAN3-ERFCR-Register/m-p/906120#M3104</guid>
      <dc:creator>TomE</dc:creator>
      <dc:date>2019-08-20T05:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: IMXRT1062 Hardfault Reading CAN3 ERFCR Register</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1062-Hardfault-Reading-CAN3-ERFCR-Register/m-p/906121#M3105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom.&lt;/P&gt;&lt;P&gt;&amp;nbsp; If just add your code, it really has problems when read the &lt;CODE&gt;&lt;SPAN class=""&gt;0x401d8c0c, it is the ERFCR register.&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;SPAN class=""&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/88675i833064C2A6310E04/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;SPAN class=""&gt;Please note, when the module in freeze mode, this register is written only, it means you can't read it.&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;SPAN class=""&gt;From your reply, I find your &lt;/SPAN&gt;&lt;/CODE&gt;&lt;CODE&gt;0x401d8000 = 0x5980000f.&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;Please check these register:&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/88708i82DAAADF46A7F03A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/88750iA89624778F81F171/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;Your bit 28, and 30 is 1, it means your flexcan module is in freeze mode, that's why you read the ERFCR have hardfault.&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;Please disable the freeze mode, then try to read ERFCR register again.&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;Wish it helps you!&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;Kerry&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2019 07:15:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/IMXRT1062-Hardfault-Reading-CAN3-ERFCR-Register/m-p/906121#M3105</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-08-20T07:15:13Z</dc:date>
    </item>
  </channel>
</rss>

