新买的ESP32-S2-SOLO-U的模块烧录问题

kaisey
Posts: 81
Joined: Tue Mar 24, 2020 5:54 am

新买的ESP32-S2-SOLO-U的模块烧录问题

Postby kaisey » Fri Dec 10, 2021 9:07 am

这是串口打印

B?ESP-ROM:esp32s2-rc4-20191025
Bui?ESP-ROM:esp32s2-rc4-20191025
?ESP-ROM:esp32s2-rc4-20191025
B?ESP-ROM:esp32s2-rc4-20191025
Bui?ESP-ROM:esp32s2-rc4-20191025
?ESP-ROM:esp32s2-rc4-20191025
BuESP-ROM:esp32s2-rc4-20191025
?ESP-ROM:esp32s2-rc4-20191025
BESP-ROM:esp32s2-rc4-20191025
?ESP-ROM:esp32s2-rc4-20191025
?ESP-ROM:esp32s2-rc4-20191025
BuiESP-ROM:esp32s2-rc4-20191025
Bui?ESP-ROM:esp32s2-rc4-20191025
Buil?ESP-ROM:esp32s2-rc4-20191025
BuESP-ROM:esp32s2-rc4-20191025
?ESP-ROM:esp32s2-rc4-20191025
Bu?ESP-ROM:esp32s2-rc4-20191025
BuiESP-ROM:esp32s2-rc4-20191025
Bu?ESP-ROM:esp32s2-rc4-20191025
Bu?ESP-ROM:esp32s2-rc4-20191025
Bui?ESP-ROM:esp32s2-rc4-20191025
BuESP-ROM:esp32s2-rc4-20191025
BESP-ROM:esp32s2-rc4-20191025
B?ESP-ROM:esp32s2-rc4-20191025
Bu?ESP-ROM:esp32s2-rc4-20191025
Bu?ESP-ROM:esp32s2-rc4-20191025


下载的时候
[2/3] cmd.exe /C "cd /D C:\Users\Administrator\Desktop\esp...sktop/esp-idf/components/esptool_py/run_serial_tool.cmake"
esptool.py esp32s2 -p com6 -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 80m --flash_size 2MB 0x1000 bootloader/bootloader.bin 0x10000 dsr.bin 0x8000 partition_table/partition-table.bin
esptool.py v3.1-dev
Serial port com6
Connecting........_____....._____....._____....._____....._____....._____....._____

A fatal error occurred: Failed to connect to ESP32-S2: Invalid head of packet (0x45)
CMake Error at run_serial_tool.cmake:50 (message):

C:/Users/Administrator/.espressif/python_env/idf4.4_py3.8_env/Scripts/python.exe
C:/Users/Administrator/Desktop/esp-idf/components/esptool_py/esptool/esptool.py
--chip esp32s2 failed


FAILED: CMakeFiles/flash
cmd.exe /C "cd /D C:\Users\Administrator\Desktop\esp-idf\components\esptool_py && C:\Users\Administrator\.espressif\tools\cmake\3.16.4\bin\cmake.exe -D IDF_PATH="C:/Users/Administrator/Desktop/esp-idf" -D SERIAL_TOOL="C:/Users/Administrator/.espressif/python_env/idf4.4_py3.8_env/Scripts/python.exe C:/Users/Administrator/Desktop/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32s2" -D SERIAL_TOOL_ARGS="--before=default_reset --after=hard_reset write_flash @flash_args" -D WORKING_DIRECTORY="C:/Users/Administrator/Desktop/esp-idf/project/build" -P C:/Users/Administrator/Desktop/esp-idf/components/esptool_py/run_serial_tool.cmake"
ninja: build stopped: subcommand failed.
ninja failed with exit code 1

ESP_ICY
Posts: 404
Joined: Mon Aug 23, 2021 11:10 am

Re: 新买的ESP32-S2-SOLO-U的模块烧录问题

Postby ESP_ICY » Fri Dec 10, 2021 10:14 am

您好,这边请问您使用的是什么 IDF 的版本

kaisey
Posts: 81
Joined: Tue Mar 24, 2020 5:54 am

Re: 新买的ESP32-S2-SOLO-U的模块烧录问题

Postby kaisey » Mon Dec 13, 2021 1:01 am

我现在使用的4.4,但是我都还没烧录进去过一次

ESP_ICY
Posts: 404
Joined: Mon Aug 23, 2021 11:10 am

Re: 新买的ESP32-S2-SOLO-U的模块烧录问题

Postby ESP_ICY » Mon Dec 13, 2021 12:34 pm

你好,这边你可以先按以下步骤检查下烧录环境,看上去你这边都还没有进入下载模式:https://blog.csdn.net/Marchtwentytwo/ar ... /119043384

eddie290
Posts: 1
Joined: Wed Dec 15, 2021 6:34 am

Re: 新买的ESP32-S2-SOLO-U的模块烧录问题

Postby eddie290 » Wed Dec 15, 2021 6:45 am

我使用的是安信可esp-12k的板子,能把micropy固件烧录上去,但是烧录以后,没法正常访问到板子。

Code: Select all

➜ esp32 git:(7c54b6428) ✗ [b]/Users/Eddie/.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 dio --flash_size detect --flash_freq 80m 0x1000 build-GENERIC_S2/bootloader/bootloader.bin 0x8000 build-GENERIC_S2/partition_table/partition-table.bin 0x10000 build-GENERIC_S2/micropython.bin[/b]
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 0x00005fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x00010000 to 0x00125fff...
Compressed 17872 bytes to 11132...
Wrote 17872 bytes (11132 compressed) at 0x00001000 in 0.6 seconds (effective 229.0 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 117...
Wrote 3072 bytes (117 compressed) at 0x00008000 in 0.1 seconds (effective 246.2 kbit/s)...
Hash of data verified.
Compressed 1137952 bytes to 760632...
Wrote 1137952 bytes (760632 compressed) at 0x00010000 in 18.7 seconds (effective 487.6 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...

➜  esp32 git:(7c54b6428) ✗ 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:(7c54b6428) ✗ rshell --buffer-size=30 -p /dev/cu.wchusbserial1420 ls
Using buffer-size of 30
Connecting to /dev/cu.wchusbserial1420 (buffer-size 30)...
Trying to connect to REPL    <--------------(然后就卡在这里了...)


Who is online

Users browsing this forum: No registered users and 39 guests