<?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>IAR7.7compile52832ERRS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21701/iar7-7compile52832errs</link><description>I USE IAR7.7 AND v11.0 
 THERE ARE ERRS. 
 FS_REGISTER_CFG(fs_config_t fs_config) =
	{
 .callback = fs_evt_handler, // Function for event callbacks.
 .num_pages = NUM_PAGES, // Number of physical flash pages required.
 .priority = 0xFE // Priority</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 15 Sep 2017 03:58:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21701/iar7-7compile52832errs" /><item><title>RE: IAR7.7compile52832ERRS</title><link>https://devzone.nordicsemi.com/thread/85249?ContentTypeID=1</link><pubDate>Fri, 15 Sep 2017 03:58:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab0ef884-a48b-4df0-b978-224bd22a88e2</guid><dc:creator>justahu</dc:creator><description>&lt;p&gt;3Q,,,,,,I GET IT&lt;/p&gt;
&lt;p&gt;FS OPR code
///////////////////
SDK11.0
static void fs_evt_handler(fs_evt_t const * const evt, fs_ret_t result)
{
if (result != FS_SUCCESS)
{
}
else
{
fs_callback_flag = 0;
}
}
FS_REGISTER_CFG(fs_config_t fs_config) =
{
.callback = fs_evt_handler,     // Function for event callbacks.
.num_pages = NUM_PAGES,         // Number of physical flash pages required.
.priority = 0xFE                // Priority for flash usage.
};
static void fstorage_write(uint32_t &lt;em&gt;pBuffer,uint16_t wlength)
{
uint8_t i = 0;
/&lt;/em&gt; 注册存储使用 &lt;em&gt;/	
/&lt;/em&gt; 初始化存储模块 */
fs_ret_t ret;		
ret = fs_init();
if (ret != FS_SUCCESS)
{
}&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;flash_address = (uint32_t)fs_config.p_start_addr;/* get address */
	
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;/* 擦 &lt;em&gt;/
fs_callback_flag = 1;
ret = fs_erase(&amp;amp;fs_config, fs_config.p_start_addr, 1);/&lt;/em&gt; 擦除一页 &lt;em&gt;/
if (ret != FS_SUCCESS)
{
}
while (fs_callback_flag == 1) {}
/&lt;/em&gt; 写 */&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;fs_callback_flag = 1;/* 实际的写入地址 addr=0x0007C000 */
ret = fs_store(&amp;amp;fs_config, fs_config.p_start_addr, &amp;amp;pBuffer[0], wlength);//
if (ret != FS_SUCCESS)
{
}
while (fs_callback_flag == 1) {}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;/* 读 */
for (i = 0; i &amp;lt; wlength; i++)
{
flash_rdata[i] = *(fs_config.p_start_addr + i);
}
updata_para_flag|=0x01;
}
///////////////////&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: IAR7.7compile52832ERRS</title><link>https://devzone.nordicsemi.com/thread/85248?ContentTypeID=1</link><pubDate>Tue, 23 May 2017 09:08:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33a84bf1-600e-4fc3-8b43-0905c3aff155</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Move the &lt;code&gt;FS_REGISTER_CFG(..)&lt;/code&gt; above the &lt;code&gt;fstorage_test()&lt;/code&gt; function:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;FS_REGISTER_CFG(fs_config_t fs_config) =
{
          .callback  = fs_evt_handler, // Function for event callbacks.
                .num_pages = NUM_PAGES,      // Number of physical flash pages required.
                .priority  = 0xFE            // Priority for flash usage.
};


static void fstorage_test(void)
{
		static uint32_t data;
 .
 .
	
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Also replace &lt;code&gt;app_uart.c&lt;/code&gt; with &lt;code&gt;app_uart_fifo.c&lt;/code&gt; in your project. If you use &lt;code&gt;app_uart.c&lt;/code&gt; printf will only print out the first byte (known bug with SDK 11). By adding &lt;code&gt;app_uart_fifo.c&lt;/code&gt; you will also need to add &lt;code&gt;app_fifo.c&lt;/code&gt; and add the path: Project-&amp;gt;Options-&amp;gt; C/C++ Compiler -&amp;gt; Preprocessor tab, and add &lt;code&gt;$PROJ_DIR$\..\..\..\..\..\..\components\libraries\fifo&lt;/code&gt; in the include directories list.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: IAR7.7compile52832ERRS</title><link>https://devzone.nordicsemi.com/thread/85247?ContentTypeID=1</link><pubDate>Fri, 19 May 2017 11:03:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:618c91c9-589e-45bb-85ba-027b02b77804</guid><dc:creator>Zetem</dc:creator><description>&lt;p&gt;HI, I don&amp;#39;t know justahu&amp;#39;s case but I got same errors with github nrf5-flash-storage-examples (fstorage_example_simple). The link to github example was here: &lt;a href="https://devzone.nordicsemi.com/question/126413/how-to-save-data-on-flash-storage/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt; ....and the solution is?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: IAR7.7compile52832ERRS</title><link>https://devzone.nordicsemi.com/thread/85246?ContentTypeID=1</link><pubDate>Fri, 28 Apr 2017 09:25:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3e39ff7-d70e-4eb0-bdc2-0d28847c11a4</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;What SDK example are you testing?
Where is the &lt;code&gt;&amp;quot;#define NRF_SECTION_VARS_ADD(section_name, type_def) \ __root type_def @ #section_name //__root type_def @ #section_name&amp;quot;&lt;/code&gt; ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>