sipeed / MaixPy-v1_scripts

micropython scripts for MaixPy
https://maixpy.sipeed.com
MIT License
628 stars 432 forks source link

OSError: Get version fail #44

Closed wolfbomb closed 4 years ago

wolfbomb commented 4 years ago

import network from Maix import GPIO from fpioa_manager import fm, board_info

WIFI_SSID = "" WIFI_PASSWD = ""

IO map for ESP32 on Maixduino

fm.register(25,fm.fpioa.GPIOHS10)#cs fm.register(8,fm.fpioa.GPIOHS11)#rst fm.register(9,fm.fpioa.GPIOHS12)#rdy fm.register(28,fm.fpioa.GPIOHS13)#mosi fm.register(26,fm.fpioa.GPIOHS14)#miso fm.register(27,fm.fpioa.GPIOHS15)#sclk

nic = network.ESP32_SPI(cs=fm.fpioa.GPIOHS10,rst=fm.fpioa.GPIOHS11,rdy=fm.fpioa.GPIOHS12, mosi=fm.fpioa.GPIOHS13,miso=fm.fpioa.GPIOHS14,sclk=fm.fpioa.GPIOHS15)

nic.connect(WIFI_SSID, WIFI_PASSWD) print(nic.ifconfig()) print(nic.isconnected()) print("ping baidu.com:", nic.ping("baidu.com"), "ms") nic.disconnect()

But i am getting OSError: Get version fail

SSID and Password is definitely correct.

Traceback (most recent call last): File "", line 18, in OSError: Get version fail MicroPython v0.5.0-38-g4c4d5b6 on 2020-04-10; Sipeed_M1 with kendryte-k210

Neutree commented 4 years ago

upgrade esp32 firmware here: https://github.com/sipeed/Maixduino_esp32_fimware/releases