<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>How to light an LED to notify when a serious error has occurred?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18795/how-to-light-an-led-to-notify-when-a-serious-error-has-occurred</link><description>I&amp;#39;m digging my way through the examples, SDK code, etc, and I&amp;#39;m curious if it&amp;#39;s possible to light an LED if the nRF52832 is reaching an error status. This is mainly so I can quickly realize something went wrong and I don&amp;#39;t waste time waiting for an event</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 06 Jan 2017 15:49:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18795/how-to-light-an-led-to-notify-when-a-serious-error-has-occurred" /><item><title>RE: How to light an LED to notify when a serious error has occurred?</title><link>https://devzone.nordicsemi.com/thread/72594?ContentTypeID=1</link><pubDate>Fri, 06 Jan 2017 15:49:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7551f06-a236-4f7e-9b76-d2ce253e0843</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Chris&lt;/p&gt;
&lt;p&gt;The nrf_gpio_pin_set/clear functions only provide a thin layer of abstraction, and calling them should be equivalent to using the hardware registers (except for the extra branching and register lookups).
In other words you can safely use these functions in your error handler(s).&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;
Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to light an LED to notify when a serious error has occurred?</title><link>https://devzone.nordicsemi.com/thread/72593?ContentTypeID=1</link><pubDate>Thu, 05 Jan 2017 12:50:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fffdcd75-4be0-48dc-b898-3a3c95033e7e</guid><dc:creator>butch</dc:creator><description>&lt;p&gt;It seems to me that should be reliable.  app_error handler can be less than &amp;quot;serious&amp;quot;, things like invalid parameters.  It is the handler for exceptions thrown by the SDK.  The errors are often programming errors, not that the cpu is totally lost in the weeds.&lt;/p&gt;
&lt;p&gt;OTH you should also do a similar thing in the HardFaultHandler and related handlers (there are more handlers on the 52.)  Which are more serious errors, e.g. bugs in the compiler or exhausted stack.  It might depend on the kind of fault whether lighting the led would be &amp;quot;reliable.&amp;quot;&lt;/p&gt;
&lt;p&gt;Personally, I rely on the debugger instead of LED&amp;#39;s.  I suppose in later testing or in production, you would want an LED indication that SOME fault occurred.  But you usually already known that, and it would take many LEDs to know WHICH fault it was.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>