DFU over UART from the bootloader

I'm looking for an example where the firmware is updated using "DFU over UART from the bootloader" compatible with nrf5340

In my application there is no external SPI memory and the firmware is over 430KB of flash (BLE + USB CDC driver included), the application uses BLE so I think that I need both cores to be updated and I don't think I have enough memory to have 2 slots. I'm using the example of Dev Academy Exercise 8 lesson 1 solution but when I try to modify it like for example 

CONFIG_SINGLE_APPLICATION_SLOT=y

CONFIG_IMG_MANAGER=n

CONFIG_BOOT_ERASE_PROGRESSIVELY=y

I get errors "PM_MCUBOOT_SECONDARY_ID undeclared" or if I find a combination that compile than the command "mcumgr -c testDK image list" return error=8 and if I try to upload an image it get stuck

any suggestion ?

Related