I am using nrf9160 custom board with an external flash memory mx25l6433f. I first tested the external flash with the example 'sdk-zephyr/samples/drivers/spi_flash_at45' and for it to work was added an '.overlay'
and on my 'proj.conf' added
Compiled and tested. The external flash is working.
After this i tried to implement 'MCUBOOT secondary on external flash', after reading several posts i ended with this configurations:
nrf9160dk_nrf9160_ns.overlay
prj.conf
mcuboot.conf
In the end, after applying the changes my flash space doubled the amount and on 'build\build_nrf9160dk_nrf9160_ns\partitions.yml' we can see the external flash and mcuboot secondary on external flash
Then i programmed it to nrf9160 and it doesn't boot.
In one of the attempts to put it to work i removed the line 'CONFIG_PM_PARTITION_SIZE_MCUBOOT_SECONDARY=0xe0000' from mcuboot.conf and programmed it to nrf9160, this time it booted and started the program, but when i tried to update the firmware through DFU it says there is not enough space to store the update
Is this a bug, or did I simply went off track somewhere? Thanks.