Xinyuan-LilyGO / TTGO_TWatch_Library

MIT License
902 stars 289 forks source link

Unable to upload any example of the library #174

Closed Kaki-In closed 1 year ago

Kaki-In commented 2 years ago

Hi, I can upload a program to my watch, and this one works successfully :

void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);

}

void loop() {
  // put your main code here, to run repeatedly:
  Serial.printf("Test\n");
  delay(1000);
}

But, when I try to upload a TTGO_TWatch_Library example program, it is not uploaded to the card :

I have set the #define LILYGO_WATCH_2020_V3 at the begginning of the config.h file and just installed the latest versions of the ESP32 cards json file and of the LILYGO_WATCH library.

Can someone help me?

lewisxhe commented 2 years ago

Please provide a screenshot

Kaki-In commented 2 years ago

There is the video capture of what I get (average 25 MB).

Kaki-In commented 2 years ago

I did a simple syntax check on an mistaked program and got the same result : it seems that it itsn't about the watch, but the library itself.

lewisxhe commented 2 years ago

image

It's normal on windows, I think this may have something to do with the version of arduino-esp32, what version of core are you using?

Kaki-In commented 2 years ago

I actually am on Ubuntu

Kaki-In commented 2 years ago

cat /etc/os-release PRETTY_NAME="Ubuntu 22.04.1 LTS" NAME="Ubuntu" VERSION_ID="22.04" VERSION="22.04.1 LTS (Jammy Jellyfish)" VERSION_CODENAME=jammy ID=ubuntu ID_LIKE=debian HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" UBUNTU_CODENAME=jammy

lewisxhe commented 2 years ago

image

I tried in the newly installed UBuntu22.04.1 LTS and found no errors

lewisxhe commented 2 years ago

This is a video recorder https://youtu.be/BzbEkUnE7C4

Kaki-In commented 1 year ago

Go into File -> Preferences In the "Compiler Warning" Section, select "All"

Retry to compile

Installing a second version I had a lot of same errors...

Kaki-In commented 1 year ago

image

Kaki-In commented 1 year ago

( a second version of ubuntu LTS 22.04, I am using a vm)

Kaki-In commented 1 year ago

Ok I just disactived this and now it works!

Thanks for your help

Kaki-In commented 1 year ago

Just a little question quickly... Where is the main Operating System of the watch?

lewisxhe commented 1 year ago

If you have any questions, please restart