sipeed / MaixPy-v1

MicroPython for K210 RISC-V, let's play with edge AI easier
https://wiki.sipeed.com/maixpy
Other
1.68k stars 439 forks source link

OSError: Get version fail #237

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

klebermagno commented 4 years ago

same for me

Neutree commented 4 years ago

update esp32 firmware please: https://github.com/sipeed/Maixduino_esp32_fimware/releases

Createyouraccount-alt commented 4 years ago

Update does'nt help. Still same error. OSError: Get version fail Updated to maixpy_v0.5.0_95_g05c4e70_minimum_with_ide_support.bin OSError: Get version fail Any help?

Createyouraccount-alt commented 4 years ago

I was wrong. Correctly updating ESP32 firmware solved the problem.

ismasmenos commented 2 years ago

It gives me the same error, with the same program, as the update did, since I have a t-Watch k210 which has similar characteristics to maixduino, but I do not know how to update the firmware of the esp32 without affecting the firmware of the k210 since they are independent right?