<?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>Running NVS sample on a custom board crashes</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119850/running-nvs-sample-on-a-custom-board-crashes</link><description>Hello, 
 
 I have an nRF52840 based custom board (myboard, NCS2.70) 
 its partitions node closely follows the nRF52840DK dts file: 
 
 both have &amp;amp;flash0 in the /chosen group 
 
 zephyr,flash = &amp;amp; flash0 ; 
 
 
 However when creating an nRF52840DK build</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 30 Jun 2025 16:35:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119850/running-nvs-sample-on-a-custom-board-crashes" /><item><title>RE: Running NVS sample on a custom board crashes</title><link>https://devzone.nordicsemi.com/thread/540922?ContentTypeID=1</link><pubDate>Mon, 30 Jun 2025 16:35:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3871c74-4e7e-4ca0-a01f-d3a31de204aa</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sigurd is out of the office, so I take this case.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you&amp;nbsp;run&lt;span&gt;&amp;nbsp;nvs sample code on your board? Does it work as expected?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Could you refer to the&amp;nbsp;NVS sample to assign the address?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;br /&gt;Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running NVS sample on a custom board crashes</title><link>https://devzone.nordicsemi.com/thread/538880?ContentTypeID=1</link><pubDate>Wed, 11 Jun 2025 16:01:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fed4613e-1f0a-45b8-b93b-8daa636f86c9</guid><dc:creator>eyalasko</dc:creator><description>&lt;p&gt;update -&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I copied the nvs sample code into my application.&lt;br /&gt;Strangely, nvs_mount() does not crash when running in my application context.&lt;/p&gt;
&lt;p&gt;However,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I do get some nvs initialization errors, saying &amp;#39;invalid_address&amp;#39;, which is out of the partition&amp;#39;s range defined in my board&amp;#39;s *.dts file...&lt;br /&gt;&lt;br /&gt;What is going on in here ???&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1749657680568v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running NVS sample on a custom board crashes</title><link>https://devzone.nordicsemi.com/thread/538569?ContentTypeID=1</link><pubDate>Mon, 09 Jun 2025 17:36:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36e83438-c4ba-4912-8e6e-021bccbab233</guid><dc:creator>eyalasko</dc:creator><description>&lt;p&gt;...been away for a while, surprisingly the problem was not solved ;)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Anyway,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve migrated to 3.0.0, still the same problem.&lt;/p&gt;
&lt;p&gt;did recover (from within &amp;#39;connected devices&amp;#39; pane in NRF connect VS code addon, same problem.&lt;br /&gt;&lt;br /&gt;However, there is ** MPU FAULT *** Data Access Violation message on the RTT terminal window (when single stepping nvs_mount() line)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;chatgpt and co. hint that it has something to do with the partitions...&lt;/p&gt;
&lt;p&gt;any advise will be greatly appreciated, as this is really frustrating..&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1749479472386v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running NVS sample on a custom board crashes</title><link>https://devzone.nordicsemi.com/thread/528928?ContentTypeID=1</link><pubDate>Tue, 25 Mar 2025 20:19:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6bd0672a-3657-48ce-83b9-e64f781e186f</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t see anything wrong in your config file.&lt;/p&gt;
[quote user=""]while &amp;#39;myboard&amp;#39; build crashes when mounting.[/quote]
&lt;p&gt;Do you have any more information about the crash, maybe from the log? What kind of crash is it?&lt;/p&gt;
&lt;p&gt;Also, could you try doing nrfjprog --recover, and then flash the sample again, and see if the issue&amp;nbsp;persists?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running NVS sample on a custom board crashes</title><link>https://devzone.nordicsemi.com/thread/527898?ContentTypeID=1</link><pubDate>Tue, 18 Mar 2025 16:24:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b977989-0376-4579-a673-0dd06d655a7d</guid><dc:creator>eyalasko</dc:creator><description>&lt;p&gt;Hey, &lt;br /&gt;&lt;br /&gt;Attached is build/zephyr/.config (I assume this is the one you meant).&lt;br /&gt;(had to rename it to config.txt due to some upload constraint)&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7585.config.txt"&gt;devzone.nordicsemi.com/.../7585.config.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running NVS sample on a custom board crashes</title><link>https://devzone.nordicsemi.com/thread/527876?ContentTypeID=1</link><pubDate>Tue, 18 Mar 2025 14:39:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c704616-5fcf-4c34-b775-151ed7f0c045</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Thanks!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It seems pretty much identical to the one built for the DK.&lt;/p&gt;
&lt;p&gt;Do you have the compiled .config file as well?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running NVS sample on a custom board crashes</title><link>https://devzone.nordicsemi.com/thread/527704?ContentTypeID=1</link><pubDate>Mon, 17 Mar 2025 15:29:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:171c4cae-19cf-4916-a56f-0bbb5b772e61</guid><dc:creator>eyalasko</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/sigurdon"&gt;Sigurd&lt;/a&gt; thanks for your prompt response.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What should I look for in zephyr.dts...? (attached)&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2063.zephyr.dts"&gt;devzone.nordicsemi.com/.../2063.zephyr.dts&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running NVS sample on a custom board crashes</title><link>https://devzone.nordicsemi.com/thread/527643?ContentTypeID=1</link><pubDate>Mon, 17 Mar 2025 13:34:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:846c24e8-702b-4061-8ded-2f6ad00ff46f</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;I suggest checking the compiled zephyr.dts , and see if there are any differences there that could explain it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>