<?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>NUS example - sd_ble_gatts_hvx returns error number 0x3003</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/8318/nus-example---sd_ble_gatts_hvx-returns-error-number-0x3003</link><description>SoftDevice : S110 7.1 
 SDK 7.2 
 Example : experimental_ble_app_uart 
 Using IAR 7.1 
 Using nRFGo Studio 1.19.0 
 Board : PCA10001 V 2.0.0 (Rev. 2 MCU) 
 Test device : Nexus 5 (Android 5.1.1) and iPhone 6+ (iOS 8.4) 
 Toolbox App Version : 1</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 26 Jul 2015 16:57:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/8318/nus-example---sd_ble_gatts_hvx-returns-error-number-0x3003" /><item><title>RE: NUS example - sd_ble_gatts_hvx returns error number 0x3003</title><link>https://devzone.nordicsemi.com/thread/30076?ContentTypeID=1</link><pubDate>Sun, 26 Jul 2015 16:57:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:197e3fd1-de37-4cb0-948e-774bdc3ad800</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;glad to help :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NUS example - sd_ble_gatts_hvx returns error number 0x3003</title><link>https://devzone.nordicsemi.com/thread/30075?ContentTypeID=1</link><pubDate>Fri, 24 Jul 2015 03:11:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a8f0d19-f349-44b0-81ed-742c90ec691a</guid><dc:creator>MANGO</dc:creator><description>&lt;p&gt;LOL, you were right!!!&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static void ble_evt_dispatch(ble_evt_t * p_ble_evt){
//volatile static uint8_t k = 0;
//volatile static uint32_t ev[20] = {0,};
//ev[k++] = p_ble_evt-&amp;gt;header.evt_id;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It was my fault. I placed some code to understand the event procedures.&lt;/p&gt;
&lt;p&gt;Since I kept recursively called &lt;code&gt;ble_evt_dispatch&lt;/code&gt;, it did corrupted the memory.&lt;/p&gt;
&lt;p&gt;Thanks Aryan!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NUS example - sd_ble_gatts_hvx returns error number 0x3003</title><link>https://devzone.nordicsemi.com/thread/30074?ContentTypeID=1</link><pubDate>Thu, 23 Jul 2015 13:21:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:520e377c-abd2-4ca8-9993-dfb37e091bb9</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I am not an expert in IAR, but in KEIL you can have watch points and can create a breakpoint when an address is changed. That will be useful if you can do the same in IAR. Try to set a breakpoint for modification of for example service_handle at 0X2000291A&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NUS example - sd_ble_gatts_hvx returns error number 0x3003</title><link>https://devzone.nordicsemi.com/thread/30073?ContentTypeID=1</link><pubDate>Thu, 23 Jul 2015 12:09:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:849d94d5-e34c-4884-92e6-e211f9feaf66</guid><dc:creator>MANGO</dc:creator><description>&lt;p&gt;Hmm... This sounds like a big trouble...&lt;/p&gt;
&lt;p&gt;Can you recommend me some analyzing tech for this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NUS example - sd_ble_gatts_hvx returns error number 0x3003</title><link>https://devzone.nordicsemi.com/thread/30072?ContentTypeID=1</link><pubDate>Thu, 23 Jul 2015 11:17:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4929fff-7672-4546-954b-2694c37ba9c6</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;They clearly seem to be different handles
p_nus-&amp;gt;service_handle
p_nus-&amp;gt;tx_handles
p_nus-&amp;gt;rx_handles
these cannot change for a characteristic, seems like memory corruption&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NUS example - sd_ble_gatts_hvx returns error number 0x3003</title><link>https://devzone.nordicsemi.com/thread/30071?ContentTypeID=1</link><pubDate>Thu, 23 Jul 2015 10:20:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f61b6f06-5cae-4946-a244-3d62bb0465ee</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Did you compare if the contents of m_nus and hvx_params when it succeeds and when it failed.
can you also show the contents of hvx_params like you did with m_nus.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NUS example - sd_ble_gatts_hvx returns error number 0x3003</title><link>https://devzone.nordicsemi.com/thread/30070?ContentTypeID=1</link><pubDate>Thu, 23 Jul 2015 08:20:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ebb15a9-77cd-4ebd-ad13-d06ea423191b</guid><dc:creator>MANGO</dc:creator><description>&lt;p&gt;I modified ble_hrs.c. Execpt that, I didn&amp;#39;t made a change.&lt;/p&gt;
&lt;p&gt;Then what could be the reason for this?&lt;/p&gt;
&lt;p&gt;Is there a chance that I made a pointer operation and changed some values of &lt;code&gt;m_nus&lt;/code&gt;?&lt;/p&gt;
&lt;p&gt;(Also, I apologize for writing the wrong error type. I edited it.)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NUS example - sd_ble_gatts_hvx returns error number 0x3003</title><link>https://devzone.nordicsemi.com/thread/30069?ContentTypeID=1</link><pubDate>Thu, 23 Jul 2015 07:45:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d0f583c-2652-4c12-97dd-d20e90cfb6a7</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;looking into SDK7.2\components\softdevice\s110\headers\ble_err.h&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define BLE_ERROR_INVALID_ATTR_HANDLE    (NRF_ERROR_STK_BASE_NUM+0x003) /**&amp;lt; Invalid attribute handle. */
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;seems like the p_hvx_params used in sd_ble_gatts_hvs has invalid handle in it.
have you changed anything in this code or using it as it is? Just adding timer should not effect this unless the timer handler is trying to do and HVX before the handle is initialized.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>