<?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>MCU BootloaderのトピックHardware Fault Interrupt when starting Application with Bootloader</title>
    <link>https://community.nxp.com/t5/MCU-Bootloader/Hardware-Fault-Interrupt-when-starting-Application-with/m-p/724874#M636</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello I'm using&amp;nbsp;fragments of the kboot for my own Bootloader. I'm using the jump_to_application(applicationAddress, stackPointer) function in the same way as you do. I get some strange behaviour now. If I start my application from the Bootloader the application is started correctly. If I just increase the size of a global&amp;nbsp;Array of chars by one the application is not started anymore and it is stopped in an Hardware fault.&lt;/P&gt;&lt;P&gt;works with:&lt;/P&gt;&lt;P&gt;uint8_t wert[5];&lt;/P&gt;&lt;P&gt;does not work with:&lt;/P&gt;&lt;P&gt;uint8_t wert[4];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem seems to be in the zero initialize. The crash happens before reaching the main routine, in the Reset_Handler of the application. The System_init is called and executed correctly. The difference in the *.map file from the working version on the right of the picture and the non working on the left&lt;span class="lia-inline-image-display-wrapper" image-alt="Unbenannt.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/33650i1394E3AB549AF752/image-size/large?v=v2&amp;amp;px=999" role="button" title="Unbenannt.PNG" alt="Unbenannt.PNG" /&gt;&lt;/span&gt;:&lt;/P&gt;&lt;P&gt;If I put the section to noInit in the target dialog it also works with the array of 4 Bytes. Might&amp;nbsp;there be a problem with the aligning and how can I manage that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Nov 2017 14:26:55 GMT</pubDate>
    <dc:creator>sennivo</dc:creator>
    <dc:date>2017-11-21T14:26:55Z</dc:date>
    <item>
      <title>Hardware Fault Interrupt when starting Application with Bootloader</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/Hardware-Fault-Interrupt-when-starting-Application-with/m-p/724874#M636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello I'm using&amp;nbsp;fragments of the kboot for my own Bootloader. I'm using the jump_to_application(applicationAddress, stackPointer) function in the same way as you do. I get some strange behaviour now. If I start my application from the Bootloader the application is started correctly. If I just increase the size of a global&amp;nbsp;Array of chars by one the application is not started anymore and it is stopped in an Hardware fault.&lt;/P&gt;&lt;P&gt;works with:&lt;/P&gt;&lt;P&gt;uint8_t wert[5];&lt;/P&gt;&lt;P&gt;does not work with:&lt;/P&gt;&lt;P&gt;uint8_t wert[4];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem seems to be in the zero initialize. The crash happens before reaching the main routine, in the Reset_Handler of the application. The System_init is called and executed correctly. The difference in the *.map file from the working version on the right of the picture and the non working on the left&lt;span class="lia-inline-image-display-wrapper" image-alt="Unbenannt.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/33650i1394E3AB549AF752/image-size/large?v=v2&amp;amp;px=999" role="button" title="Unbenannt.PNG" alt="Unbenannt.PNG" /&gt;&lt;/span&gt;:&lt;/P&gt;&lt;P&gt;If I put the section to noInit in the target dialog it also works with the array of 4 Bytes. Might&amp;nbsp;there be a problem with the aligning and how can I manage that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 14:26:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/Hardware-Fault-Interrupt-when-starting-Application-with/m-p/724874#M636</guid>
      <dc:creator>sennivo</dc:creator>
      <dc:date>2017-11-21T14:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Hardware Fault Interrupt when starting Application with Bootloader</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/Hardware-Fault-Interrupt-when-starting-Application-with/m-p/724875#M637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you provide more detailed info about the hardware fault?&lt;/P&gt;&lt;P&gt;Please provide the ARM Cortex-M core SCB related registers info, when the hardware fault happened.&lt;/P&gt;&lt;P&gt;SCB_BFAR&lt;/P&gt;&lt;P&gt;SCB_CFSR&lt;/P&gt;&lt;P&gt;SCB_HFSR&lt;/P&gt;&lt;P&gt;SCB_DFSR&lt;/P&gt;&lt;P&gt;SCB_AFSR&lt;/P&gt;&lt;P&gt;SCB_SHCSR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2017 07:43:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/Hardware-Fault-Interrupt-when-starting-Application-with/m-p/724875#M637</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2017-11-23T07:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: Hardware Fault Interrupt when starting Application with Bootloader</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/Hardware-Fault-Interrupt-when-starting-Application-with/m-p/724876#M638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This issue has nothing to do with bootloader, becase the app has been successfully jumpped to.&lt;/P&gt;&lt;P&gt;Please debug this issue and reach the position where hardfault happens, and share the&amp;nbsp;realted assembly code with me, then we can analyze this issue further.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Dec 2017 02:25:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/Hardware-Fault-Interrupt-when-starting-Application-with/m-p/724876#M638</guid>
      <dc:creator>jay_heng</dc:creator>
      <dc:date>2017-12-26T02:25:56Z</dc:date>
    </item>
  </channel>
</rss>

