<?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>cant access internal flash with sysbuild enabled</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/121470/cant-access-internal-flash-with-sysbuild-enabled</link><description>Hi support 
 I am developing code for the application core on the nrf5340 and testing this on an nrf7002dk dev kit. I am using sdk version 3.0.0. The code needs to read from and write to the internal nrf5340 flash. As a start, I have copied the approach</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 15 May 2025 12:11:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/121470/cant-access-internal-flash-with-sysbuild-enabled" /><item><title>RE: cant access internal flash with sysbuild enabled</title><link>https://devzone.nordicsemi.com/thread/535563?ContentTypeID=1</link><pubDate>Thu, 15 May 2025 12:11:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04125ee5-7334-4cdf-ab57-04815a87fa40</guid><dc:creator>th8d</dc:creator><description>&lt;p&gt;That has resolved the issue. My code now works when it is build with sysbuild. Many thanks for your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: cant access internal flash with sysbuild enabled</title><link>https://devzone.nordicsemi.com/thread/535552?ContentTypeID=1</link><pubDate>Thu, 15 May 2025 11:49:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b94e6629-11d9-4012-bbf6-815ec6e2e401</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks for the additional information. So the difference is that the Partition manager will not include the storage partition unless it the partition statically defined (&lt;a id="miniTOC-configuring_static_partitions" class="link  css-ettsdk" href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/scripts/partition_manager/partition_manager.html#configuring_static_partitions"&gt;Configuring static partitions&lt;/a&gt;), or enabled through Kconfig. Reason it gets included in the soc_flash_nrf sample is that&amp;nbsp;CONFIG_SETTINGS=y depends on this partition.&lt;/p&gt;
&lt;p&gt;To create a static storage partition in your project,&amp;nbsp;please create a new file named pm_static.yml in your project folder with the following content:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;storage_partition:
  address: 0xff000
  placement:
    align:
      start: 0x1000
    before:
    - end
  region: flash_primary
  size: 0x1000&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Then do a pristine build to ensure the configuration is picked up by the build system.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: cant access internal flash with sysbuild enabled</title><link>https://devzone.nordicsemi.com/thread/535531?ContentTypeID=1</link><pubDate>Thu, 15 May 2025 11:09:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb98966a-285d-4940-ab00-0cf95e40ecd2</guid><dc:creator>th8d</dc:creator><description>&lt;p&gt;I looked at the build directories created when my code was built with sysbuild and without sysbuild:&lt;/p&gt;
&lt;p&gt;1) code build with sysbuild&lt;br /&gt;No build/&amp;lt;project_name/zephyr/include directory was generated&lt;br /&gt;the file build/partition.yml was created. it included partitions for app, otp, rpmsg_nrf53_sram and sram_primary but there was no storage_partition&lt;/p&gt;
&lt;p&gt;as before the device_is_ready() function failed when I ran the code.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;2) code built without systbuild&lt;br /&gt;The directory build/&amp;lt;project_name/zephyr/include/generated was created but it did not contain a file pm_config.h&lt;br /&gt;no file build/partition.yml was created&lt;/p&gt;
&lt;p&gt;as before the code ran successfully on the dev board.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I have now worked out how to compile the soc_flash_nrf sample code for my nrf7002dk board with sysbuild enabled. When I run this on the board I find that it runs successfully. However, I am not clear why my code is failing. Do you have any suggestions ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: cant access internal flash with sysbuild enabled</title><link>https://devzone.nordicsemi.com/thread/535358?ContentTypeID=1</link><pubDate>Wed, 14 May 2025 13:51:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f24edea-ed0f-4ca7-bd60-83e81a3d878e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I was not able to reproduce this issue with the soc_flash_nrf sample. However, the relevant difference when enabling Sysbuild is likely that the Partition Manager is used to manage the memory layout. In your build folder, please check whether the /&amp;lt;project_name&amp;gt;/zephyr/include/generated/pm_config.h file includes the PM_SETTINGS_STORAGE_DEV or PM_NVS_STORAGE_DEV symbol. You can also check the generated partition file (build/partitions.yml) to check if the storage partition got included.&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>