Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

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

    Scheduled Pinned Locked Moved Software Tools
    pymatepymakrother
    2 Posts 2 Posters 934 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      stefan85e
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • sebS Offline
        seb
        last edited by

        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

        1 Reply Last reply Reply Quote 1

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • 1 / 1
        • First post
          Last post

        Pycom on Twitter

        Pycom