<?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>LPC MicrocontrollersのトピックRe: Hard fault Issue with LPC1850</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-fault-Issue-with-LPC1850/m-p/537622#M11508</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mc on Wed Dec 02 13:50:00 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Noufal,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you please make sure that external parallel NOR flash initialization routines are with-in first 16KB of memory space?&amp;nbsp; When booting without header, Boot ROM will initialize only up to 16KB(A0-A13). &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Similarly, try to&amp;nbsp; put SPIFI lib in the beginning of memory space allocated to SPIFI devices. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:21:47 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:21:47Z</dc:date>
    <item>
      <title>Hard fault Issue with LPC1850</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-fault-Issue-with-LPC1850/m-p/537619#M11505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Noufal on Fri Oct 30 07:13:50 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm facing&amp;nbsp; Hard fault issue during boot process&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Controller used is LPC1850 , application using following interface NOR flash, SPIFI, and SDRAM and LCD(3.2 inch and 7 inch variant). &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We are using Keil development environment, application using RTX, emwin, File&amp;nbsp; system etc. Currently we are booting from NOR flash (because 1850 is&amp;nbsp; flash less part), As we added more code we started getting memory conflict issue 's(Hard Fault). The recent code addition was using emwin menu, but i also found that if i add static/global variables then also i'm getting the&amp;nbsp; issue. The issue happening before it even reaching main, look like stack is getting corrupted. I have placed&amp;nbsp;&amp;nbsp; startup_LPC18xx.o,system_LPC18xx.o&amp;nbsp; under internal SRAM, but i do see some time the memory is going to beyond it's range or SDRAM location while stepping through this file in debugger, Not sure what is happening &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Attaching the scatter file &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tried the following so far &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1.Increased the Heap(0x8000) and Stack (0x5000)&amp;nbsp; in system init&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Increased RTX Task memory&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Increased GUI memory in GUI config&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337830"&gt;Scatter_0.txt.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:21:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-fault-Issue-with-LPC1850/m-p/537619#M11505</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Hard fault Issue with LPC1850</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-fault-Issue-with-LPC1850/m-p/537620#M11506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by bavarian on Tue Nov 03 07:42:50 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;If the hard fault happens before main(), then it for sure happens in the code the linker inserts for initializing memory and relocating code. You don't see this code in your source code, only in assembler. When you jump from your source code into these embedded library code (at the end of the sys_init and just before main()&amp;nbsp; ), you need to set the cursor into the assembler window to continue with stepping, otherwise it runs into the hard fault directly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So something in your memory setup is not correct, the init code seems to overwrite something or writes outside memory boundaries.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to find the mismatch here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The debugger should also be able to provide you with more info about the reason of the hard fault.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NXP Support Team&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:21:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-fault-Issue-with-LPC1850/m-p/537620#M11506</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Hard fault Issue with LPC1850</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-fault-Issue-with-LPC1850/m-p/537621#M11507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Noufal on Wed Dec 02 10:12:56 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;It looks like it starts failing when the size of the image in External NOR flash(S29GL064N) gets above a certain range (~1735550 bytes). I also noticed that in SPIFI (S25FL256) beyond ~7MB&amp;nbsp; it starts failing. It's get into hard fault in these situations,&amp;nbsp; Any idea what is going on here ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:21:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-fault-Issue-with-LPC1850/m-p/537621#M11507</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Hard fault Issue with LPC1850</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-fault-Issue-with-LPC1850/m-p/537622#M11508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mc on Wed Dec 02 13:50:00 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Noufal,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you please make sure that external parallel NOR flash initialization routines are with-in first 16KB of memory space?&amp;nbsp; When booting without header, Boot ROM will initialize only up to 16KB(A0-A13). &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Similarly, try to&amp;nbsp; put SPIFI lib in the beginning of memory space allocated to SPIFI devices. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:21:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-fault-Issue-with-LPC1850/m-p/537622#M11508</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: Hard fault Issue with LPC1850</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-fault-Issue-with-LPC1850/m-p/537623#M11509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Noufal on Tue Jan 26 10:37:38 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi MC, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I moved my startup files to NOR flash, still i 'm having the&amp;nbsp; issue . Is there any other way i can make sure entire NOR flash is initialized ? &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:21:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-fault-Issue-with-LPC1850/m-p/537623#M11509</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: Hard fault Issue with LPC1850</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-fault-Issue-with-LPC1850/m-p/537624#M11510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mc on Sun Jan 31 19:48:37 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Noful,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please check the map file to confirm that all init functions are with in 16kB memory space. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:21:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Hard-fault-Issue-with-LPC1850/m-p/537624#M11510</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:21:48Z</dc:date>
    </item>
  </channel>
</rss>

