Reset the board removing the firmware. and all data.

Hi 

I am using nrf52840 in my custom board. I have a gpio button which is assigned for as a factory reset button. So when i press the button the whole board needs toi be reseted removing firmware , data , configuration. How is that possible.

Related