<?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: Command Reset in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Command-Reset/m-p/581856#M25136</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by marcossmart on Sun Jul 01 07:14:21 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;ok, thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 02:37:52 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T02:37:52Z</dc:date>
    <item>
      <title>Command Reset</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Command-Reset/m-p/581847#M25127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by marcossmart on Fri Jun 29 07:45:11 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=5]What is the command that reset the processor? I can use within the HardFault_Handler? [/SIZE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=5]LPCXpresso LPC1114.[/SIZE]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:37:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Command-Reset/m-p/581847#M25127</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Command Reset</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Command-Reset/m-p/581848#M25128</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 Fri Jun 29 07:58:46 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you know what a hard fault is :confused:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See : &lt;/SPAN&gt;&lt;A href="http://"&gt;http://support.code-red-tech.com/CodeRedWiki/DebugHardFault&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To reset there's a CMSIS function NVIC_SystemReset() included in core_cm0.h ;)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:37:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Command-Reset/m-p/581848#M25128</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: Command Reset</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Command-Reset/m-p/581849#M25129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by marcossmart on Fri Jun 29 08:48:31 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;This is correct?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#include "core_cm0.h"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;__attribute__ ((section(".after_vectors")))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;void HardFault_Handler(void)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&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; NVIC_SystemReset();&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:37:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Command-Reset/m-p/581849#M25129</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Command Reset</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Command-Reset/m-p/581850#M25130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by marcossmart on Fri Jun 29 08:56:33 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Excuse me!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is correct?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#include "core_cm0.h"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;__attribute__ ((section(".after_vectors")))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;void HardFault_Handler(void)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NVIC_SystemReset();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:37:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Command-Reset/m-p/581850#M25130</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Command Reset</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Command-Reset/m-p/581851#M25131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by marcossmart on Fri Jun 29 12:04:01 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:37:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Command-Reset/m-p/581851#M25131</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Command Reset</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Command-Reset/m-p/581852#M25132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by FlySnake on Fri Jun 29 14:47:30 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: marcossmart&lt;/STRONG&gt;&lt;BR /&gt;Excuse me!&lt;BR /&gt;&lt;BR /&gt;This is correct?&lt;BR /&gt;&lt;BR /&gt;#include "core_cm0.h"&lt;BR /&gt;__attribute__ ((section(".after_vectors")))&lt;BR /&gt;void HardFault_Handler(void)&lt;BR /&gt;{&lt;BR /&gt;NVIC_SystemReset();&lt;BR /&gt;}&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, but it's very rough solution. You'll never get the cause of HardFault.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:37:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Command-Reset/m-p/581852#M25132</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Command Reset</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Command-Reset/m-p/581853#M25133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by marcossmart on Fri Jun 29 15:49:59 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;When I do the include file # include "core_cm0.h" generates the following errors:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;D:\MRR\ARM\FIRMWARE\ABA_PRO7P_V4\CMSISv2p00_LPC11xx\inc/core_cm0.h:451:47: error: expected ')' before 'IRQn'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;D:\MRR\ARM\FIRMWARE\ABA_PRO7P_V4\CMSISv2p00_LPC11xx\inc/core_cm0.h:464:48: error: expected ')' before 'IRQn'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;D:\MRR\ARM\FIRMWARE\ABA_PRO7P_V4\CMSISv2p00_LPC11xx\inc/core_cm0.h:479:55: error: expected ')' before 'IRQn'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;D:\MRR\ARM\FIRMWARE\ABA_PRO7P_V4\CMSISv2p00_LPC11xx\inc/core_cm0.h:492:51: error: expected ')' before 'IRQn'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;D:\MRR\ARM\FIRMWARE\ABA_PRO7P_V4\CMSISv2p00_LPC11xx\inc/core_cm0.h:505:53: error: expected ')' before 'IRQn'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;D:\MRR\ARM\FIRMWARE\ABA_PRO7P_V4\CMSISv2p00_LPC11xx\inc/core_cm0.h:522:49: error: expected ')' before 'IRQn'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;D:\MRR\ARM\FIRMWARE\ABA_PRO7P_V4\CMSISv2p00_LPC11xx\inc/core_cm0.h:545:53: error: expected ')' before 'IRQn'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;D:\MRR\ARM\FIRMWARE\ABA_PRO7P_V4\CMSISv2p00_LPC11xx\inc/core_cm0.h: In function 'SysTick_Config':&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;D:\MRR\ARM\FIRMWARE\ABA_PRO7P_V4\CMSISv2p00_LPC11xx\inc/core_cm0.h:595:3: warning: implicit declaration of function 'NVIC_SetPriority'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;D:\MRR\ARM\FIRMWARE\ABA_PRO7P_V4\CMSISv2p00_LPC11xx\inc/core_cm0.h:595:21: error: 'SysTick_IRQn' undeclared (first use in this function)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;D:\MRR\ARM\FIRMWARE\ABA_PRO7P_V4\CMSISv2p00_LPC11xx\inc/core_cm0.h:595:21: note: each undeclared identifier is reported only once for each function it appears in&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;D:\MRR\ARM\FIRMWARE\ABA_PRO7P_V4\CMSISv2p00_LPC11xx\inc/core_cm0.h:595:39: error: '__NVIC_PRIO_BITS' undeclared (first use in this function)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;make: *** [src/cr_startup_lpc11.o] Error 1&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:37:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Command-Reset/m-p/581853#M25133</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Command Reset</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Command-Reset/m-p/581854#M25134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by researchinnovation on Fri Jun 29 23:32:12 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: marcossmart&lt;/STRONG&gt;&lt;BR /&gt;[SIZE=5]What is the command that reset the processor? I can use within the HardFault_Handler? [/SIZE]&lt;BR /&gt;[SIZE=5]LPCXpresso LPC1114.[/SIZE]&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi...!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please check your function's calling sequence and due to improper use of pointer also you can get this error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Just check what are you passing in functions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do step by step debug and check the value of your function's pointer then you may get an idea about it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sometime loop(while,for(;;)) creates this problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Read the page56/57 "LPCXpresso_BaseBoard_rev_B_Users_Guide.pdf" but it is not about the command.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://knowledgebase.nxp.com/showthread.php?t=3248&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://knowledgebase.nxp.trimm.net/showthread.php?t=3028&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://support.code-red-tech.com/CodeRedWiki/CodeRedFAQ&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://support.code-red-tech.com/CodeRedWiki/DebugHardFault&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://ics.nxp.com/support/documents/microcontrollers/?scope=LPC3000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks &amp;amp; Regards.....:)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:37:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Command-Reset/m-p/581854#M25134</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Command Reset</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Command-Reset/m-p/581855#M25135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by atomicdog on Sat Jun 30 16:25:41 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: marcossmart&lt;/STRONG&gt;&lt;BR /&gt;Excuse me!&lt;BR /&gt;&lt;BR /&gt;This is correct?&lt;BR /&gt;&lt;BR /&gt;#include "core_cm0.h"&lt;BR /&gt;__attribute__ ((section(".after_vectors")))&lt;BR /&gt;void HardFault_Handler(void)&lt;BR /&gt;{&lt;BR /&gt;NVIC_SystemReset();&lt;BR /&gt;}&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you trying to modify [I]cr_startup_lpc11.c[/I] ? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You don't need to to that. You also don't need to include [I]core_cm0.h[/I] since it's already include through [I]LPC11xx.h&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/I]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Just add the function in your main.c file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;void HardFault_Handler(void)
{
&amp;nbsp; NVIC_SystemReset();
}&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:37:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Command-Reset/m-p/581855#M25135</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: Command Reset</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Command-Reset/m-p/581856#M25136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by marcossmart on Sun Jul 01 07:14:21 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;ok, thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:37:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Command-Reset/m-p/581856#M25136</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: Command Reset</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Command-Reset/m-p/581857#M25137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by frame on Sun Jul 01 08:38:55 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I consider it a bad idea to just do a reset upon a Hardfault.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The hardfault occured because of a specific problem, probably because of a bug. With a reset and a subsequent restart, you are hardly changing any of the conditions leading to the hardfault.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In short, you will probably create an endless reset cycle.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would rather investigate the reason for the hardfault. Better check the system register contents for possible reasons, and use the debugger.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The basic idea for the endless loop in the hardfault handler (and other handlers) is to prevent damage by erraneous code. This might not make much of a difference for a hobbyist device, but certainly for a mass product. A customer complaining about "device is not working" is still better than one telling "device destroyed that much of my property".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would rather see it as a help, and not try to circumvent it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:37:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Command-Reset/m-p/581857#M25137</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:37:53Z</dc:date>
    </item>
  </channel>
</rss>

