I have an application that works in both debug and release build configuring IOMUX and GPIO registers.
When I add a bootloader that runs before the application, one of the GPIO pins does not act correctly.
Even if I reload flash with the working debug or release build (without power cycling the hardware), the GPIO pin does not act correctly.
From this behavior it appears to me that there are registers related to GPIO that cannot be changed multiple times.
I'm using MCUxpresso IDE. The target MCU is an iMX RT 1064