<?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>Peer Manager fail to save a bonding data in SDK11 and SDK12</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16414/peer-manager-fail-to-save-a-bonding-data-in-sdk11-and-sdk12</link><description>Noticed this for gcc with -0s optimization an application fail to save a bonding data. It is caused by byte alignment of 
 static uint8_t buffer_memory[(n_blocks) * (block_size)]; 
 
 in the macro PM_BUFFER_INIT in (pm_buffer.h).</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Sep 2016 10:51:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16414/peer-manager-fail-to-save-a-bonding-data-in-sdk11-and-sdk12" /><item><title>RE: Peer Manager fail to save a bonding data in SDK11 and SDK12</title><link>https://devzone.nordicsemi.com/thread/62830?ContentTypeID=1</link><pubDate>Wed, 14 Sep 2016 10:51:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee767fc3-3c12-4121-8e81-c4c7b83355aa</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Need to force it to 4-bytes word alignment like below in macro &lt;code&gt;PM_BUFFER_INIT-&amp;gt;pm_buffer.h&lt;/code&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; __ALIGN(sizeof(uint32_t)) static uint8_t buffer_memory[(n_blocks) * (block_size)]; 
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>