<?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>adding custom uuid</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62592/adding-custom-uuid</link><description>Hi, 
 
 I would like to add custom UUID in my ble application. Due to this fact, I increase NRF_SDH_BLE_VS_UUID_COUNT constant to value equal to 1 which implies NRF_ERROR_NO_MEM error. I read in this thread https://devzone.nordicsemi.com/f/nordic-q-a</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 03 Mar 2021 06:43:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62592/adding-custom-uuid" /><item><title>RE: adding custom uuid</title><link>https://devzone.nordicsemi.com/thread/297357?ContentTypeID=1</link><pubDate>Wed, 03 Mar 2021 06:43:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc566c35-2382-495a-8334-8f0ffa2280b8</guid><dc:creator>SM_</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you please share/send the project (.zip) file? the above link doesn&amp;#39;t contain any file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding custom uuid</title><link>https://devzone.nordicsemi.com/thread/255720?ContentTypeID=1</link><pubDate>Thu, 18 Jun 2020 09:52:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:beee7aed-c1b5-45df-beab-dd5cc8889e46</guid><dc:creator>control</dc:creator><description>&lt;p&gt;I found the problem. I forgot to return NRF_SUCCESS in the char_add methods. Thanks for help anyway.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding custom uuid</title><link>https://devzone.nordicsemi.com/thread/255560?ContentTypeID=1</link><pubDate>Wed, 17 Jun 2020 13:21:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9fcf720b-dbd2-45db-936c-24cc792b7e9c</guid><dc:creator>control</dc:creator><description>&lt;p&gt;Here is the project:&amp;nbsp;&lt;a href="https://we.tl/t-Sx6SJuu421"&gt;https://we.tl/t-Sx6SJuu421&lt;/a&gt;&amp;nbsp;please go to \Ble_Indu4s_Nordic\pca10040e\s112\ses. The project has one service ble_mass. In service_init() I added five characteristics but the first one is declared as static uint32_t current_gas_char_add(ble_mass_t *p_mass) which is the reason why remaining four characteristics are not visible. If the static prefix is removed then all characteristics are visible. I am really curious about what is the problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding custom uuid</title><link>https://devzone.nordicsemi.com/thread/255530?ContentTypeID=1</link><pubDate>Wed, 17 Jun 2020 12:31:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5f5385f-e0f5-4ce8-8523-f38da8012fe9</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;You can include as an attachment when you post a comment here. It&amp;#39;s sufficient to make a zip of the project folder as long as it includes all dependencies and that you haven&amp;#39;t modified any SDK source files (upload the entire SDK if you have).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding custom uuid</title><link>https://devzone.nordicsemi.com/thread/255506?ContentTypeID=1</link><pubDate>Wed, 17 Jun 2020 11:38:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:851d165d-9ddb-43e7-8ad2-e4eae6793e0a</guid><dc:creator>control</dc:creator><description>&lt;p&gt;Please let me know what I have to do that you will get source code. Thanks for help in advance&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding custom uuid</title><link>https://devzone.nordicsemi.com/thread/255462?ContentTypeID=1</link><pubDate>Wed, 17 Jun 2020 10:06:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf53f720-d08e-4c82-80a9-8c31ed216cde</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks for the update. Unfortunately, I can&amp;#39;t really think of any reason as to why it would help to remove the &amp;#39;static&amp;#39; keyword. It should only limit the scope of the function, meaning that it can only be called inside the source file it has been defined in.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding custom uuid</title><link>https://devzone.nordicsemi.com/thread/255398?ContentTypeID=1</link><pubDate>Wed, 17 Jun 2020 06:53:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3bb6a487-e1b7-4447-917c-2d5e4cdfe26d</guid><dc:creator>control</dc:creator><description>&lt;p&gt;you are so kind. I spend a few hours and I think that I found the problem, but I do not know why this happens. if I declare the functions without static then I get two characteristics otherwise not.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;uint32_t current_gas_char_add(ble_mass_t *p_mass){...}&lt;/p&gt;
&lt;p&gt;uint32_t capacity_date_char_add(ble_mass_t *p_mass){..}&lt;/p&gt;
&lt;p&gt;Do you know what is the problem? I suspect that the problem is with static memory.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding custom uuid</title><link>https://devzone.nordicsemi.com/thread/255266?ContentTypeID=1</link><pubDate>Tue, 16 Jun 2020 12:57:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee89f465-c065-4d90-89f7-35e008d68952</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Would it be possible for you to upload the project here so I can try it? I will make this ticket private if it helps.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding custom uuid</title><link>https://devzone.nordicsemi.com/thread/255260?ContentTypeID=1</link><pubDate>Tue, 16 Jun 2020 12:51:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16c788ef-e948-4ceb-9912-e2201825cbc2</guid><dc:creator>control</dc:creator><description>&lt;p&gt;I try but it does not work. It is very interesting if I exchange the order of characteristics I also get only the first characteristic.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding custom uuid</title><link>https://devzone.nordicsemi.com/thread/255234?ContentTypeID=1</link><pubDate>Tue, 16 Jun 2020 11:48:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22e150d6-3b8e-4c32-9448-ee154fe87de7</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;It could be that client has cached the characteristics from a previous connection and that is why it doesn&amp;#39;t see the new characteristic you added. If you use nRF connect on Android, try to select &amp;quot;Refresh device cache&amp;quot; after establishing the connection. Or if you are on iOS, kill the app and toggle flight mode enable button in settings, then re-open the app and re-connect.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding custom uuid</title><link>https://devzone.nordicsemi.com/thread/255219?ContentTypeID=1</link><pubDate>Tue, 16 Jun 2020 10:55:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0787b747-4e07-4025-8751-4164487b771f</guid><dc:creator>control</dc:creator><description>&lt;p&gt;I solve the problem. The error was shown in J-Link RTT Viewer and not directly in the output panel in the segger studio.&amp;nbsp; I added two characteristics but I see only the first one which was added first. Do you know what can be the problem because I do not get any error? The constant&amp;nbsp;BLE_GATT_DB_MAX_CHARS is set to 6.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding custom uuid</title><link>https://devzone.nordicsemi.com/thread/255183?ContentTypeID=1</link><pubDate>Tue, 16 Jun 2020 08:49:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fbea134-6667-4d75-82b6-f7ec8f22a9b2</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The linker errors show that you run out of flash when you turn off optimization. However, this is not related to the &lt;span&gt;NRF_ERROR_NO_MEM&amp;nbsp; you get from sd_ble_enable(). Were you able to view the RTT log messages? &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Note that you can view the RTT messages while debugging in Segger if you disable the NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED option in sdk_config.h.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding custom uuid</title><link>https://devzone.nordicsemi.com/thread/255058?ContentTypeID=1</link><pubDate>Mon, 15 Jun 2020 14:03:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b31bef7d-4619-4aa9-861e-985af522aa20</guid><dc:creator>control</dc:creator><description>&lt;p&gt;I am using nrf log module. My project is written based on ble template project. I added build configuration &amp;quot;Debug&amp;quot; which inherits from common The optimization level I can not set to None because I get the following error:&lt;/p&gt;
&lt;p&gt;C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 4.52c/gcc/arm-none-eabi/bin/ld: error: .rodata is too large to fit in FLASH memory segment&lt;br /&gt;1&amp;gt; C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 4.52c/gcc/arm-none-eabi/bin/ld: error: .data is too large to fit in FLASH memory segment&lt;br /&gt;Build failed&lt;/p&gt;
&lt;p&gt;I am using the same optimization level (level 2 for size) for debug and release.&amp;nbsp; I also set&amp;nbsp;NRF_LOG_BACKEND_RTT_ENABLED 1.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding custom uuid</title><link>https://devzone.nordicsemi.com/thread/255041?ContentTypeID=1</link><pubDate>Mon, 15 Jun 2020 13:21:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49e55aa9-68d1-428c-b96a-92c9cda10c99</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, you usually have to increase the APP_RAM_BASE (see &lt;a href="https://infocenter.nordicsemi.com/topic/sds_s113/SDS/s1xx/mem_usage/mem_resource_map_usage.html"&gt;mem layout&lt;/a&gt;) address after increasing the NRF_SDH_BLE_VS_UUID_COUNT setting because the Softdevice needs more RAM to fit the larger UUID buffer.&lt;/p&gt;
&lt;p&gt;Which IDE are you using, and do you have logging over RTT or UART enabled? The debug log should print out the minimum APP_RAM_BASE address you can use if sd_ble_enable returned &lt;span&gt;NRF_ERROR_NO_MEM &lt;/span&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>