手头有个安信可 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
1
fox0001 2022-05-21 21:08:57 +08:00 via Android
建议楼主不要自己编译,应该有编译好的固件可以直接下载
|
2
volvo007 2022-11-29 22:11:08 +08:00
-b 460800 改 115200 试试
|