<?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>need clarification of pstorage</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21973/need-clarification-of-pstorage</link><description>sd_flash_write(((uint32_t *)storage_addr),
(uint32_t *)p_data_addr,
size / sizeof(uint32_t)); 
 why here size value is divided by sizeof(uint32_t). 
 what is byte value of uint32_t.is it 4 byte?. i searched in stdint.h file there has use int only</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 12 May 2017 10:37:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21973/need-clarification-of-pstorage" /><item><title>RE: need clarification of pstorage</title><link>https://devzone.nordicsemi.com/thread/86220?ContentTypeID=1</link><pubDate>Fri, 12 May 2017 10:37:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37fbace7-ca56-4cfe-9f96-9a14bcadc719</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@satheesh: Please read &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v0.9.0/group___n_r_f___s_o_c___f_u_n_c_t_i_o_n_s.html?resultof=%22%73%64%5f%66%6c%61%73%68%5f%77%72%69%74%65%22%20#ga8b49f2e72e97291aecc18ce396956eed"&gt;the documentation&lt;/a&gt;. It clearly stated that the size provided as input for the function is: &amp;quot;Number of 32-bit words to write. Maximum size is 256 32bit words for nRF51 and 1024 for nRF52.&amp;quot;&lt;/p&gt;
&lt;p&gt;So if you provide 50 that mean it&amp;#39;s 50 words = 200 bytes&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: need clarification of pstorage</title><link>https://devzone.nordicsemi.com/thread/86219?ContentTypeID=1</link><pubDate>Thu, 11 May 2017 09:39:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c237691-fe6d-4529-bed5-fe945d168174</guid><dc:creator>emdi</dc:creator><description>&lt;p&gt;The parameter to sd_flash_write() is expressed in number of 4 byte words.
The paramter &amp;#39;size&amp;#39; is divided by the size of a word because it is expressed in bytes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: need clarification of pstorage</title><link>https://devzone.nordicsemi.com/thread/86218?ContentTypeID=1</link><pubDate>Thu, 11 May 2017 09:37:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f31c768-30cb-4014-afe8-15bb60d8b25b</guid><dc:creator>Satheeshkumar</dc:creator><description>&lt;p&gt;uint32_t range is 4 byte. i need to know why &amp;quot;size / sizeof(uint32_t)&amp;quot; it need in the write function. if i gave 50 means. the will write 50 byte data into the memory right? then why need to divide?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: need clarification of pstorage</title><link>https://devzone.nordicsemi.com/thread/86217?ContentTypeID=1</link><pubDate>Thu, 11 May 2017 09:36:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:307cffaa-b0c3-4553-8791-25244a4f3f4b</guid><dc:creator>Moritz</dc:creator><description>&lt;p&gt;As for the size i think this is because size has to be: Number of 32-bit words to write. Maximum size is 256 32-bit words for nRF51 and 1024 for nRF52. &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v5.0.0/group___n_r_f___s_o_c___f_u_n_c_t_i_o_n_s.html?cp=2_3_0_1_0_2_7_2_9#ga8b49f2e72e97291aecc18ce396956eed"&gt;infocenter.nordicsemi.com/.../group___n_r_f___s_o_c___f_u_n_c_t_i_o_n_s.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You get this number by dividing the size by the size of an uint32_t (32bit)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>