I try to integrate mcuboot and BT DFU into my application. I'm using SDK 1.8.0 and DK board nrf52832.
My problem is, that i got this message "Unable to find bootable image" by mcuboot (investigated via debugger, unfortunatelly i'm not able to enable logs in that build).
So probably there is problem with partitions or maybe signature of the app.
This is my mcuboot.conf:
CONFIG_MULTITHREADING=y CONFIG_CONSOLE=n CONFIG_UART_CONSOLE=n CONFIG_CONSOLE_HANDLER=n CONFIG_BOOT_SIGNATURE_TYPE_RSA=y CONFIG_BOOT_SIGNATURE_KEY_FILE="root-rsa-2048.pem"
And this is pm_static.yml:
app: address: 0xc200 region: flash_primary size: 0x31E00 mcuboot: address: 0x0 region: flash_primary size: 0xc000 mcuboot_pad: address: 0xc000 region: flash_primary size: 0x200 mcuboot_primary: address: 0xc000 orig_span: &id001 - mcuboot_pad - app region: flash_primary size: 0x32000 span: *id001 mcuboot_primary_app: address: 0xc200 orig_span: &id002 - app region: flash_primary size: 0x3E000 span: *id002 mcuboot_secondary: address: 0x3E000 region: flash_primary size: 0x32000 scratch_storage: address: 0x70000 region: flash_primary size: 0xa000 settings_storage: address: 0x7a000 region: flash_primary size: 0x6000
And also flash configuration from my .dts:
&flash0 { partitions { compatible = "fixed-partitions"; #address-cells = <1>; #size-cells = <1>; boot_partition: partition@0 { label = "mcuboot"; reg = <0x00000000 0xc000>; }; slot0_partition: partition@c000 { label = "image-0"; reg = <0x0000C000 0x32000>; }; slot1_partition: partition@3e000 { label = "image-1"; reg = <0x0003E000 0x32000>; }; scratch_partition: partition@70000 { label = "image-scratch"; reg = <0x00070000 0xa000>; }; storage_partition: partition@7a000 { label = "storage"; reg = <0x0007a000 0x00006000>; }; }; };
I'm building and flashing using the simplest way:
west build -b <board_name>
west flash (merged.hex is being flashed)
Before some changes (not important here) everything was working fine, and i was even able to upload images through bluetooth with positive answer. But after few rebuilds it stopped working (probably it was pure luck - this is why i suspect that something may be wrong with partition table).