<?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>Zephyr NVS sample on nrf52840dk produced hardfault</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115322/zephyr-nvs-sample-on-nrf52840dk-produced-hardfault</link><description>I build the Zephyr NVS example that came with nRF Connect SDK version 2.7.0. 
 When using the nRF52840-DK and in my build config selected nRF52840 DK nRF52840, the application will crash. I get an hardfault when using the Ozone debugger. The hardfault</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 14 Oct 2024 07:24:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115322/zephyr-nvs-sample-on-nrf52840dk-produced-hardfault" /><item><title>RE: Zephyr NVS sample on nrf52840dk produced hardfault</title><link>https://devzone.nordicsemi.com/thread/506015?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2024 07:24:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2638cba9-35a4-495b-96da-d59457831345</guid><dc:creator>BvdP4Celsius</dc:creator><description>&lt;p&gt;Thanks Hakon,&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MAIN_STACK_SIZE&lt;/span&gt;&lt;span&gt;=2048 &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;seems to work!&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;regards,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Bob&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr NVS sample on nrf52840dk produced hardfault</title><link>https://devzone.nordicsemi.com/thread/505463?ContentTypeID=1</link><pubDate>Wed, 09 Oct 2024 07:18:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac779ebf-3707-4f0e-9865-68943ca29ae5</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Thank you for sharing these details, Bob.&lt;/p&gt;
&lt;p&gt;It seems that your main stack size is going out-of-bounds. This is usually due to the stack size that is given to the main thread.&lt;/p&gt;
&lt;p&gt;Could you try to adjust CONFIG_MAIN_STACK_SIZE to a higher value and see if this assert disappears?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr NVS sample on nrf52840dk produced hardfault</title><link>https://devzone.nordicsemi.com/thread/505455?ContentTypeID=1</link><pubDate>Wed, 09 Oct 2024 06:34:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97142548-6176-4c86-9f9c-c645ba1fc174</guid><dc:creator>BvdP4Celsius</dc:creator><description>&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/pastedimage1728455520159v1.png" alt=" " /&gt;&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/pastedimage1728455630360v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;p&gt;Regards, Bob&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr NVS sample on nrf52840dk produced hardfault</title><link>https://devzone.nordicsemi.com/thread/505343?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2024 12:26:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d11acb9-f3ee-454d-85f2-377b939e4e88</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you share the stack trace and possibly the debug assert message from RTT/serial terminal?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>