<?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: SDK File Branching to Location 0x0? in MCUXpresso General</title>
    <link>https://community.nxp.com/t5/MCUXpresso-General/SDK-File-Branching-to-Location-0x0/m-p/1051020#M3420</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/ErichS"&gt;ErichS&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;Hello Erich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, thanks for helping again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second, as far as I can tell, the Ethernet is initialized.&amp;nbsp; This is again using the ThreadX library and I am able to successfully step through the initialization of the Ethernet port&amp;nbsp;and watch it establishing a successful link.&amp;nbsp; Additionally, s_enetRxIsr is listed in the map file as ".bss.s_enetRxIsr 0x20004080 0x4 ./drivers/fsl_enet.o".&amp;nbsp; I believe that all implies a successful initialization?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Jun 2020 17:58:06 GMT</pubDate>
    <dc:creator>chadgraham</dc:creator>
    <dc:date>2020-06-16T17:58:06Z</dc:date>
    <item>
      <title>SDK File Branching to Location 0x0?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/SDK-File-Branching-to-Location-0x0/m-p/1051018#M3418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to understand (and debug) a hard fault being produced by my code.&amp;nbsp; After investigating and walking though the disassembly, it looks like&amp;nbsp;the system is trying to branch into the location 0x0.&amp;nbsp; However, I'm stuck on where to go next.&amp;nbsp; This section of code is within the fsl_enet.c SDK file and is included/called by a precompiled library.&amp;nbsp; Does anyone have any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3240 s_enetRxIsr(base, s_ENETHandle[instance]);&lt;BR /&gt;60009ae4: ldr r3, [pc, #88] ; (0x60009b40 &amp;lt;ENET_CommonFrame0IRQHandler+152&amp;gt;)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;// R3 is 0x20004080&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;60009ae6: ldr r3, [r3, #0]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;// R3 is now 0x00000000&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;60009ae8: ldr r1, [pc, #80] ; (0x60009b3c &amp;lt;ENET_CommonFrame0IRQHandler+148&amp;gt;)&lt;BR /&gt;60009aea: ldr r2, [r7, #8]&lt;BR /&gt;60009aec: ldr.w r2, [r1, r2, lsl #2]&lt;BR /&gt;60009af0: mov r1, r2&lt;BR /&gt;60009af2: ldr r0, [r7, #4]&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;60009af4: blx r3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;// PC jumped to 0x00000000&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Active faults&lt;BR /&gt;Hard Fault (HFSR)&lt;BR /&gt; FORCED (30) Indicates a forced hard fault, generated by escalation of a fault with configurable priority that cannot be handled, either because of priority or because it is disabled&lt;BR /&gt;Usage Fault (UFSR)&lt;BR /&gt; INVSTATE (1) Invalid state&lt;/P&gt;&lt;P&gt;Fault Status Registers&lt;BR /&gt;IPSR 0x00000003 Exception Status Register (Hard Fault)&lt;BR /&gt;CFSR 0x00020000 Configurable fault Status Register&lt;BR /&gt;MMSR 0x00000000 Memory Manage fault Status Register&lt;BR /&gt;BFSR 0x00000000 Bus fault Status Register&lt;BR /&gt;UFSR 0x00000002 User fault Status Register&lt;BR /&gt;HFSR 0x40000000 Hard fault Status Register&lt;BR /&gt;DFSR 0x00000000 Debug fault Status Register&lt;BR /&gt;MMAR 0x00000000 Memory Manage fault Address Register&lt;BR /&gt;BFAR 0x00000000 Bus fault Address Register&lt;BR /&gt;ABFSR 0x00000000 Auxiliary Bus Fault Status Register&lt;/P&gt;&lt;P&gt;Stacked Registers (MSP LR/EXC_RETURN=0xfffffff1)&lt;BR /&gt;R0 0x402D8000 &lt;BR /&gt;R1 0x00000000 &lt;BR /&gt;R2 0x00000000 &lt;BR /&gt;R3 0x00000000 &lt;BR /&gt;R12 0x00000000 &lt;BR /&gt;LR 0x60009AF7 ENET_CommonFrame0IRQHandler() @ \REMOVED\drivers\fsl_enet.c line 3244&lt;BR /&gt;PC 0x00000000 &lt;BR /&gt;PSR 0x20000082 &lt;BR /&gt;MSP 0x2001FF80 &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2020 16:09:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/SDK-File-Branching-to-Location-0x0/m-p/1051018#M3418</guid>
      <dc:creator>chadgraham</dc:creator>
      <dc:date>2020-06-16T16:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: SDK File Branching to Location 0x0?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/SDK-File-Branching-to-Location-0x0/m-p/1051019#M3419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It look like it dereferencing a function pointer which is initialized with 0 (NULL).&lt;/P&gt;&lt;P&gt;Could that be the reason? If so, an initialization might be missing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2020 16:33:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/SDK-File-Branching-to-Location-0x0/m-p/1051019#M3419</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2020-06-16T16:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: SDK File Branching to Location 0x0?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/SDK-File-Branching-to-Location-0x0/m-p/1051020#M3420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/ErichS"&gt;ErichS&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;Hello Erich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, thanks for helping again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second, as far as I can tell, the Ethernet is initialized.&amp;nbsp; This is again using the ThreadX library and I am able to successfully step through the initialization of the Ethernet port&amp;nbsp;and watch it establishing a successful link.&amp;nbsp; Additionally, s_enetRxIsr is listed in the map file as ".bss.s_enetRxIsr 0x20004080 0x4 ./drivers/fsl_enet.o".&amp;nbsp; I believe that all implies a successful initialization?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2020 17:58:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/SDK-File-Branching-to-Location-0x0/m-p/1051020#M3420</guid>
      <dc:creator>chadgraham</dc:creator>
      <dc:date>2020-06-16T17:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: SDK File Branching to Location 0x0?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/SDK-File-Branching-to-Location-0x0/m-p/1051021#M3421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;The problem turned out to be an undocumented change manually added to the startup_mimxrt1062.cpp file that changed the path for the Ethernet ISR.&amp;nbsp; When I&amp;nbsp;generated my project, I didn't have this modification and the system crashed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For those interested, the changes were:&lt;/P&gt;&lt;P&gt;Add:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;extern void nx_driver_imx_ethernet_isr(void);&lt;/P&gt;&lt;P&gt;Change:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;WEAK void ENET_IRQHandler(void)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// ENET_DriverIRQHandler();&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;nx_driver_imx_ethernet_isr();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solution, add the following code to your application code.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;extern "C"&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;extern void nx_driver_imx_ethernet_isr(void);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;void ENET_IRQHandler(void)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;nx_driver_imx_ethernet_isr();&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2020 19:27:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/SDK-File-Branching-to-Location-0x0/m-p/1051021#M3421</guid>
      <dc:creator>chadgraham</dc:creator>
      <dc:date>2020-06-16T19:27:59Z</dc:date>
    </item>
  </channel>
</rss>

