<?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>Problem with Multirole + NUS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113452/problem-with-multirole-nus</link><description>I am currently using nrf52840, nRF5_SDK_17.1.0_ddde560, and the ble_app_multirole_lesc example file. 
 I have successfully removed the HRS and button Bluetooth connections from the example file. 
 However, I encountered errors when adding NUS to the program</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 01 Aug 2024 06:15:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113452/problem-with-multirole-nus" /><item><title>RE: Problem with Multirole + NUS</title><link>https://devzone.nordicsemi.com/thread/496510?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2024 06:15:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07a367fc-3b8c-41d0-868a-a8fb6b6ee415</guid><dc:creator>Player777</dc:creator><description>&lt;p&gt;Thank you for your reply.&lt;/p&gt;
&lt;p&gt;I later moved &lt;code&gt;on_ble_evt&lt;/code&gt; and some code related to &lt;code&gt;m_conn_handle&lt;/code&gt; to &lt;code&gt;on_ble_peripheral_evt&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;After removing some unnecessary code, it worked.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with Multirole + NUS</title><link>https://devzone.nordicsemi.com/thread/495976?ContentTypeID=1</link><pubDate>Mon, 29 Jul 2024 10:39:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69b33bd4-f9f7-42e9-9e1f-e42d87e7168c</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Player777,&lt;/p&gt;
&lt;p&gt;As you can see, the error message indicates an issue at a particular line in main.c.&amp;nbsp;What is being done there? What is the context around that line of code?&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with Multirole + NUS</title><link>https://devzone.nordicsemi.com/thread/495840?ContentTypeID=1</link><pubDate>Fri, 26 Jul 2024 14:56:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60433965-aa34-45f5-a596-93436128ea43</guid><dc:creator>Player777</dc:creator><description>&lt;p&gt;Additionally, I modified the code within the for loop:&lt;br /&gt;for (;;)&lt;br /&gt; {&lt;br /&gt; data_buffer[0] = 0x0A;&lt;br /&gt; data_buffer[1] = 0x0B;&lt;br /&gt; data_buffer[2] = 0x0C;&lt;br /&gt; uint16_t length = 242;&lt;br /&gt; uint32_t err_code = ble_nus_data_send(&amp;amp;m_nus, (uint8_t *)data_buffer, &amp;amp;length, m_conn_handle);&lt;br /&gt; if((err_code != NRF_ERROR_INVALID_STATE) &amp;amp;&amp;amp; (err_code != NRF_ERROR_BUSY) &amp;amp;&amp;amp; (err_code != NRF_ERROR_NOT_FOUND))&lt;br /&gt; {&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;br /&gt; }&lt;br /&gt; idle_state_handle();&lt;br /&gt; nrf_delay_ms(30);&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;The following error occurred:&lt;/p&gt;
&lt;p&gt;&amp;lt;debug&amp;gt; nrf_ble_gatt: Requesting to update ATT MTU to 247 bytes on connection 0x1.&lt;/p&gt;
&lt;p&gt;&amp;lt;info&amp;gt; app: PERIPHERAL: Connected, handle 1.&lt;/p&gt;
&lt;p&gt;&amp;lt;error&amp;gt; app: ERROR 4 [NRF_ERROR_NO_MEM] at ..\..\..\main.c:1411&lt;/p&gt;
&lt;p&gt;PC at: 0x000332D9&lt;/p&gt;
&lt;p&gt;&amp;lt;error&amp;gt; app: End of error report&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>