Complete Factory Reset following
-
I was adding a gpy device to pybytes and had trouble with it connecting online via wifi. So I deleted the device from pybytes and reflashed it to 1.20.2.r4. The device is working and shows the REPL but two issues - I no longer can see a heartbeat LED flash and the LTE no longer connects with code verified with a different unit. I have reflashed twice with no change. Everything was working fine prior to registering it on pybytes.
When flashing I Enable Smartbytes / Smartconfig support and erase the FatFS along with resetting the CONFIG and NVS partition. How do I completely reset this back to the original factory settings? Below is the console outout. Thanks for your help.
Bob
Pycom MicroPython 1.20.2.r4 [v1.11-ffb0e1c] on 2021-01-12; GPy with ESP32 Pybytes Version: 1.6.1 Type "help()" for more information. >>> rst:0x7 (TG0WDT_SYS_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:1 load:0x3fff8020,len:8 load:0x3fff8028,len:2128 load:0x4009fa00,len:19760 entry 0x400a05bc Pycom MicroPython 1.20.2.r4 [v1.11-ffb0e1c] on 2021-01-12; GPy with ESP32 Pybytes Version: 1.6.1 Type "help()" for more information. >>> Reading file status No files to upload Upload done, resetting board... rst:0x7 (TG0WDT_SYS_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:1 load:0x3fff8020,len:8 load:0x3fff8028,len:2128 load:0x4009fa00,len:19760 entry 0x400a05bc Pycom MicroPython 1.20.2.r4 [v1.11-ffb0e1c] on 2021-01-12; GPy with ESP32 Pybytes Version: 1.6.1 Type "help()" for more information. >>>
-
Since posting I have figured out both issues.
For some reason, Pybytes modified my LTE modem to LR6.xx for NB-IoT from LR5.xx is for CAT-M1. My carrier requires CAT-M1.
The heartbeat issue was corrected by using pycom.heartbeat_on_boot(True). BUT - this is the default setting- so I don't understand why this was not reset when I reloaded all firmware with the Pycom utility.
My continuing question is how do you perform a Full factory reset if the reload of firmware does not seem to do this. Is there a list of all default settings so this could be manually done if necessary?