MCUboot spi-nor external flash

We have developed a custom board with an external SPI flash, which I have tested and it works. 

We want to use OTA over BLE, so we have added MCUboot to the project, which should use the external flash.

We are using SDK toolchain v2.6.1

In the prj.conf file I have enabled SPI external flash and MCU boot using:

CONFIG_FLASH=y
CONFIG_FLASH_MAP=y
CONFIG_SPI=y
CONFIG_SPI_NOR=y

CONFIG_BOOTLOADER_MCUBOOT=y

I have created a folder:

The files are added here.

When I try to build i fails with the error:

zephyr/drivers/flash/libdrivers__flash.a(spi_nor.c.obj):(.rodata.spi_nor_config_0+0x0): undefined reference to `__device_dts_ord_99'

Which I think refers to the spi-nor driver, but I'm stuck here, and cannot figure out why this happens. ?

4760.mcuboot.overlay

6835.mcuboot.conf

Parents Reply
  • Thank you.
    I almost got it working now... :-)
    But when I updated the fw using the NRFconnect App, I cannot update again, it seems that it complaint about there is not enough room for the image.
    But it should erase the external flash, not try to fit another image into that region. ?

    I get the error:
    I: Image index: 0, Swap type: perm
    E: Image upload inspect failed: 9

Children
Related