<?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>Trouble trying to write data to the NRF52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/123903/trouble-trying-to-write-data-to-the-nrf52840</link><description>I am programming firmware for the NRF52840-DONGLE. I have been able to get all the features I&amp;#39;m developing working, except I am now just trying to store a simple 10 digit number to the device flash but I am unable to get it working no matter what I try</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 27 Aug 2025 14:45:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/123903/trouble-trying-to-write-data-to-the-nrf52840" /><item><title>RE: Trouble trying to write data to the NRF52840</title><link>https://devzone.nordicsemi.com/thread/546957?ContentTypeID=1</link><pubDate>Wed, 27 Aug 2025 14:45:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a927778-fdde-489c-8742-48721498f976</guid><dc:creator>coolerkid</dc:creator><description>&lt;p&gt;Thank you so much, that worked! I had been going back and fourth with AI for days on this and it couldn&amp;#39;t figure this out, despite being nearly perfect on everything else.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble trying to write data to the NRF52840</title><link>https://devzone.nordicsemi.com/thread/546609?ContentTypeID=1</link><pubDate>Mon, 25 Aug 2025 11:20:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1334db8-6e1d-4359-a320-51b6c49dd554</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The bootloader pre-programmed on the dongle occupies the flash region from address 0xE0000 to 0x100000 and has write protection enabled. If the application attempts to write to this region, a fault exception will be raised. To prevent this, please try to reserve the flash area by including the nrf52840dongle_nrf52840_pm_static.yml file in your build as I&amp;nbsp;did in this post:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/118594/nrf52840-dongle-ble-peripheral_uart-example-sdk-migration-from-2-6-0-to-2-9-0/521262"&gt;RE: nRF52840 dongle, BLE peripheral_uart example, SDK migration from 2.6.0 to 2.9.0&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Relevant changes:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="diff"&gt;diff --git a/boards/nrf52840dongle_nrf52840_pm_static.yml b/boards/nrf52840dongle_nrf52840_pm_static.yml
new file mode 100644
index 0000000..ae8446e
--- /dev/null
+++ b/boards/nrf52840dongle_nrf52840_pm_static.yml
@@ -0,0 +1,10 @@
+nrf5_bootloader:
+  address: 0xE0000
+  end_address: 0x100000
+  placement:
+    align:
+      start: 0x1000
+    before:
+    - end
+  region: flash_primary
+  size: 0x20000
\ No newline at end of file
diff --git a/sample.yaml b/sample.yaml
index dbf218c..4469dba 100644
--- a/sample.yaml
+++ b/sample.yaml
@@ -10,6 +10,7 @@ tests:
       thingy53/nrf5340/cpuapp/ns nrf21540dk/nrf52840 nrf54l15dk/nrf54l05/cpuapp
       nrf54l15dk/nrf54l10/cpuapp nrf54l15dk/nrf54l15/cpuapp
       nrf54h20dk/nrf54h20/cpuapp nrf54h20dk/nrf54h20/cpurad
+      nrf52840dongle/nrf52840
     integration_platforms:
       - nrf52dk/nrf52832
       - nrf52833dk/nrf52833
diff --git a/sysbuild.cmake b/sysbuild.cmake
new file mode 100644
index 0000000..aa2619b
--- /dev/null
+++ b/sysbuild.cmake
@@ -0,0 +1,3 @@
+if(SB_CONFIG_BOARD_NRF52840DONGLE)
+  set(PM_STATIC_YML_FILE ${CMAKE_CURRENT_LIST_DIR}/boards/nrf52840dongle_nrf52840_pm_static.yml CACHE INTERNAL &amp;quot;&amp;quot;)
+endif()&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>