QUERY · ISSUE
stm32: Factory reset from code
port-stm32
I believe factory reset should be available as an alternative to USR. USR might not be practical or accessible for custom boards or how the device might be enclosed or accessed.
This might also be related to ways to clear/format/erase the filesystem from code.
Basically recovery and housecleaning.
CANDIDATE · PULL REQUEST
STM32: Factory Reset not Executed.
port-stm32
Fixes micropython/micropython#6903
state.reset_mode is updated by MICROPY_BOARD_BEFORE_SOFT_RESET_LOOP
but not passed to init_flash_fs.