Hi,
I have a working application where at some point, I erase some part of the flash with following code :
#define FLASH_STORAGE_PARTITION_DEVICE FIXED_PARTITION_DEVICE(storage_partition) static const struct device *sFlashDev = FLASH_STORAGE_PARTITION_DEVICE; [...] flash_erase(sFlashDev, (u32)aPageAddr + (i * FLASH_PAGE_SIZE), FLASH_PAGE_SIZE).
On nRF52 aPageAddr is:
(not sure why other variables are optimized out while I have -Og flag set and CMake build set to 'Debug')
On nRR5340 :
On nRF52 it works fine, but on nRF5340, sFlashDev is process as 0x0, which is similar to Problems with accessing storage_partition in an MCUBoot-enabled application under Zephyr - Nordic Q&A - Nordic DevZone - Nordic DevZone (nordicsemi.com)
That make sense because as I use CONFIG_BT, I have 2 cores and partition manager handles the process. So I added a pm_static.yml :
But it doesn't solve the issue. What am I missing? Thank you for your help