MCUBOOT hold gpio on boot

Hello,

I'm working with Zephyr and using MCUBOOT as bootloader.

Due to HW design I have to set and hold a gpio as fast as possible when the application boots (to prevent a reset)

What is the most effective way to do this ?

I tried to use SYS_INIT to write a function that will set the gpio, and it is called in POST_KERNEL init level to match the priority of the led gpio driver,

but it does not seem to be fast enough. I was wondering if you have any suggestions on how to optimize this process?

Thanks for your assistance,

Noy

Related