<?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>settings_subsys_init() causes a bus fault on nrf52840-Dongle</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/85277/settings_subsys_init-causes-a-bus-fault-on-nrf52840-dongle</link><description>I am trying to adapt the zigbee light_bulb sample to run on nrf52840-Dongle which does not have a QSPI flash chip. I see that it crashes unexpectedly during settings_subsys_init(): 
 I: nRF5 802154 radio initialized *** Booting Zephyr OS build v2.7.0</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 01 Mar 2022 11:09:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/85277/settings_subsys_init-causes-a-bus-fault-on-nrf52840-dongle" /><item><title>RE: settings_subsys_init() causes a bus fault on nrf52840-Dongle</title><link>https://devzone.nordicsemi.com/thread/355507?ContentTypeID=1</link><pubDate>Tue, 01 Mar 2022 11:09:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14d1cd96-fddb-47ce-8260-9fb93bb08846</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]Do I need to manually alter the way that the persistent Zigbee pairing data is stored in flash?[/quote]
&lt;p&gt;Yes, this is correct. The bootloader on the dongle starts at address 0xE0000 and occupies the rest of the flash, but from&amp;nbsp;partitions.yml you see that the partitions for zboss_nvram and&amp;nbsp;zboss_product_config start at&amp;nbsp;0xF5000 and&amp;nbsp;0xFD000.&lt;/p&gt;
&lt;p&gt;To fix this all you need to do is to create&amp;nbsp;static partitions, as I have done in&amp;nbsp;my own project here: &lt;a href="https://github.com/martelmy/NCS_examples/tree/main/zigbee/light_bulb_dongle"&gt;light_bulb_dongle&lt;/a&gt;. This is done by creating a file called&amp;nbsp;pm_static_nrf52840dongle_nrf52840.yml&amp;nbsp;with the following:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;EMPTY_0:
  address: 0x0e0000
  end_address: 0x100000
  region: flash_primary
  size: 0x20000
# SRAM reserved to be used by the nRF5 Bootloader
EMPTY_1:
  address: 0x20000000
  end_address: 0x20000400
  region: sram_primary
  size: 0x0400
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This file should be added in your project folder, so in the same location as CMakeLists.txt and prj.conf. This way, when you build the project for the dongle the file will be automatically added in the build.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;just tested using this in the light bulb sample myself, and with it my dongle was able to start up and join a Zigbee network.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>