<?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>Flash can&amp;#39;t not erase and write when a table in code</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54124/flash-can-t-not-erase-and-write-when-a-table-in-code</link><description>hi 
 i use the example flashwriting in nRF5_SDK_15.3.0_59ac345, i set a table at 0xfd000: 
 // ProgramSection alignment=&amp;quot;4&amp;quot; keep=&amp;quot;Yes&amp;quot; load=&amp;quot;yes&amp;quot; name=&amp;quot;.tabletest&amp;quot; address_symbol=&amp;quot;__tabletest_start&amp;quot; end_symbol=&amp;quot;__tabletest_end&amp;quot; start=&amp;quot;0x000fd000&amp;quot; size</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 13 Nov 2019 06:51:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54124/flash-can-t-not-erase-and-write-when-a-table-in-code" /><item><title>RE: Flash can't not erase and write when a table in code</title><link>https://devzone.nordicsemi.com/thread/219803?ContentTypeID=1</link><pubDate>Wed, 13 Nov 2019 06:51:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39ef798a-2a7e-44a9-821e-8177dd6006d7</guid><dc:creator>gandyhuang</dc:creator><description>&lt;p&gt;HI,&lt;/p&gt;
&lt;p&gt;I had used NRF_LOG_INFO to print out the data, and the result was right. I think it&amp;#39;s caused by the&amp;nbsp;SEGGER Embedded Studio. Thanks you very much!&lt;/p&gt;
&lt;pre&gt;    nrf_nvmc_write_word((uint32_t) &amp;amp;testtable,0);             //wirte Ok
    memcpy(&amp;amp;a,(const uint8_t *) 0xfd000,4);
    NRF_LOG_INFO(&amp;quot;\r\n 1:%d&amp;quot;,a);
    UNUSED_RETURN_VALUE(NRF_LOG_PROCESS());

    nrf_nvmc_page_erase((uint32_t) &amp;amp;testtable);               //erase OK
    
    memcpy(&amp;amp;b,(const uint8_t *) 0xfd000,4);
    NRF_LOG_INFO(&amp;quot;\r\n 2:%d&amp;quot;,b);
    UNUSED_RETURN_VALUE(NRF_LOG_PROCESS());&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash can't not erase and write when a table in code</title><link>https://devzone.nordicsemi.com/thread/219507?ContentTypeID=1</link><pubDate>Mon, 11 Nov 2019 14:24:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5273057f-407a-4e99-80be-340b85f2d70c</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t see anything wrong right off the bat with your main file. Have you made any other changes than adding the .testtable and the write/erase commands to the main.c file? Please double check that you&amp;#39;ve configured the flash_placement.xml file correctly as well. This is very well described by a SEGGER employee in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/28589/placing-data-at-a-specific-memory-address-with-segger-embedded-studio"&gt;this case&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash can't not erase and write when a table in code</title><link>https://devzone.nordicsemi.com/thread/219420?ContentTypeID=1</link><pubDate>Mon, 11 Nov 2019 09:54:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc1c4e2c-27e7-4e46-ba9b-ea93cef2c745</guid><dc:creator>gandyhuang</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m sorry, the description is not clear：I mean is there any other registers like ACL-Access Control Lists,Because I had checked NRF_ACL registers is set to 0x00, not block flash read or write; but flash page in&amp;nbsp;&lt;span&gt;0xfd000 is still can not be&amp;nbsp;&lt;/span&gt;&lt;span&gt;write and erased when&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span&gt;load=&amp;quot;yes&amp;quot;(see the flash_placement.xml)&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;Can you help to check my code in attachments is&amp;nbsp;correct？&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash can't not erase and write when a table in code</title><link>https://devzone.nordicsemi.com/thread/219402?ContentTypeID=1</link><pubDate>Mon, 11 Nov 2019 09:14:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0503c3a2-d2ee-45c3-bd4a-732d2bbc2fb2</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Sorry about the delayed reply, but I was out of the office last Friday.&lt;/p&gt;
[quote user="gandyhuang"]I had checked the ACL register ,but all of ALL register is 0, Is there any other register do protect&amp;nbsp; the code size ?[/quote]
&lt;p&gt;&amp;nbsp;I&amp;#39;m sorry, but can you try to specify what it is you want to achieve with your project, as I&amp;#39;m having some trouble understanding what exactly you want to do. I need some more information regarding the goal of your project in order to help you.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash can't not erase and write when a table in code</title><link>https://devzone.nordicsemi.com/thread/219088?ContentTypeID=1</link><pubDate>Thu, 07 Nov 2019 14:13:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72db9b6e-b1ad-458f-be01-1164f12fac5c</guid><dc:creator>gandyhuang</dc:creator><description>&lt;p&gt;HI Simonr,&lt;/p&gt;
&lt;p&gt;I tested it in nrf52840 , your can find the code and some picture in attached file;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have one project, there are some config data tables, and the data can be modified by app, but when i try to modify the data, i found that the the data had no any change, so i try test in flashwrite sample , but it still the same result.&amp;nbsp; I had checked the ACL register ,but all of ALL register is 0, Is there any other register do protect&amp;nbsp; the code size ?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/flashwrite.zip"&gt;devzone.nordicsemi.com/.../flashwrite.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash can't not erase and write when a table in code</title><link>https://devzone.nordicsemi.com/thread/219064?ContentTypeID=1</link><pubDate>Thu, 07 Nov 2019 12:51:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18cc832b-af62-4b7f-bf66-3701d636d53e</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;There are a few details I need from you.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;What device are you seeing this issue on? nRF52832 or nRF52840?&lt;/li&gt;
&lt;li&gt;How do you see that the write and erase fail? Is there any error code that might help us see what&amp;#39;s causing this?&lt;/li&gt;
&lt;li&gt;Can you try to explain what exactly you want to achieve with this?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;It seems to me like using the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.3.0%2Ffstorage_example.html&amp;amp;cp=5_5_0_4_6_9"&gt;fstorage example&lt;/a&gt; instead might be easier, as that is a more &amp;quot;user-friendly&amp;quot; example.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>