软件环境:
vscode espressif idf插件1.5.1
esp_idf_5.0
esptool.py v4.4
硬件环境:
esp32-s3
问题:
之前的项目开发一直用idf 4.4.2没有问题,在删除4.4.2 所有安装路径并让插件重新安装5.0后,编译OK,但烧写经常出现各种异常,主要有以下2种:
(1)Writing at 0x00158887... (100 %)
A fatal error occurred: Packet content transfer stopped (received 8 bytes)
(2)
Compressed 1355856 bytes to 841909...
Writing at 0x00083fdb... (30 %)Traceback (most recent call last):
File "runpy.py", line 194, in _run_module_as_main
File "runpy.py", line 87, in _run_code
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\esptool\__main__.py", line 11, in <module>
esptool._main()
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\esptool\__init__.py", line 1026, in _main
main()
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\esptool\__init__.py", line 826, in main
operation_func(esp, args)
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\esptool\cmds.py", line 556, in write_flash
esp.flash_defl_block(block, seq, timeout=timeout)
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\esptool\loader.py", line 109, in inner
return func(*args, **kwargs)
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\esptool\loader.py", line 991, in flash_defl_block
self.check_command(
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\esptool\loader.py", line 407, in check_command
val, data = self.command(op, data, chk, timeout=timeout)
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\esptool\loader.py", line 376, in command
p = self.read()
File "C:\Espressif\python_env\idf5.0_py3.8_env\lib\site-packages\esptool\loader.py", line 308, in read
return next(self._slip_reader)
StopIteration
* 终端进程“C:\Espressif\python_env\idf5.0_py3.8_env\Scripts\python.exe 'C:\Users\zheng\esp_idf_v5.0\esp-idf\components\esptool_py\esptool\esptool.py', '-p', 'COM18', '-b', '115200', '--before', 'default_reset', '--after', 'hard_reset', '--chip', 'esp32s3', 'write_flash', '--flash_mode', 'dio', '--flash_freq', '80m', '--flash_size', '8MB', '0x0', 'bootloader/bootloader.bin', '0x10000', 'brainlink_proj_01.bin', '0x8000', 'partition_table/partition-table.bin', '0xd000', 'ota_data_initial.bin'”已终止,退出代码: 1。
烧写参数可以参考上条日志。
分析:
1.由于工程image_size将近1.4MB,因此烧录较慢,经常卡在某一进度
2.替换小工程和demo也偶尔烧录失败
3.在将esptool目录替换成idf4.4.2的esptool的后,烧写没有问题(目前用这种办法解决了)
因此是不是idf 5.0的esptool存在BUG,难道没有人有相同问题吗
esp_idf_5.0 flash烧写经常失败
-
- Posts: 6
- Joined: Thu Oct 27, 2022 6:24 am
Jump to
- English Forum
- Explore
- News
- General Discussion
- FAQ
- Documentation
- Documentation
- Sample Code
- Discussion Forum
- Hardware
- ESP-IDF
- ESP-BOX
- ESP-ADF
- ESP-MDF
- ESP-WHO
- ESP-SkaiNet
- ESP32 Arduino
- IDEs for ESP-IDF
- ESP-AT
- ESP IoT Solution
- ESP RainMaker
- Rust
- ESP8266
- Report Bugs
- Showcase
- Chinese Forum 中文社区
- 活动区
- 乐鑫活动专区
- 讨论区
- 全国大学生物联网设计竞赛乐鑫答疑专区
- ESP-IDF 中文讨论版
- 《ESP32-C3 物联网工程开发实战》书籍讨论版
- 中文文档讨论版
- ESP-AT 中文讨论版
- ESP-BOX 中文讨论版
- ESP IoT Solution 中文讨论版
- ESP-ADF 中文讨论版
- ESP Mesh 中文讨论版
- ESP Cloud 中文讨论版
- ESP-WHO 中文讨论版
- ESP-SkaiNet 中文讨论版
- ESP 生产支持讨论版
- 硬件问题讨论
- 项目展示
Who is online
Users browsing this forum: No registered users and 94 guests
- All times are UTC
- Top
- Delete cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. ESP8266EX and ESP32 are some of our products.