Hi,
I have some troubles with partitioning while using thingy91_nrf9160_ns. I have some FLASH overflow when compiling it with west using 1.7.0 library, while everything fits when I use 1.6.0. After some investigation it seemed that it turned MCUBoot on and split memory into half - for the primary and secondary partition.
To provide some minimal working example, I tried it also on your code: samples/nrf9160/modem_shell
where it is said quite explicitly in prj.conf
file:
# BOOTLOADER_MCUBOOT reduces usable flash size by half so it's disabled by default # This means application FOTA is disabled. Modem FOTA works without these. CONFIG_BOOTLOADER_MCUBOOT=n CONFIG_IMG_MANAGER=n CONFIG_IMG_ERASE_PROGRESSIVELY=n
but then these configs are enabled again in
boards/thingy91_nrf9160_ns.conf
, so I removed these configs:
# For APP FOTA #CONFIG_BOOTLOADER_MCUBOOT=y #CONFIG_IMG_MANAGER=y #CONFIG_IMG_ERASE_PROGRESSIVELY=y
And building with this settings I got again all this MCUBoot partitions:
+-------------------------------------------------+ | 0x0: mcuboot (0xc000 - 48kB) | +---0xc000: mcuboot_primary (0x69000 - 420kB)-----+ | 0xc000: mcuboot_pad (0x200 - 512B) | +---0xc200: mcuboot_primary_app (0x68e00 - 419kB)-+ | 0xc200: spm (0xc000 - 48kB) | | 0x18200: app (0x5ce00 - 371kB) | +-------------------------------------------------+ | 0x75000: mcuboot_secondary (0x69000 - 420kB) | | 0xde000: mcuboot_scratch (0x1e000 - 120kB) | | 0xfc000: EMPTY_0 (0x2000 - 8kB) | | 0xfe000: settings_storage (0x2000 - 8kB) | +-------------------------------------------------+
I tried to define pm_static.yml in my project dir and point some file with PM_STATIC_YML_FILE, but it didn't work for me at all.
What finally worked was simultanously setting CONFIG_BOOTLOADER_MCUBOOT=n and deleting "zephyrproject/nrf/boards/arm/thingy91_nrf9160/pm_static.yml" file. It looks that the mentioned file shadows in some way static partitions defined in my project and is used by PM to do the partitioning by default.
Deleting some file from the SDK before every build is of course quite ugly, so I would like to know if there is any nicer way to get back to the old partitioning with nRF connect 1.7.0?
Regards,
Michał