ESP32-C3 Dev Kit LiPo can't upload - No serial data received

Started by 38Super, April 21, 2024, 10:41:48 PM

Previous topic - Next topic

38Super

Hi
I can't upload my sketch to either of my ESP32-C3 Dev Kit LiPo boards. I get:-

esptool.py v4.6
Serial port COM6
Connecting...
Chip is ESP32-C3 (revision v0.3)
Features: WiFi, BLE
Crystal is 40MHz
MAC: a0:76:4e:79:a9:60
Uploading stub...
Running stub...
Stub running...

A fatal error occurred: Unable to verify flash chip connection (No serial data received.).
Failed uploading: uploading error: exit status 2


Sometimes it it just says:-
A fatal error occurred: No serial data received.
Failed uploading: uploading error: exit status 2

I'm using Arduino IDE
Latest 'additional boards manager with the correct board listed.
Recognised as the correct board on Com6
but
"Get board info" says:-
BN:Lolin S3
VID : 0x303a
PID : 0x1001
SN : NULL


I've tried different cables and USB ports but no luck.

Laptop running Windows 11.
The board is recognised when I plug it in and the 'charging' LED comes on the board lights up.
When I first plugged them in the boards uploaded ok but not again.

Any help much appreciated.
I'm very new to this so if more info is needed please let me know.

Thanks

LubOlimex

QuoteI'm using Arduino IDE
Latest 'additional boards manager with the correct board listed.

What is the version of the ESP32 package as listed in "Additional boards maanger"?

What is the board selected (as written in the list)?

Did you try with developer json, instead of the stable one? I've explained it here:

https://www.olimex.com/forum/index.php?topic=9453.msg39523#msg39523
Technical support and documentation manager at Olimex

38Super

#2
The only version number I can find under boards manager is under:-

"ESP32 by espressif sysyems"
3.0.0-rc1

in additional board manager I have installed:-
https://espressif.github.io/arduino-esp32/package_esp32_dev_index.json

I couldn't see the Olimex ESP32 C3 Devkit LiPo listed in the 'stable' version but I can see it and set it from the developer version.
It is correctly listed at the bottom of the Arduino IDE screen on com6.
Arduino IDE is version 2.3.2

The board info is now showing an Adafruit C3.

I'm trying to upload an image but can't get it to work.

Is there any chance your ESP-PROG board might help?

LubOlimex

There is something very wrong with your setup or usage. Are you selecting the proper COM port? Here are three pictures of my setup:

https://imgur.com/a/CYni2e6

Unit is listed as:

BN: ESP32H2 Dev Module
VID: 303a
PID: 1001

And it is listed as USB Serial Device in device manager.

Also this is the Arduino log I get:

esptool.py v4.6
Serial port COM18
Connecting...
Chip is ESP32-C3 (revision v0.3)
Features: WiFi, BLE
Crystal is 40MHz
MAC: a0:76:4e:7c:4f:70
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Flash will be erased from 0x00000000 to 0x00003fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x00010000 to 0x0004afff...
Compressed 13632 bytes to 9886...
Writing at 0x00000000... (100 %)
Wrote 13632 bytes (9886 compressed) at 0x00000000 in 0.3 seconds (effective 387.8 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 146...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (146 compressed) at 0x00008000 in 0.1 seconds (effective 262.1 kbit/s)...
Hash of data verified.
Compressed 8192 bytes to 47...
Writing at 0x0000e000... (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.1 seconds (effective 524.3 kbit/s)...
Hash of data verified.
Compressed 240448 bytes to 135039...
Writing at 0x00010000... (11 %)
Writing at 0x0001aff8... (22 %)
Writing at 0x00021f71... (33 %)
Writing at 0x00028ce2... (44 %)
Writing at 0x0002ed6a... (55 %)
Writing at 0x00034e81... (66 %)
Writing at 0x0003c050... (77 %)
Writing at 0x00042fbe... (88 %)
Writing at 0x00049086... (100 %)
Wrote 240448 bytes (135039 compressed) at 0x00010000 in 2.4 seconds (effective 809.9 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
Technical support and documentation manager at Olimex

LubOlimex

Maybe try with better, shorter USB cable and another USB port. Avoid splitters, connect directly to USB port.
Technical support and documentation manager at Olimex

38Super

Yay.
Got both boards working.
Connected pin 9 to GND with a 10K resistor. Upload successful once and now working normally without the resistor.

Appears to be sorted.

Thanks.

LubOlimex

Nice thanks for the update and the info, might help others in future.
Technical support and documentation manager at Olimex