L01 does not run boot.py or main.py



  • 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



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

    Cheers,
    Thomas


 

Hello World?

Pylife on Kickstarter - November 2018








Back Us On Kickstarter >

Pycom on Twitter