I've managed to build and flash the project mentioned in this link(devzone.nordicsemi.com/.../459668) to the nrf5340dk with TFM disabled. However, when I attempt to build the project with TFM enabled the project builds, and flashes, but MCUBoot is unable to find a bootable image.
I think I'm missing something obvious but I can't seem to wrap my head around it at the moment. Can someone please point me to the required documentation, or help me understand what I'm missing. I'm assuming I need to update the static partitions etc to build this application with TFM enabled?
To successfully build the project listed in the linked dev zone solution I had to remove the MCUBOOT version config from prj.conf, as well as remove the encryption disable settings in the nrf5340dk_nrf5340_cpuapp.conf file under child_image/mcuboot/boards/. To build the application with non secure firmware, I created duplicates of the config and overlay files with the added _ns label.