<?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>All LEDs light up upon ble error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11474/all-leds-light-up-upon-ble-error</link><description>Hello, 
 I am using the nRF52 along with SDK 9.0.2. I have used both the ble_app_uart code and the twi_master_slave code to send data from a sensor over bluetooth to the nRF Toolbox UART app on Android. I can flash the code, connect to the nRF52, and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 22 Jan 2016 08:58:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11474/all-leds-light-up-upon-ble-error" /><item><title>RE: All LEDs light up upon ble error</title><link>https://devzone.nordicsemi.com/thread/43314?ContentTypeID=1</link><pubDate>Fri, 22 Jan 2016 08:58:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70bef482-9688-492c-87e5-5ec57a057ed6</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;You can also have a look at this recent &lt;a href="https://devzone.nordicsemi.com/blogs/821/an-introduction-to-error-handling-in-nrf5-projects/"&gt;blogpost on debugging&lt;/a&gt; for more about the error handler and debugging. It is well worth a read-through.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: All LEDs light up upon ble error</title><link>https://devzone.nordicsemi.com/thread/43313?ContentTypeID=1</link><pubDate>Fri, 22 Jan 2016 04:31:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd9047eb-eeca-4682-8f3d-e06538b8f271</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;If all the LEDs are lighting up then you are in the error handler because one of your calls returned a non-zero error code and APP_ERR_CHECK() calls the error handler and all the LEDs light up to tell you this fact so you can go and debug. Get the debugger out, put a breakpoint in the error handler, or wait until all the LEDs light up and hit &amp;#39;break&amp;#39; and look at the stack trace to see where you are and what call failed and what the error code was which caused it.&lt;/p&gt;
&lt;p&gt;If you&amp;#39;re using some hard-coded delay then you&amp;#39;re most likely already doing something wrong, hard-coded fixed delays are almost always a hack which hides a real issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>