<?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>LPCXpresso IDE中的主题 Re: LPC1114 hard fault issue</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-hard-fault-issue/m-p/549911#M11181</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Tue Feb 19 16:45:52 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Your picture doesn't look too unusual :eek: Could be useful to reduce your project to the problem and export/post it :)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 22:07:03 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T22:07:03Z</dc:date>
    <item>
      <title>LPC1114 hard fault issue</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-hard-fault-issue/m-p/549894#M11164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by karthik.s on Mon Jul 26 04:16:12 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I am running an application on LPC1114 device.On running the application code,the program is getting halted at HardFault_Handler() routine at the brace marked in red.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;void HardFault_Handler(void)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[COLOR=Red][B]{[/B][/COLOR]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Enter an infinite loop.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; while(1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;After pushing "F5" to step into,the program halts at a user defined function(does dynamic memort allocation) at the line highlighted in red.The function is as follows.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;void *RSI_user_malloc(uint32_t bytes) /* This function is registered by the user for allocating&amp;nbsp; the dynamic memory */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; void *dynamic_data;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; [COLOR=Red]dynamic_data[/COLOR] = (void *)malloc([COLOR=DarkOrchid]bytes[/COLOR]);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; return dynamic_data;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When i checked the content of "bytes" variable, it displays it to be 293.I am wondering if my heap memory is not sufficient to allocate memory equivalent to 293 bytes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help is appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:06:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-hard-fault-issue/m-p/549894#M11164</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114 hard fault issue</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-hard-fault-issue/m-p/549895#M11165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CodeRedSupport on Mon Jul 26 04:42:25 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;When the HardFault occurs, the Core Registers view will show some additional information to help determine the cause of the Fault. e.g. VECTPC will show the PC that caused the fault, and the tooltip will show where that is in your code.,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You don't say where you are calling RSI_user_malloc. Is it before main()? If so, that could be a problem as the C library has not been initialised at that point.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, note that the heap and the stack share memory. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- The heap starts at the end of your RAM data and grows 'up' (larger addresses)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- The stack starts as the top of RAM and grows 'down (small addresses)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There is no stack checking, so the two can grow to overwrite each other. So one possibility is that this has happened.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:06:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-hard-fault-issue/m-p/549895#M11165</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114 hard fault issue</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-hard-fault-issue/m-p/549896#M11166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by karthik.s on Mon Jul 26 04:51:03 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I called RSI_user_malloc() after main().&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:06:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-hard-fault-issue/m-p/549896#M11166</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114 hard fault issue</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-hard-fault-issue/m-p/549897#M11167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CodeRedSupport on Mon Jul 26 05:13:15 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;That was one point out of three...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:06:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-hard-fault-issue/m-p/549897#M11167</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114 hard fault issue</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-hard-fault-issue/m-p/549898#M11168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by karthik.s on Mon Jul 26 05:48:02 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you please elaborate?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically what i meant was&amp;nbsp; RSI_user_malloc() is called within the main() funtion.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:06:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-hard-fault-issue/m-p/549898#M11168</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114 hard fault issue</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-hard-fault-issue/m-p/549899#M11169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CodeRedSupport on Mon Jul 26 06:17:59 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I made 3 points in my, you only commented on the 2nd. To repeat the others:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; When the HardFault occurs, the Core Registers view will show some&amp;nbsp; additional information to help determine the cause of the Fault. e.g.&amp;nbsp; VECTPC will show the PC that caused the fault, and the tooltip will show&amp;nbsp; where that is in your code. Look at this to help you determine where your code has gone wrong.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, note that the heap and the stack share memory. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- The heap starts at the end of your RAM data and grows 'up' (larger&amp;nbsp; addresses)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- The stack starts as the top of RAM and grows 'down (small addresses)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There is no stack checking, so the two can grow to overwrite each other.&amp;nbsp; So one possibility is that this has happened.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:06:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-hard-fault-issue/m-p/549899#M11169</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114 hard fault issue</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-hard-fault-issue/m-p/549900#M11170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by micronpn on Mon Jul 26 10:09:20 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;In my opinion this is a library problem. It could be better define a memory range for the heap to don't overflow (malloc calloc etc. can return the error return code) so only the stack may corrupt the heap and not the viceversa.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:06:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-hard-fault-issue/m-p/549900#M11170</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114 hard fault issue</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-hard-fault-issue/m-p/549901#M11171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by karthik.s on Mon Jul 26 21:01:20 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;@CodeRedSupport :On harld fault error,in the core registers view ,two registers were marked in red.One is "VECTPC" which showed "0x542c(21548) malloc+64 in section.text".The other is "CFSR" which showed "0x0 (0) g_pfnVectors in section.text".Please help me understand each of those register's status.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also,please tell me how to check if the stack and heap memory have overalapped.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@micronpn: How and where to define memory range for heap?Please let me know.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:06:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-hard-fault-issue/m-p/549901#M11171</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114 hard fault issue</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-hard-fault-issue/m-p/549902#M11172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CodeRedSupport on Tue Jul 27 00:02:10 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The VECTPC is a pseudo-register (it doesn't really exist in the core) that shows the PC that caused the fault. If you want to understand the Cortex-M3 exception model and the meaning of the registers, see the Cortex-M3 Architecture Reference Manual, which is available from NXP or ARM.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It looks like it is failing in the C runtime malloc(), but this is likely to be caused by stack/heap corruption. Is the call failing immediately, or after some time? Can you produce a cutdown example? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;NXP have written an example on how to monitor stack usage. See:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://ics.nxp.com/support/lpcxpresso/zip/examples.stack.usage.lpc17xx.zip&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:06:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-hard-fault-issue/m-p/549902#M11172</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114 hard fault issue</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-hard-fault-issue/m-p/549903#M11173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by karthik.s on Tue Jul 27 01:51:35 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;As soon as i run the program,this error occurs after few seconds.Basically here is what i am doing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am sending few bytes to the remote PC over WLAN and receiving them back from the remote PC to the microcontroller over WLAN.So,whenever the data is being received,it is stored in a buffer which is created dynamically using malloc.I am freeing up the dynamic memory location after reading the data from the buffer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not able to find any clue to reduce the stack consumption so that it doesn't overlap with heap.Suggest me some coding tips to reduce stack consumption in the microcontrollers memory.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:06:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-hard-fault-issue/m-p/549903#M11173</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114 hard fault issue</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-hard-fault-issue/m-p/549904#M11174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CodeRedSupport on Tue Jul 27 05:19:26 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you contact our support group. Please use the link on this page:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://www.code-red-tech.com/contact.php&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:06:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-hard-fault-issue/m-p/549904#M11174</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114 hard fault issue</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-hard-fault-issue/m-p/549905#M11175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by karthik.s on Tue Jul 27 22:48:56 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Why does the VECTPC point to an unknown location such as 0x20000000 and thereby cause a hardfault error?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:06:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-hard-fault-issue/m-p/549905#M11175</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114 hard fault issue</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-hard-fault-issue/m-p/549906#M11176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CodeRedSupport on Tue Jul 27 23:39:07 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The most likely cause is that the stack has been corrupted and thus a function return uses an incorrect return address. If this is the case, you are likely to see random errors/crashes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As mention in my previous post, can you please contact us directly. We would have a beta release of a new version that we would like yo to try to see if it resolves your problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:06:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-hard-fault-issue/m-p/549906#M11176</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114 hard fault issue</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-hard-fault-issue/m-p/549907#M11177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by karthik.s on Tue Jul 27 23:50:18 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I registered yesterday at the support link that you provided.Waiting for the reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Currently i am using Build id: LPCXpresso v3.4.0 [Build 187] [23/06/2010] .&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:07:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-hard-fault-issue/m-p/549907#M11177</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114 hard fault issue</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-hard-fault-issue/m-p/549908#M11178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by karthik.s on Tue Jul 27 23:56:46 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Also i noticed that very frequently the code is stuck at SPI receive at the following statement.However,this doesn't cause any hard faults but the code is stuck.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; while ( (LPC_SSP-&amp;gt;SR &amp;amp; (SSPSR_BSY|SSPSR_RNE)) != SSPSR_RNE );&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:07:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-hard-fault-issue/m-p/549908#M11178</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114 hard fault issue</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-hard-fault-issue/m-p/549909#M11179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CodeRedSupport on Wed Jul 28 01:06:22 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;That is a problem in your code - not with our tools.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:07:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-hard-fault-issue/m-p/549909#M11179</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114 hard fault issue</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-hard-fault-issue/m-p/549910#M11180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by saimot on Tue Feb 19 16:08:47 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi, I have now similar problem. Program jumps to HardFault_Handler when calling malloc() function. This is first call of allocation in program and it is in main(). Before I call just some peripherial inits. Call is falling immediately. Picture should explain more.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[IMG]&lt;/SPAN&gt;&lt;A href="http://http://imageshack.us/photo/my-images/856/lpc3.png/"&gt;[IMG]http://img856.imageshack.us/img856/5115/lpc3.png[/IMG]&lt;/A&gt;&lt;SPAN&gt; Uploaded with &lt;/SPAN&gt;&lt;A href="http://http://imageshack.us"&gt;ImageShack.us&lt;/A&gt;&lt;SPAN&gt;[/IMG]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could Stack be the reason? My program is really small and this call is on the begining.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:07:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-hard-fault-issue/m-p/549910#M11180</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114 hard fault issue</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-hard-fault-issue/m-p/549911#M11181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Tue Feb 19 16:45:52 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Your picture doesn't look too unusual :eek: Could be useful to reduce your project to the problem and export/post it :)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:07:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-hard-fault-issue/m-p/549911#M11181</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114 hard fault issue</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-hard-fault-issue/m-p/549912#M11182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by saimot on Tue Feb 19 18:34:25 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Problem&amp;nbsp; even in debugging is that when the problem began I deleted parts that I have recently added and brought code to state as before error. However even then the error remained!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also there was no difference between allocating memory in main or in function. The behavior is strange and Im unable to determine adding which core starts it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my code. It is based on demo application for LPCXpresso.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:07:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-hard-fault-issue/m-p/549912#M11182</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114 hard fault issue</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-hard-fault-issue/m-p/549913#M11183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Tue Feb 19 19:54:27 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Looks like a pointer error :eek:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
//&amp;nbsp;&amp;nbsp;&amp;nbsp; DS_ROM_Type**&amp;nbsp; pDsArr = 0;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //pointer na pole pointerov na struktuy
&amp;nbsp;&amp;nbsp; [COLOR=Red] DS_ROM_Type* [COLOR=Black] pDsArr; [/COLOR]&amp;nbsp;&amp;nbsp; [/COLOR]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //pointer na pole pointerov na struktuy

&amp;nbsp;&amp;nbsp;&amp;nbsp; DS_ROM_Type *aDsTemp;


&amp;nbsp;&amp;nbsp;&amp;nbsp; for(i=0;i&amp;lt;64;i++)&amp;nbsp;&amp;nbsp;&amp;nbsp; conflict&lt;I&gt; = 0;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //flagy pre konflikty v ROM adrese
//alloc memory for 4 pointers to device struct and return pinter to it
&amp;nbsp;&amp;nbsp;&amp;nbsp; //pDsArr = (DS_ROM_Type**) malloc( (idDev+4)*sizeof(DS_ROM_Type*));
&amp;nbsp;&amp;nbsp;&amp;nbsp; pDsArr = ([COLOR=Red]DS_ROM_Type*[/COLOR]) malloc( (idDev+4)*sizeof(DS_ROM_Type*));
&amp;nbsp;&amp;nbsp;&amp;nbsp; pDsArr-&amp;gt;device =0x11111111;
&amp;nbsp;&amp;nbsp;&amp;nbsp; pDsArr++;
&amp;nbsp;&amp;nbsp;&amp;nbsp; pDsArr-&amp;gt;device =0x22222222;
&amp;nbsp;&amp;nbsp;&amp;nbsp; pDsArr++;
&amp;nbsp;&amp;nbsp;&amp;nbsp; pDsArr-&amp;gt;device =0x33333333;
&lt;/I&gt;&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;is looking more familiar to me and is working (Memory view shows structured data) &lt;SPAN class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;&lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:07:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-hard-fault-issue/m-p/549913#M11183</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:07:04Z</dc:date>
    </item>
  </channel>
</rss>

