SolderedElectronics / Inkplate-6-hardware

Open Source Hardware (OSH) files for e-paper display Inkplate 6
Other
174 stars 19 forks source link

Can't program it anymore #14

Open jf1452 opened 2 years ago

jf1452 commented 2 years ago

Working fine since all the mods. I decided to update the software and try to reload it after all Arduino libraries have been updated, but I keep getting:

esptool.py v3.0-dev Serial port COM4 Connecting......................................_____

A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header

I've tried disconnecting the battery, holding reset during power up, switching it on / off. Pressing reset when trying to program but still unable to upload new firmware.

Any ideas / tricks to upload new code?

TedMGN commented 1 year ago

Hi, I have the same issue since few days. I developed projects for the Inkplate since December 2020. It was not a problem to upload new sketch to my Inkplates.

Yesterday I tried to upload a new sketch to my second Inkplate and get an error while uploading.

Sketch uses 1558882 bytes (49%) of program storage space. Maximum is 3145728 bytes.
Global variables use 62024 bytes (18%) of dynamic memory, leaving 265656 bytes for local variables. Maximum is 327680 bytes.
esptool.py v3.0-dev
Serial port /dev/ttyUSB0
Connecting........_____....._____....._____....._____....._____....._____.....____An error occurred while uploading the sketch
_

A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header

I tried the version before (1.0.0) of Inkplate Boards, but I got the same error.

Sketch uses 1539638 bytes (48%) of program storage space. Maximum is 3145728 bytes.
Global variables use 58760 bytes (17%) of dynamic memory, leaving 268920 bytes for local variables. Maximum is 327680 bytes.
esptool.py v2.6-beta1
Serial port /dev/ttyUSB0
Connecting........_____....._____....._____....._____....._____....._____.....____An error occurred while uploading the sketch
_

A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header

But with both versions I see my logging on the serial interface. It means the communication works fine. And the other point is, my Inkplate makes a reset after I got the error. In my feeling the communication also works. I also tried to remove the battery or switch on the reset while uploading. Nothing helps.

Then I tried to upload the sketch to my first Inkplate. With this Inkplate I can upload new sketches with both versions of Inkplate Boards. I found many different entries in the web to fix this issue. But this entries describes other boards not the Inkplate.

Do you have any ideas to fix that problem? Thanks in advance. Detlef