-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
esp32s3固件烧录失败 Error:Timeout #159
esp32s3固件烧录失败 Error:Timeout #159
Comments
Could you try enabling tracing and share the trace output here ? Example to get trace in here: https://github.com/espressif/esptool-js/blob/main/examples/typescript/src/index.ts#L125 |
我做了进一步测试,如果板子当前的固件是从0x0地址开始烧录的,那么在下一次烧录固件时,会卡在切换波特率这里,我做了bug排查,是在esploader.ts文件的1224行代码:const resp = await this.command(this.ESP_CHANGE_BAUDRATE, pkt);https://github.com/espressif/esptool-js/blob/f699520/src/esploader.ts#L1224
|
这个是我测试用的固件,需要从0x0地址开始烧录,在第二次就会出问题 |
这是我的录屏,我在第一次从0x0地址烧录时,情况正常,但是当我第二次开始从0x0地址烧录时就会出现问题 test.mp4 |
Could you press Copy Trace button on the 2nd flashing and share the output here ? Output should be copied in the clipboard |
esptool.js Debug: Chip Magic 9 |
Could you try again but changing the baud rate to 460800 before connect ? I managed to connect and flash using a lower baud rate than 921600 |
你有没有手动进入下载模式?我在测试时发现,按下硬件上的按键主动进入下载模式时是可以正常烧录的,如果不手动进入下载模式就会失败,统一出现在Changing baudrate to xxxxxx时,会出现timeout,定位在代码的这一行: Line 1224 in f699520
|
I don't press any button in the esp32s3. I just use the esptool-js website and that's it. Did you modified the boot loader mode somehow ? https://docs.espressif.com/projects/esptool/en/latest/esp32s3/advanced-topics/boot-mode-selection.html |
你烧录我提供的固件时,是可以重复的烧录成功吗? |
yes, I can flash multiple times the test.bin you shared. |
我觉得如果boot loader mode是有问题的,你在测试时使用了test固件,那么你应该会跟我一样出现多次烧录时会失败的问题 |
我们找了6台电脑进一步测试,3台win10系统和3台win11系统,只有其中一台win11系统的是可以正常使用的,其他5台均无法多次烧录固件 |
Could you try https://brianignacio5.github.io/esptool-js/ which implement #160 ? |
我测试了固件烧录,现在是正常的了,不过控制台点击reset没有输出 |
I'll take a look at the reset flow. Thank you for the quick test |
Based on the output you can see that is reading an invalid packet because the esp32s3 has not reset properly and not yet in boot loader mode. Could you describe me the steps to reproduce this behavior ? |
我测试了一下,是我硬件的固件有问题,在正常的固件下不会出现这个问题 |
大概多久后这次更新会推送到npm上? |
I'll be releasing it soon after merge of #160 I've updated https://brianignacio5.github.io/esptool-js/ with fixes for console section. Could you please try again? |
现在都正常了 |
Checklist
How often does this bug occurs?
often
Expected behavior
串口通讯正常,固件烧录曾经是正常的
Actual behavior (suspected bug)
两周前测试可以正常烧录固件,今天测试时发现无法烧录,但是错误提示不全,只有Error:Timeout
node的插件版本:"esptool-js": "^0.4.5"
Error logs or terminal output
Steps to reproduce the behavior
只需要烧录就可以复现
Project release version
node插件版本0.4.5
System architecture
Intel/AMD 64-bit (modern PC, older Mac)
Operating system
Windows
Operating system version
win10
Shell
CMD
Additional context
No response
The text was updated successfully, but these errors were encountered: