<?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 write issues with nrfx on nRF5340</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76734/flash-write-issues-with-nrfx-on-nrf5340</link><description>Hello DevZone, 
 I am developing on nRF5340-DK v0.11.0, with nrfx v2.2.0 running with mbed Cordio, compiled with GNU make 4.3. The end goal is to make a Bootloader for the Net Core inspired by the one in the netboot example from nRF Connect. 
 Reading</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 29 Jun 2021 07:01:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76734/flash-write-issues-with-nrfx-on-nrf5340" /><item><title>RE: Flash write issues with nrfx on nRF5340</title><link>https://devzone.nordicsemi.com/thread/317604?ContentTypeID=1</link><pubDate>Tue, 29 Jun 2021 07:01:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35230b3c-6090-42a9-b299-136a6d983a7a</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi Torben,&lt;/p&gt;
&lt;p&gt;Sorry for the late reply.&lt;/p&gt;
[quote user=""]I have tried using both words_write and bytes_write, all variables looks correct up till the crash when debugging, so seemingly no rouge addresses.[/quote]
&lt;p&gt;Which hardfault are you getting when doing this?&lt;/p&gt;
&lt;p&gt;You may need to configure the SPU to allow for data write to the region, see chapter 7.32.2 in the nRF5340 PS.&lt;/p&gt;
[quote user=""]Likewise i would imagine the Net Core should be able to write to the App Cores flash if given permission through the SPU (but not by default).[/quote]
&lt;p&gt;In theory yes, the net core can have access to the app core NVMC (if SPU is configured for this), the net core then needs to write to the app core NVMC instance and enable writing. But this kind of implementation haven&amp;#39;t been tested by us.&lt;/p&gt;
[quote user=""]Can&amp;nbsp;someone point me towards a barebone example where the nrfx nvmc driver is used on the nRF5340, without Zephyr or other SDK dependencies, so i can se how&amp;nbsp;securing is&amp;nbsp;initialized and the driver is used?[/quote]
&lt;p&gt;&amp;nbsp;All the flash write samples we have are using Zephyr.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>