站里有没有懂 esp32 + micropython 的,有偿请教几个问题?

2021-12-15 10:39:46 +08:00
 sebastianwade

手头有个安信可 esp-12k 的板子,flash 能烧录上去,但是就是没法远程连接和下载。

flash 编译命令:

. esp-idf/export.sh && \
    cd micropython && \
    make -C mpy-cross && \
    make -C ports/esp32 submodules && \
    make -C ports/esp32 BOARD=GENERIC_S2

其他命令:

➜  esp32 git:(master) esptool.py --chip esp32s2 -p /dev/cu.wchusbserial1420 flash_id
esptool.py v3.1-dev
Serial port /dev/cu.wchusbserial1420
Connecting........____
Chip is ESP32-S2
Features: WiFi, ADC and temperature sensor calibration in BLK2 of efuse
Crystal is 40MHz
MAC: 84:f7:03:7a:e1:58
Uploading stub...
Running stub...
Stub running...
Manufacturer: 5e
Device: 4016
Detected flash size: 4MB
Hard resetting via RTS pin...
➜ esp32 git:(master) /Users/Works/.espressif/python_env/idf4.3_py3.9_env/bin/python ../../../../../../esp/esp-idf/components/esptool_py/esptool/esptool.py -p /dev/cu.wchusbserial1420 -b 460800 --before default_reset --after hard_reset --chip esp32s2  write_flash --flash_mode qio --flash_size detect --flash_freq 40m 0x1000 build-GENERIC_S2/bootloader/bootloader.bin 0x8000 build-GENERIC_S2/partition_table/partition-table.bin 0x10000 build-GENERIC_S2/micropython.bin

esptool.py v3.1-dev
Serial port /dev/cu.wchusbserial1420
Connecting........_____.....____
Chip is ESP32-S2
Features: WiFi, ADC and temperature sensor calibration in BLK2 of efuse
Crystal is 40MHz
MAC: 84:f7:03:7a:e1:58
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Flash will be erased from 0x00001000 to 0x00004fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x00010000 to 0x00128fff...
Flash params set to 0x0020
Compressed 16352 bytes to 10401...
Wrote 16352 bytes (10401 compressed) at 0x00001000 in 0.4 seconds (effective 306.3 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 115...
Wrote 3072 bytes (115 compressed) at 0x00008000 in 0.1 seconds (effective 373.7 kbit/s)...
Hash of data verified.
Compressed 1148752 bytes to 781514...
Wrote 1148752 bytes (781514 compressed) at 0x00010000 in 18.9 seconds (effective 486.7 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
➜  esp32 git:(master) rshell --buffer-size=30 -p /dev/cu.wchusbserial1420 -d ls
Debug = True
Port = /dev/cu.wchusbserial1420
Baud = 115200
User = micro
Password = python
Wait = 0
List = 0
nocolor = 0
ascii = 0
Timing = 0
Quiet = 0
BUFFER_SIZE = 30
Cmd = [ls]
Using buffer-size of 30
Connecting to /dev/cu.wchusbserial1420 (buffer-size 30)...
Trying to connect to REPL ....................Unable to connect to REPL

No MicroPython boards connected - use the connect command to add one

1369 次点击
所在节点   嵌入式开发
2 条回复
fox0001
2022-05-21 21:08:57 +08:00
建议楼主不要自己编译,应该有编译好的固件可以直接下载
volvo007
2022-11-29 22:11:08 +08:00
-b 460800 改 115200 试试

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/822310

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX