sipeed/MaixPy-v1

ImportError: no module named 'network_esp32' - Maxiduino

BackMountainDevil opened this issue · 1 comments

Describe the bug

I try to use esp32 to connect wifi on Maxiduino. I look into wiki and see a demo code. Run and got error: ImportError: no module named 'network_esp32'.

Moreover, I use arduino test esp32 to connect my wifi and it work, so the esp32 module is fine.

To Reproduce
Steps to reproduce the behavior:

  1. kflash -p /dev/ttyUSB0 -b 1500000 maixpy_v0.6.2_73_g1a4f278a5.bin
  2. esptool.py --chip esp32 --port /dev/ttyUSB1 erase_flash
  3. esptool.py --chip esp32 --port /dev/ttyUSB1 --baud 1500000 write_flash -z 0x0000 maixduino_esp32_firmware_v1.4.0.bin
  4. Maixpy connect /dev/ttyUSB0. run demo code

Expected behavior
As the demo output:

'''ouput

<module 'network_esp32' from 'network_esp32.py'>
['class', 'name', 'file', 'GPIO', 'network', 'time', 'board_info', 'fm', 'wifi']
<class 'wifi'>
MicroPython v0.5.1-140-g7bf6445e7-dirty on 2020-11-26; Sipeed_M1 with kendryte-k210
Type "help()" for more information.

'''

Actual behaviour
Tell us what happens instead

ImportError: no module named 'network_esp32'

Screenshots
If applicable, add screenshots to help explain your problem.

Maxiduino esp32 import errot of network_esp32

Please complete the following information

  • IDE version: 0.2.5
  • Firmware version: v0.6.2_73_g1a4f278a5
  • Board: Maixduino
  • OS: Linux xx 5.10.105-1-MANJARO #1 SMP PREEMPT Fri Mar 11 14:12:33 UTC 2022 x86_64 GNU/Linux

need to upload file to board first