<?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>Authorized write request with VLOC_USER</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14417/authorized-write-request-with-vloc_user</link><description>Hello, 
 i have a characteristic kept in user space with VLOC_USER. It has read/write with response props and has auth permissions set, both for read and write. 
 In the past i experienced weird behaviour because i was setting the update flag to 1 in</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 20 Jun 2016 09:46:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14417/authorized-write-request-with-vloc_user" /><item><title>RE: Authorized write request with VLOC_USER</title><link>https://devzone.nordicsemi.com/thread/55056?ContentTypeID=1</link><pubDate>Mon, 20 Jun 2016 09:46:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37766290-4775-4183-a3d0-9e3bde635cc8</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Anyways, both auth read and auth write should be safe to use with VLOC_USER. If you experience something else please tell me how to reproduce it with the latest SoftDevice, or supply me with a project that exhibits the behavior.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Authorized write request with VLOC_USER</title><link>https://devzone.nordicsemi.com/thread/55055?ContentTypeID=1</link><pubDate>Fri, 17 Jun 2016 11:26:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a46aba1-49c4-48d6-bb1d-9b2ade636403</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I did some more testing, and actually auth read with update flag set seems to be working fine. Could you please elaborate on how you get this hard fault?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Authorized write request with VLOC_USER</title><link>https://devzone.nordicsemi.com/thread/55054?ContentTypeID=1</link><pubDate>Wed, 15 Jun 2016 13:57:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35ee9849-2dd2-4cbb-9b64-efaf510d0732</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I haven&amp;#39;t been able to reproduce the hard fault with auth read, but there is something strange with VLOC_USER and the update flag set. I will investigate this, and the auth write and get back to you soon.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Authorized write request with VLOC_USER</title><link>https://devzone.nordicsemi.com/thread/55053?ContentTypeID=1</link><pubDate>Tue, 14 Jun 2016 15:30:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25ba54ee-0d3a-46ea-baf2-0eec3b7cfffe</guid><dc:creator>blungreen</dc:creator><description>&lt;p&gt;I did open a ticket while i was working with alpha 1.0.3. When i moved to 2.0 i also included the fix suggested by the support team and never got the fault again.
I remember i tried 2.0 once without fix and still got hardfault. I instantly reverted to working version and started to be happy again&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Authorized write request with VLOC_USER</title><link>https://devzone.nordicsemi.com/thread/55052?ContentTypeID=1</link><pubDate>Tue, 14 Jun 2016 08:43:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab4adac0-0871-4467-8539-02c2bf558fd1</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I see. I need to look into this. What SoftDevice version did you experience this with?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Authorized write request with VLOC_USER</title><link>https://devzone.nordicsemi.com/thread/55051?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2016 14:46:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5f1c07c-4536-440d-8cc1-43ef4cd7f815</guid><dc:creator>blungreen</dc:creator><description>&lt;p&gt;In the past i was getting Hardfault because i was setting update flag with attribute kept in VLOC_USER when doing a reply to auth_read.&lt;/p&gt;
&lt;p&gt;In a ticket reply i&amp;#39;ve been told that you can&amp;#39;t set update flag unless attribute is in VLOCK_STACK, so this is why i did ask.
So, to recap and if understood right, if attribute is in VLOC_USER you MUST NOT set update flag if replying to authorized read, and you MUST set it if replying to authorized write request regardless its location in memory.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Authorized write request with VLOC_USER</title><link>https://devzone.nordicsemi.com/thread/55050?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2016 14:12:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86fed008-16e6-4c65-a2ee-7943ed5b4b9f</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Yes, it is safe. I am not sure what made you ask this question. It could be that the documentation is misinterpreted. When you receive a BLE_GATTS_OP_WRITE_REQ , then the update flag SHALL be set to &amp;#39;1&amp;#39;. Else you will get an error as you did. So please go ahead and set the update flag to &amp;#39;1&amp;#39;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Authorized write request with VLOC_USER</title><link>https://devzone.nordicsemi.com/thread/55049?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2016 13:03:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a94fc712-8b73-411e-8e0d-1c6a57421bc9</guid><dc:creator>blungreen</dc:creator><description>&lt;p&gt;I mean correct, no stack corruption, no umpredictable behaviour&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Authorized write request with VLOC_USER</title><link>https://devzone.nordicsemi.com/thread/55048?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2016 12:20:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93585266-6e45-41b4-9997-c849a7dae2fc</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;What do you mean by is it safe?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>