LilyGO / TTGO-LoRa32-V2.1

T3
103 stars 29 forks source link

Cannot upload sketch when TF card is installed #7

Closed ianziot closed 3 years ago

ianziot commented 3 years ago

Using Arduino IDE with ESP32 core 1.0.4 with board version set to 'DOIT ESP32 DEVKIT V1'.

I have this issue (see below) on two seperate TTGO V2.1-6 boards (both marked T3_V1.6) and have tried on two seperate Windows10 PC's with the same result.

Using the simplest sketch possible, I am unable to download the sketch if there is a TF card installed in the slot. The compile goes OK then it stalls at the download and returns this error. 'A fatal error occurred: Failed to connect to ESP32: Invalid head of packet (0x00)'.

If I remove the TF card the sketch then downloads OK. After downloading I can power the board off, install the TF card, repower the board, toggle the com on/off switch and then the RST switch and the sketch will boot and run fine.

Any help appreciated?

ianziot commented 3 years ago

Problem solved by adding a pullup to GPIO-02 using following code: pinMode(02, INPUT_PULLUP); Cheers