Hi @jianfeng_guo ,
Thank you for your interest in the NXP MIMXRT product, I would like to provide service for you.
What's the output state after firmware upgrade you want to retain?
Do you mean the GPIO output state?
In fact, the GPIO output state is controlled by the code, if you update the firmware, then reset, the code will be run, and the GPIO state is totally controlled by the code.
But, I think you also can try the external pull resistor, whether it can retain the states or not? As, if the pin is input, so it is determined by your external signal.
Best Regards,
If you still have questions about it, please kindly let me know.
Best Regards,
Kerry