cant access internal flash with sysbuild enabled

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 used in the soc_flash_nrf sample. This accesses the storage_partition. However I find that this code only works if sysbuild is disabled in the build configuration. If sysbuild is enabled, the device_is_ready() function fails when i run the code on the dev kit.

Is there a way that I can access the internal flash with code that is build with sysbuild enabled ?

Parents
  • Hello,

    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 /<project_name>/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.

    Best regards,

    Vidar

Reply
  • Hello,

    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 /<project_name>/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.

    Best regards,

    Vidar

Children
No Data
Related