machine.reset() cant get pass it... I want to upload new code but cant get in



  • Re: Restart code when micropython throws error

    I had an error about i could not upload due to low memoery on the device im using a LoPy, then I added

    import machine
    machine.reset()

    was trying to clear the memory and after notice it restarted the program I did wanna try upload the code i hade without this machine and i forogot to change it so Now i have a program that restart the lopy all the time and I cant seems to upload the program to it so I cant stop it... any advice!?

    import machine
    machine.reset()

    now I only see this:

    rst:0x7 (TG0WDT_SYS_RESET),boot:0x17 (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:0x3fff9028,len:8
    load:0x3fff9030,len:1060
    load:0x4009fa00,len:0
    ho 12 tail 0 room 4
    load:0x4009fa00,len:14096
    entry 0x400a05e0
    ets Jun 8 2016 00:22:57

    rst:0x7 (TG0WDT_SYS_RESET),boot:0x17 (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:0x3fff9028,len:8
    load:0x3fff9030,len:1060
    load:0x4009fa00,len:0
    ho 12 tail 0 room 4
    load:0x4009fa00,len:14096
    entry 0x400a05e0
    ets Jun 8 2016 00:22:57



  • Connect a jumper between P12 and 3.3V and press the reset button, this will cause the onboard LED to flash orange, when you see this please remove the jumper. This puts the device into "safe boot", in this mode it will not run the boot.py and main.py files and drop you straight into the interactive REPL terminal



Pycom on Twitter