Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Guru Meditation Error on wlan.deinit()  #361

Closed
@lrademacher

Description

@lrademacher

I am using LoPy4 in the following firmware configuration:
sysname='LoPy4', nodename='LoPy4', release='1.20.1.r1', version='v1.11-3138a13 on 2019-10-08', machine='LoPy4 with ESP32', lorawan='1.0.2', sigfox='1.0.1', pybytes='1.1.3'

Since updating from '1.18.2.r1 the following code loaded as main.py fails. The code mainly disables WiFi. I always end up in an Guru Meditation Error followed by a reset:

import time
print("Startup on: {0}".format(os.uname()))
print("================================================================================")

print('Deinitializing WiFi...')
#import pycom
#pycom.wifi_on_boot(False)
from network import WLAN
wlan = WLAN()
wlan.deinit()

while 1:
    time.sleep(5)

But when manually giving the following commands in REPL, it works fine:

>>>from network import WLAN
>>>wlan = WLAN()
>>>wlan.deinit()
>>>time.sleep(5)

Error output:

ets Jun  8 2016 00:22:57

rst:0x7 (TG0WDT_SYS_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:0x3fff8020,len:8
load:0x3fff8028,len:2136
load:0x4009fa00,len:19880
entry 0x400a05d0
Smart Provisioning started in the background
See https://docs.pycom.io/smart for details
Startup on: (sysname='LoPy4', nodename='LoPy4', release='1.20.1.r1', version='v1.11-3138a13 on 2019-10-08', machine='LoPy4 with ESP32', lorawan='1.0.2', sigfox='1.0.1', pybytes='1.1.3')
================================================================================
Deinitializing WiFi...
Guru Meditation Error: Core  0 panic'ed (StoreProhibited). Exception was unhandled.
Core 0 register dump:
PC      : 0x400911c3  PS      : 0x00060133  A0      : 0x800898a0  A1      : 0x3ffb7140
A2      : 0x00000000  A3      : 0x00060120  A4      : 0x00000001  A5      : 0x0000cdcd
A6      : 0xb33fffff  A7      : 0x3ffaff34  A8      : 0x0000abab  A9      : 0x3ffb7140
A10     : 0x0000cdcd  A11     : 0x00060123  A12     : 0x00060120  A13     : 0x0003f338
A14     : 0x3f800010  A15     : 0x3fbc0bb9  SAR     : 0x00000000  EXCCAUSE: 0x0000001d
EXCVADDR: 0x00000000  LBEG    : 0x4009847c  LEND    : 0x400984aa  LCOUNT  : 0xffffffff

Backtrace: 0x400911c3:0x3ffb7140 0x4008989d:0x3ffb7170 0x4008745d:0x3ffb7190 0x4013d922:0x3ffb71d0 0x400d2460:0x3ffb71f0

================= CORE DUMP START =================
<Removed core dump>
================= CORE DUMP END =================
Rebooting...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions