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

    L01 does not run boot.py or main.py

    Scheduled Pinned Locked Moved LoPy
    l01boot.pymain.py
    2 Posts 1 Posters 509 Views 1 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.
    • T Offline
      Thosch42
      last edited by

      Hi all!
      I've another strange thing. My L01 devices does not run boot.py or main.py after power up or reset. I uploaded very simple test files.
      boot.py:

      from machine import UART
      import machine
      import uos
      
      usb = UART(0, baudrate=115200)
      os.dupterm(usb)
      
      print('running boot.py')
      
      uos.uname()
      

      main.py:

      print("running main.py")
      x = 0
      for y in range(0, 9):
          x += 1
          print(x)
      

      A Lopy on Expansionboard 2.1a gives me:

      >>> ets Jun  8 2016 00:22:57
      
      rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
      ets Jun  8 2016 00:22:57
      
      rst:0x10 (RTCWDT_RTC_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:0x3fff8028,len:8
      load:0x3fff8030,len:1728
      load:0x4009fa00,len:0
      load:0x4009fa00,len:14584
      entry 0x400a059c
      running boot.py
      (sysname='LoPy', nodename='LoPy', release='1.18.1.r1', version='v1.8.6-849-b0520f1 on 2018-08-29', machine='LoPy with ESP32', lorawan='1.0.2')
      running main.py
      1
      2
      3
      4
      5
      6
      7
      8
      9
      Pycom MicroPython 1.18.1.r1 [v1.8.6-849-b0520f1] on 2018-08-29; LoPy with ESP32
      Type "help()" for more information.
      >>>
      

      My L01 on my custom baseboard and also connected on a Expansionboard 2.1a gives me:

      >>> ets Jun  8 2016 00:22:57
      
      rst:0x1 (POWERON_RESET),boot:0x3b (SPI_FAST_FLASH_BOOT)
      configsip: 0, SPIWP:0x00
      clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
      mode:QIO, clock div:1
      load:0x3fff0008,len:4
      load:0x3fff000c,len:148
      load:0x40078000,len:11876
      ho 0 tail 12 room 4
      load:0x40080000,len:268
      entry 0x40080034
      MicroPython v1.8.6-620-g3812d902 on 2017-05-24; LoPy with ESP32
      Type "help()" for more information.
      >>>
      

      What means this "ho 0 tail 12 room 4"?

      I can run boot.py or main.py on the L01 manually:

      >>>
      running boot.py
      (sysname='LoPy', nodename='LoPy', release='1.7.0.b1', version='v1.8.6-620-g3812d902 on 2017-05-24', machine='LoPy with ESP32', lorawan='1.0.0')
      ā•ā•>
      MicroPython v1.8.6-620-g3812d902 on 2017-05-24; LoPy with ESP32
      Type "help()" for more information.
      >>>
      
      >>>
      running main.py
      1
      2
      3
      4
      5
      6
      7
      8
      9
      ā•ā•>
      MicroPython v1.8.6-620-g3812d902 on 2017-05-24; LoPy with ESP32
      Type "help()" for more information.
      >>>
      

      I checked with FTP that the files are there and not corrupted. Everything seems to be fine.

      Any suggestions??

      Cheers,
      Thomas

      1 Reply Last reply Reply Quote 0
      • T Offline
        Thosch42
        last edited by

        It's fixed!!
        See post Problems getting L01 into bootloader mode.

        Cheers,
        Thomas

        1 Reply Last reply Reply Quote 0

        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