New firmware release 0.9.3.b2


  • administrators

    OK I modified my boot.py file to avoid the crash...

    import machine
    import os
    import pycom
    
    pycom.heartbeat(False)
    
    uart = machine.UART(0, 115200) # disable these two lines if you don't want serial access
    os.dupterm(uart)
    
    if machine.reset_cause() != machine.SOFT_RESET: # needed to avoid losing connection after a soft reboot
        from network import WLAN
        wl = WLAN()
    	
        # save the default ssid and auth
        original_ssid = wl.ssid()
        original_auth = wl.auth()
    
        wl.mode(WLAN.STA)
    
        try:
            wl.connect('MYWIFI', (WLAN.WPA2, 'MYPWD'), timeout=10000)
        except:
            wl.init(mode=WLAN.AP, ssid=original_ssid, auth=original_auth, channel=6, antenna=WLAN.INT_ANT)
    
    

    In my previous script I would have seen this is the last lines after boot:

    MicroPython d78a5a3 on 2016-11-05; LoPy with ESP32
    Type "help()" for more information.
    >>>
    

    Now I get these extra messages:

    MicroPython d78a5a3 on 2016-11-05; LoPy with ESP32
    Type "help()" for more information.
    >>> n:7 2, o:6 0, ap:255 255, sta:7 2, prof:6
    state: 0 -> 2 (b0)
    state: 2 -> 3 (0)
    state: 3 -> 5 (10)
    add 0
    
    connected with WIFISSID, channel 7
    

    And I have to press enter to get the >>> prompt

    I'm guessing this has to do with the new threading implementation... the try: block is opening a new thread which causes the WDT to reset and this is why the boot.py manages to complete without causing the WDT to expire.


  • administrators

    Still crashes for me during boot when trying to run in WIFI STA mode and connect to my AP.

    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:0x00
    clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
    mode:QIO, clock div:2
    load:0x3fff9010,len:8
    load:0x3fff9018,len:312
    load:0x40078000,len:2348
    ho 0 tail 12 room 4
    load:0x4009f000,len:1364
    entry 0x4009f2f8
    rtc v112 Sep 26 2016 22:32:10
    XTAL 40M
    frc2_timer_task_hdl:3ffda4a8, prio:22, stack:2048
    tcpip_task_hdlxxx : 3ffdec74, prio:18,stack:2048
    phy_version: 123, Sep 13 2016, 20:01:58, 0
    pp_task_hdl : 3ffdfe24, prio:23, stack:8192
    mode : softAP(24:0a:xx:xx:xx:xx)
    dhcp server start:(ip: 192.168.4.1, mask: 255.255.255.0, gw: 192.168.4.1)
    dhcp server start:(ip: 192.168.4.1, mask: 255.255.255.0, gw: 192.168.4.1)
    mode : sta(24:0a:xx:xx:xx:xx)
    n:7 2, o:6 0, ap:255 255, sta:7 2, prof:6
    state: 0 -> 2 (b0)
    state: 2 -> 3 (0)
    state: 3 -> 5 (10)
    add 0
    
    connected with WIFISSID, channel 7
    Task watchdog got triggered. The following tasks did not feed the watchdog in time:
    Tasks currently running:
    CPU 0: MicroPy
    Aborting.
    Guru Meditation Error: Core   0 panic'ed (Unhandled debug exception)
    Register dump:
    PC      :  4000bff0  PS      :  00060036  A0      :  80084de8  A1      :  3ffd51f0
    A2      :  0000000a  A3      :  0000000a  A4      :  00000004  A5      :  00000000
    A6      :  00000000  A7      :  fffffff8  A8      :  00000000  A9      :  3ffd5160
    A10     :  00000000  A11     :  3ffdd7b3  A12     :  3ffd512f  A13     :  00000030
    A14     :  00000000  A15     :  00000001  SAR     :  00000019  EXCCAUSE:  00000001
    EXCVADDR:  00000000  LBEG    :  4000c349  LEND    :  4000c36b  LCOUNT  :  ffffffff
    CPU halted.
    

Locked
 

Pycom on Twitter