HT-HC32 sketch can't upload

When I try to upload any sketch, it is an error.
esptool also cannot work.
I think Maybe the sketch I have uploaded corruted.
Is there any solution to go back to factory version?

Thanks,


esptool.py v4.6
Serial port COM6
Connecting…

A fatal error occurred: Failed to connect to ESP32-S3: No serial data received.
For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html
Failed uploading: uploading error: exit status 2

Yes, you use esptool.py to upload the original firmware. Except it’s not working for you.

Probably something as simple as putting it in to boot loader mode before trying to upload.

Thank you for relpy.

  1. How do I enter in bootloader mode using ht-hc32?
  2. where could I find original firmware?

Thanks,

  1. Just as on any ESP32: press and hold the USER button. Then press and release the RST button. Then release the USER button.
  2. No clue, all I can find is the framework here: https://resource.heltec.cn/download/HT-HC32/Development_Framework. Maybe it comes with examples as well, but that file is way too big for me to download just to check what’s in it.

Thanks for reply

I tried but failed with minimum example sketch. So, I ask if there is any specific method.

Thanks,

The only method is the method I described. There is no other method than the sequence of button presses that must be executed as described. Sorry. This is regardless of whatever you want to upload. As long as you select the right COM port and use the method above, esptool should be able to communicate with your device.

You did’t say how it failed, so we don’t have any actual information to offer anything new.

You can see the boot loader coming up if you use a serial program set to 115200 baud - when you press the buttons in the right order as detailed above, that will show you that the board is ready for programming. You can then disconnect the serial program and try esptool.py.

If you don’t see the boot loader messages, as the ESP32-S3 is directly connected to the USB port, you’d have to assume the main chip is dead.

Thanks for reply.

  1. I just uploaded the sketch edited by chatgpt. The reason I used chatgpt’s code is working well.
  2. After Uploading and then not boot up.
  3. when I Connect to PC, I can check the port alive. but no receive data error shows up.
  4. Press and hold user button(charge LED is solid) -> press and release boot button(charge LED and STATUS LED is solid) -> release user button(charge LED and STATUS LED is solid).
  5. when I try to flashing using esptool, both solid LED is blinking 4s/once.

Log in Serial Monitor in Arduino…
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0xc (RTC_SW_CPU_RST),boot:0x1d (SPI_FAST_FLASH_BOOT)
Saved PC:0x40378e22
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3818,len:0x508
load:0x403c9700,len:0x4
load:0x403c9704,len:0xad0
load:0x403cc700,len:0x29d8
entry 0x403c9880
Failure 5 logged at pc 0x00000000, lr 0x420024c1, line 204 in 00000000
0x00000000
0x00000000
0x00000000
0x00000000
Starting Wi-Fi HaLow…
E 227 Channel list not set
MMOSAL Assert, CPU 1 (current core) backtrace
Backtrace: 0x42003B80:0x3FCEC0E0 0x420039F4:0x3FCEC100 0x420024BE:0x3FCEC140 0x4200738F:0x3FCEC190

How rude.

This is exactly the instructions you were provided by @bns

Why ask us and waste our time if you are going to use ChatGPT.

why did you say rude?

I try to test bns mentioned method.

cause I use chatgpt for coding?
Other board is working well.

I dont understand your saying about bns. So what?!

If I know more than other people, I dont come here.

I think that E = Error, so I’d say you try to solve the error by setting a Channel list. Your board is working now given that it says “Starting Wi-Fi HaLow…”