Hey guys,
I have a small concern and decided to ask here, as i was not able to found answer neither in zephyr or nrf sdk docs (not even sure which one apply to my question).
Is zephyr application able to read it's own code from slot0? (i.e. by using Zephyr flash_read())
This way I would be able to copy code of currently run from slot0 app to slot1, and then for mcuboot to swap and boot this cloned application right?
I know there is better DFU procedure but I'm just trying to understand if such manual copy is possible.
It looks possible, but isn't there any mechanism blocking such readout from currently run slot?
How does APPROTECT apply to my question?
Thanks! :)