<?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>Failing to advertise Nordic UART Service</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/7609/failing-to-advertise-nordic-uart-service</link><description>S110 v8.0.0 
 SDK v8.0.0 
 ble_app_uart example 
 
 I first initialize the services and then initialize advertising. Everything works fine when I do NOT advertise the nus. As soon as I comment that code back in, the firmware seems to crash. I&amp;#39;ve noticed</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 Jun 2015 11:54:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/7609/failing-to-advertise-nordic-uart-service" /><item><title>RE: Failing to advertise Nordic UART Service</title><link>https://devzone.nordicsemi.com/thread/27136?ContentTypeID=1</link><pubDate>Mon, 15 Jun 2015 11:54:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6da7e1c-1812-4bee-bbd7-2d4be97e028a</guid><dc:creator>Ulrich Myhre</dc:creator><description>&lt;p&gt;I see you got your response, but I just want to add that BLE_UUID_TYPE_VENDOR_BEGIN is the index of the &lt;em&gt;first&lt;/em&gt; vendor-specific UUID you add. Consecutive VS-UUIDs added will continue to count upwards from this number. If you want to send a request, or receive a response with one of the VS-UUIDs you added, the stack will set the type to the value you got earlier. This means you need to store the ID you got from the stack somewhere if you want to know which VS-UUID this response contained.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failing to advertise Nordic UART Service</title><link>https://devzone.nordicsemi.com/thread/27140?ContentTypeID=1</link><pubDate>Mon, 15 Jun 2015 03:26:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11d02f2e-c99c-4fa0-88b7-18efbd2de880</guid><dc:creator>la-ble</dc:creator><description>&lt;p&gt;@RK Thank you.  I&amp;#39;ve updated the OP to only put the uuids in the scan response instead.  I&amp;#39;m able to advertise now, just not able to see TX or RX logs with the mobile app (basically advertises just doesn&amp;#39;t work with example app).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failing to advertise Nordic UART Service</title><link>https://devzone.nordicsemi.com/thread/27139?ContentTypeID=1</link><pubDate>Mon, 15 Jun 2015 03:09:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6fa9bbf1-a939-44d4-b630-dd6cd5c02415</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;The macro calls a macro which eventually calls an error handling function, normally app_error_handler, which either you defined yourself or a default implementation was used. Put the breakpoint there. Alternatively since the app_error_handler() just spins in a busy loop, hit &amp;#39;break&amp;#39; and look at the stack trace, it should show how you got there and somewhere have the error code.&lt;/p&gt;
&lt;p&gt;Either way it&amp;#39;s going to be data too large, you can&amp;#39;t fit a 16 byte UUID + more than a small-sized name + the flags into a 31 byte ad packet. Go stuff it in the scan response instead, or use a very short name.&lt;/p&gt;
&lt;p&gt;It is rather annoying that when you have to use custom service UUIDs you&amp;#39;re very restricted to one, and at the outside 2, in the ad data, and only if you remove just about everything else.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failing to advertise Nordic UART Service</title><link>https://devzone.nordicsemi.com/thread/27138?ContentTypeID=1</link><pubDate>Mon, 15 Jun 2015 02:01:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0364feb7-e586-490b-b8b5-f3fd0fc1082c</guid><dc:creator>la-ble</dc:creator><description>&lt;p&gt;Thank you for the debugging advice.  I am not able to put a breakpoint in APP_ERROR_CHECK (it&amp;#39;s a macro that gets repeated inline many places).  I am also not able to put a breakpoint in assert_nrf_callback even if I define DEBUG macro in the project settings and am sure to compile with optimization level 0.  How do you place your breakpoint?  Example project is still very unreliable even with a one character name on an nrf51822_xxAA.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failing to advertise Nordic UART Service</title><link>https://devzone.nordicsemi.com/thread/27137?ContentTypeID=1</link><pubDate>Sun, 14 Jun 2015 05:21:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7a11983-8abc-4fe7-9a27-fa8d2577b006</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;I just answered a very similar question - &lt;a href="https://devzone.nordicsemi.com/question/41344/porting-ble_nus-service-from-sdk-60-to-61-on-nrf51822/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;and the firmware doesn&amp;#39;t &amp;#39;seem to crash&amp;#39;, I&amp;#39;m quite sure the ble_advdata_set() returns an error code and the APP_ERROR_CHECK() then sends you to the error handler, in which you should always put a breakpoint, or when nothing happened hit &amp;#39;break&amp;#39; in the debugger to see where you were, and that would have pointed to the line of code which generated the error.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>