Hi,
So I have seen there is a clean-up option to set the architecture core HW registers to their warm-reset values as specified by the architecture before running the app from MCUBOOT (config MCUBOOT_CLEANUP_ARM_CORE).
Now I wonder if there is any similar option to be run on an application code itself. I am on a project that requires running on a propietary bootloader based on freeRTOS. My Zephyr application code runs fine apart from k_sleep function. My thinking is that the bootloader is altering some of the clock or timing register and this is upsetting the normal execution of zephyr. Is there an option that will set the architecture core HW registers to their warm-reset for an application init? If not, please share your thoughts on the most likely cause of the conflict (may be RTC configuration). Project runs on nRF52832 chip.
Thanks