<?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>Add NUS to ble_app_blinky (Error 0x4.)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/35215/add-nus-to-ble_app_blinky-error-0x4</link><description>building background : 
 SDK : 15.0 
 Development Kit: nrf52832 DK 
 IDE: Keil C 
 Softdevice: S132 
 ----------------------------------------------------------- ----------------------------------------------------------- 
 Problem Description: 
 When</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 14 Jun 2018 09:48:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/35215/add-nus-to-ble_app_blinky-error-0x4" /><item><title>RE: Add NUS to ble_app_blinky (Error 0x4.)</title><link>https://devzone.nordicsemi.com/thread/136119?ContentTypeID=1</link><pubDate>Thu, 14 Jun 2018 09:48:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba4abf67-3039-4639-93ea-4dff56ab02ca</guid><dc:creator>Prasad PL</dc:creator><description>&lt;p&gt;Can you post the working &amp;#39;final&amp;#39; code if you have it ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add NUS to ble_app_blinky (Error 0x4.)</title><link>https://devzone.nordicsemi.com/thread/135496?ContentTypeID=1</link><pubDate>Mon, 11 Jun 2018 07:58:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa72256b-6437-4051-ba60-79aa5b20c9d2</guid><dc:creator>WrightLin</dc:creator><description>&lt;p&gt;Thanks for your reply. The project&amp;nbsp; is working fine now.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add NUS to ble_app_blinky (Error 0x4.)</title><link>https://devzone.nordicsemi.com/thread/135489?ContentTypeID=1</link><pubDate>Mon, 11 Jun 2018 07:21:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36a002ed-e411-4dd1-8a71-42d6519c6b9f</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Took a look at your project. It says that it fails on line 181 in main.c (as it says in the log output that you attached).&lt;/p&gt;
&lt;p&gt;Now that I had your main.c I see that you commented outt line 177, err_code = app_uart_put(...);&lt;/p&gt;
&lt;p&gt;This means that the APP_ERROR_CHECK(err_code); will use the err_code with the value from it&amp;#39;s declaration on line 166:&lt;/p&gt;
&lt;p&gt;uint32_t err_code;&lt;/p&gt;
&lt;p&gt;So it is set to a random value (whatever was on that address in the RAM from before), not necessarily 0.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To fix this, either comment in the err_code = app_uart_put(...);&lt;/p&gt;
&lt;p&gt;or change the declaration on line 166:&lt;/p&gt;
&lt;p&gt;uint32_t err_code = NRF_SUCCESS;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Of if you don&amp;#39;t intend to print the data on the physical UART at all, you can remove the app_uart_put(...); and the APP_ERROR_CHECK(err_code) on line 181 as well.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add NUS to ble_app_blinky (Error 0x4.)</title><link>https://devzone.nordicsemi.com/thread/135404?ContentTypeID=1</link><pubDate>Fri, 08 Jun 2018 16:09:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6a07d7c-fef8-4568-89d8-e6ded41fc96b</guid><dc:creator>WrightLin</dc:creator><description>&lt;p&gt;Yes, sorry for not making my point clear. I still stuck with the problem I updated&amp;nbsp; at 9 PM.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add NUS to ble_app_blinky (Error 0x4.)</title><link>https://devzone.nordicsemi.com/thread/135385?ContentTypeID=1</link><pubDate>Fri, 08 Jun 2018 14:04:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9e65901-aa59-4169-9e64-69f27d0216d6</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;So do you still get the NRF_ERROR_NO_MEM message? Not sure when you updated the original question (don&amp;#39;t know what timezone you are in), but the last log window you posted describes another error code.&lt;/p&gt;
&lt;p&gt;Error 0x20005732. Is that the error you are currently stuck with?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add NUS to ble_app_blinky (Error 0x4.)</title><link>https://devzone.nordicsemi.com/thread/135368?ContentTypeID=1</link><pubDate>Fri, 08 Jun 2018 13:07:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a91ff51e-2f56-4531-aca7-a60f6d094c53</guid><dc:creator>WrightLin</dc:creator><description>&lt;p&gt;&lt;span&gt;No. 『Insufficient RAM allocated for Softdevice 』message hasn&amp;#39;t shown since I adjusted&amp;nbsp; RAM allocation .&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add NUS to ble_app_blinky (Error 0x4.)</title><link>https://devzone.nordicsemi.com/thread/135365?ContentTypeID=1</link><pubDate>Fri, 08 Jun 2018 12:50:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8461ca3-bafe-4735-8784-3d16f6640db1</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Do you still get the &amp;quot;Insufficient RAM allocation for the SoftDevice&amp;quot; message?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add NUS to ble_app_blinky (Error 0x4.)</title><link>https://devzone.nordicsemi.com/thread/135362?ContentTypeID=1</link><pubDate>Fri, 08 Jun 2018 12:25:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e01d2b7-2e01-47b0-a1d7-64c9bbcceff4</guid><dc:creator>WrightLin</dc:creator><description>&lt;p&gt;Unfortunately , No, I still got the same problem.&amp;nbsp; Is there any other suggestion??&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add NUS to ble_app_blinky (Error 0x4.)</title><link>https://devzone.nordicsemi.com/thread/135343?ContentTypeID=1</link><pubDate>Fri, 08 Jun 2018 11:28:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d54406c1-fa57-4b43-baf7-754794a541b9</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Do you still get the NRF_ERROR_NO_MEM after you changed the RAM settings?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add NUS to ble_app_blinky (Error 0x4.)</title><link>https://devzone.nordicsemi.com/thread/135338?ContentTypeID=1</link><pubDate>Fri, 08 Jun 2018 10:59:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5eaeeb74-bb10-45a0-8a76-dab396509416</guid><dc:creator>Andre</dc:creator><description>&lt;p&gt;If the UUID count is adjusted, the suggestions by the SoftDevice should be okay.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add NUS to ble_app_blinky (Error 0x4.)</title><link>https://devzone.nordicsemi.com/thread/135337?ContentTypeID=1</link><pubDate>Fri, 08 Jun 2018 10:55:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ffc69e7-be89-4536-b06f-68ee97a85d8a</guid><dc:creator>WrightLin</dc:creator><description>&lt;p&gt;Hi Andre&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Thanks for your reply.&lt;/p&gt;
&lt;p&gt;I have adjusted the RAM Base and&amp;nbsp; size by the suggestion which Softdevice hinted me. Do I still have to adjust it?&lt;br /&gt;&lt;br /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/2703._F764D653_.PNG" /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;and here are&amp;nbsp;RAM Base and size of my project&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/_F764D653_w.PNG" /&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add NUS to ble_app_blinky (Error 0x4.)</title><link>https://devzone.nordicsemi.com/thread/135333?ContentTypeID=1</link><pubDate>Fri, 08 Jun 2018 10:02:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d53249b-acab-463c-8d58-9475b48b8f85</guid><dc:creator>Andre</dc:creator><description>&lt;p&gt;See this question&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/35184/how-can-i-change-characteristic-service-rx-tx-uuid"&gt;devzone.nordicsemi.com/.../how-can-i-change-characteristic-service-rx-tx-uuid&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add NUS to ble_app_blinky (Error 0x4.)</title><link>https://devzone.nordicsemi.com/thread/135332?ContentTypeID=1</link><pubDate>Fri, 08 Jun 2018 09:59:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72ae1f3f-b556-44bf-be57-fa84debed6d3</guid><dc:creator>Andre</dc:creator><description>&lt;p&gt;I don&amp;#39;t exactly know how to do this in Keil, but you&amp;#39;ll probably need to adjust your linker settings. Raise the start of application ram address, to give the soft device more ram.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>