I'm using the nRF Connect SDK v2.5.1
I copied the the sample "nrf/samples/bluetooth/peripheral_lbs" from the 2.5.1 SDK and created a build configuration using the board "nrf5340dk_nrf5340_cpuapp_ns" and no other changes to the build configuration.
I did a pristine build and flashed it to a nRF5340-DK board (PCA10095 2.0.1) and it responds as expected
I can connect to the board, read the button and turn on and off the LED.
I then started to follow the instructions from https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.1/nrf/config_and_build/bootloaders_and_dfu/bootloader_adding.html (which appear to be the same as https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/config_and_build/bootloaders/bootloader_adding.html
The only change I made was to the prj.conf file added one line:
and then I perform a pristine build. When I flash this build I get:
If I redo all of the above but change the board to nrf5340dk_nrf5340_cpuapp when I flash I get:
And I can connect and the application works.
So does the nRF Secure Immutable Bootloader not work with the TFM code and the ARM trustzone?
Thanks!