<?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>Ble uart application wont run when just plugin supply</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15200/ble-uart-application-wont-run-when-just-plugin-supply</link><description>I have a ble_uart application which is working when I load it on the chip. But it will not automaticly run again if I unplug the supply and just plugin again. When I unplug the supply, then I have to run the application again on Keil. 
 But if I comment</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 24 Aug 2016 00:50:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15200/ble-uart-application-wont-run-when-just-plugin-supply" /><item><title>RE: Ble uart application wont run when just plugin supply</title><link>https://devzone.nordicsemi.com/thread/58030?ContentTypeID=1</link><pubDate>Wed, 24 Aug 2016 00:50:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4214a42e-7ad8-4df0-a7fb-04c42397f2ec</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;write an error handler which just idle loops (and turns on an LED so you can see when it&amp;#39;s there). Then start your board up, wait for it to get to the error handler and THEN attach a debugger to it. You can attach debuggers to running processors. Then halt the CPU and you can trace down the problem.&lt;/p&gt;
&lt;p&gt;Something like Segger&amp;#39;s ozone debugger is all you need for this, it basically just drives the Segger JLINK and lets you load the elf file so it can show you where it is.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble uart application wont run when just plugin supply</title><link>https://devzone.nordicsemi.com/thread/58025?ContentTypeID=1</link><pubDate>Tue, 23 Aug 2016 13:47:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9e2fa9a-ca0c-41c0-99fa-4732b3d1525a</guid><dc:creator>Inspectron</dc:creator><description>&lt;p&gt;I did not load a bootloader on the chip. But I will try it now. No I do not use hardware flowcontrol.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble uart application wont run when just plugin supply</title><link>https://devzone.nordicsemi.com/thread/58024?ContentTypeID=1</link><pubDate>Tue, 23 Aug 2016 13:45:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:873dd7c4-6555-4b5b-a18d-960efecc3974</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;Do you use hardware flow control? If not then remove them from settings as it may provide additional error code during initialization if hardware in wrong state. another option is that your bootloader initializes uart so your second time initialization returns error.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble uart application wont run when just plugin supply</title><link>https://devzone.nordicsemi.com/thread/58029?ContentTypeID=1</link><pubDate>Tue, 23 Aug 2016 13:35:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f89882fe-d770-48bb-b6e8-2d0463934f73</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;Now think how to get that error code. Also make sure you don&amp;#39;t call APP_UART_FIFO_INIT or app_uart_init or APP_UART_INIT anywhere in your code second time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble uart application wont run when just plugin supply</title><link>https://devzone.nordicsemi.com/thread/58028?ContentTypeID=1</link><pubDate>Tue, 23 Aug 2016 13:32:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3114861d-de24-43be-89a1-4bdee3269073</guid><dc:creator>Inspectron</dc:creator><description>&lt;p&gt;when I comment out APP_ERROR_CHECK(err_code) then it works. So I will stuck into an error handler. But why only when I unplug and plug again?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble uart application wont run when just plugin supply</title><link>https://devzone.nordicsemi.com/thread/58027?ContentTypeID=1</link><pubDate>Tue, 23 Aug 2016 13:26:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c6ddbfd-072c-4c49-b561-1c1f1e2a091d</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;comment out APP_ERROR_CHECK(err_code) and see the difference&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble uart application wont run when just plugin supply</title><link>https://devzone.nordicsemi.com/thread/58026?ContentTypeID=1</link><pubDate>Tue, 23 Aug 2016 13:24:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:529e3e5f-77ba-4bfa-8ea3-7d662377de0b</guid><dc:creator>Inspectron</dc:creator><description>&lt;p&gt;If I comment uart_init then it will automaticly run by supply. But I will try this with the LED.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble uart application wont run when just plugin supply</title><link>https://devzone.nordicsemi.com/thread/58031?ContentTypeID=1</link><pubDate>Tue, 23 Aug 2016 13:20:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ee41a98-e4d6-47e6-8bda-cc68d29f17a7</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;I think Ole asked you to debug your code by placing code to turn any LED on after APP_ERROR_CHECK(err_code) in uart_init to make sure code not stuck in error handler. Or to make sure that you don&amp;#39;t have DEBUG defined in your code while programming with Keil because if not defined then error handler won&amp;#39;t block code execution in case of error. Or just comment APP_ERROR_CHECK(err_code) and try again if you 100% sure problem in uart_init. I would also check if bootloader is loaded, but you are saying that without uart_init all works...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble uart application wont run when just plugin supply</title><link>https://devzone.nordicsemi.com/thread/58023?ContentTypeID=1</link><pubDate>Tue, 23 Aug 2016 12:21:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3886efcf-defa-4d78-8f05-49495b030923</guid><dc:creator>Inspectron</dc:creator><description>&lt;p&gt;The problem is, I cant really debugg this issue. Because it appears when I unplug and then plug in again. And this I cant do when the debugger is active&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble uart application wont run when just plugin supply</title><link>https://devzone.nordicsemi.com/thread/58022?ContentTypeID=1</link><pubDate>Tue, 26 Jul 2016 08:57:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16c67181-5665-41a8-bd6d-abf56d8ae847</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Do you have DEBUG defined in your preprocessor symbols? Or else the error handler will not be entered, see &lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble uart application wont run when just plugin supply</title><link>https://devzone.nordicsemi.com/thread/58021?ContentTypeID=1</link><pubDate>Wed, 20 Jul 2016 11:07:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df760a59-448a-4802-bed4-4e4970e5a0df</guid><dc:creator>Inspectron</dc:creator><description>&lt;p&gt;I wont hit the error handler. So I dont really find where it halts.  It will exactly in uart_init function stop. After the uart_init function I dont know where it goes&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble uart application wont run when just plugin supply</title><link>https://devzone.nordicsemi.com/thread/58019?ContentTypeID=1</link><pubDate>Tue, 19 Jul 2016 14:39:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a8c8071-d94c-46bf-bd73-734f6e6474cc</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Can you check if the application starts at all or where in the application it halts? Turn on the LED at different places to see where it stops.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble uart application wont run when just plugin supply</title><link>https://devzone.nordicsemi.com/thread/58018?ContentTypeID=1</link><pubDate>Tue, 19 Jul 2016 09:41:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3c89754-33c7-48ce-a0f4-dea70c70dba2</guid><dc:creator>Inspectron</dc:creator><description>&lt;p&gt;This is not possible, because on the other side is a distance sensor. And the sensor will also have no power when I unplug the supply.I tested it with a LED(which should blink). Yes, the behaviour is the same if the sensor is not connected to the module.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble uart application wont run when just plugin supply</title><link>https://devzone.nordicsemi.com/thread/58020?ContentTypeID=1</link><pubDate>Tue, 19 Jul 2016 08:44:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83f27106-6af3-42ad-90f4-08f7545709cb</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;The device may be powered through the UART pins when you unplug the power, so when you plugin the supply again the device have not been powered off and will hence not run the startup code.&lt;/p&gt;
&lt;p&gt;It is weird however that this is only the case when using SD.&lt;/p&gt;
&lt;p&gt;Is the behaviour the same even though nothing is connected on the other side of the UART? How do you see that the code is not running (not advertising, LEDs not blinking)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>