Code: Select all
import network # Ok
wlan = network.wlan(network.STA_IF) # Ok
wlan.active(True) # Reboot on the matrix, Ok with the lite
Code: Select all
import network # Ok
wlan = network.wlan(network.STA_IF) # Ok
wlan.active(True) # Reboot on the matrix, Ok with the lite
Code: Select all
MicroPython v1.12-96-gc3095b37e on 2020-01-29; ESP32 module with ESP32
Type "help()" for more information.
>>> import network
>>> wlan = network.WLAN(network.STA_IF)
I (57590) wifi: wifi driver task: 3ffbd98c, prio:23, stack:3584, core=0
I (61791) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (61791) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (61861) wifi: wifi firmware version: ac331d7
I (61861) wifi: config NVS flash: enabled
I (61861) wifi: config nano formating: disabled
I (61861) wifi: Init dynamic tx buffer num: 32
I (61861) wifi: Init data frame dynamic rx buffer num: 32
I (61871) wifi: Init management frame dynamic rx buffer num: 32
I (61871) wifi: Init management short buffer num: 32
I (61881) wifi: Init static rx buffer size: 1600
I (61881) wifi: Init static rx buffer num: 10
I (61891) wifi: Init dynamic rx buffer num: 32
>>> wlan.active()
False
>>> wlan.active(True)
W (70711) phy_init: failed to load RF calibration data (0x1102), falling back to full calibration
I (70881) phy: phy_version: 4102, 2fa7a43, Jul 15 2019, 13:06:06, 0, 2
I (70901) wifi: mode : sta (d8:a0:1d:5e:73:7c)
True
>>> I (70901) wifi: STA_START
>>> wlan.active()
True
>>>
Code: Select all
>>> wlan.active(True)
W (41515) phy_init: failed to load RF calibration data (0x1102), falling back to full calibration
ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 188777542, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:4928
ho 0 tail 12 room 4
load:0x40078000,len:9332
load:0x40080400,len:6216
entry 0x400806e8
Shame on me . It was the cable. The idea had crossed my mind and I forgot to try . I had three usb C cables and only one works without using a powered hub: the very short one I got with my M5Stack Core. Anyway, trying on a powered hub showed that the issue is power: every cable works... It remains weird since my "big" M5Stack core with PSRam works with any cable straight from the computer.mattyt wrote: ↑Mon Feb 03, 2020 8:28 amSomething else to check first - when the radio is active the ESP32 draws the most amount of current. It can sometimes spike to above 500mA and can reset if the power supply is inadequate. So perhaps quickly try a different USB power source and possibly even cable...
Code: Select all
from neopixel import NeoPixel
from machine import Pin
from time import sleep
np = NeoPixel(Pin(27), 25)
n = 0
while True:
np[n] = (0, 0, 0)
if n < 24:
n += 1
else:
n = 0
np[n] = (10, 0, 0)
np.write()
sleep(0.1)