I have just started using the Arduino IDE tool (1.8.5) and my question is around the "Verify" command.
When composing a new sketch, do I need to have all the devices e.g. (Arduino / ESP32/ TFT etc.) actually connected to the PC via USB during the sketch verification process? - (This is not referring to the uploading process).
I have written a sketch for an ESP32 and intend to couple this up with a TFT display, but the sketch fails every time when I use the verification option.
Failure message (exit status 1.Error compiling for board ESP32 Dev Module).
Currently I do not have the TFT at hand (On order) to attach to the ESP32.
If I remove the references to the TFT the sketch will verify successfully.
Does this mean that all the devices listed in the sketch (e.g. library’s references) must be connected at the time of verification even though you are not actually uploading the sketch to the device?
Any help or explanation is very welcome and thank you in advance.
Mark_100:
When composing a new sketch, do I need to have all the devices e.g. (Arduino / ESP32/ TFT etc.) actually connected to the PC via USB during the sketch verification process? - (This is not referring to the uploading process).
Hardware attached to your computer has absolutely no effect on the Sketch > Verify/Compile process. We usually just call it "compiling" around here.
If there is an error when you compile the sketch that means there's something wrong with the sketch's code. Connecting some device to your ESP32 won't make any difference.
Mark_100:
Failure message (exit status 1.Error compiling for board ESP32 Dev Module).
That's the generic, useless part of the error. If you want help we need the entire error message.
When you encounter an error you'll see a button on the right side of the orange bar "Copy error messages". Click that button. Paste the error in a message here USING CODE TAGS (</> button on the toolbar).
I wonder if there is a problem with the installed library for the TFT screen.
I down load the Adafruit_ TFTLCD_Master zip from the Git hub site, expanded the file and then used the Arduino Add library function.
The on screen prompt acknowledge that this had been success and also appeared in the sketch/include library list.
When I click on “Manage Libraries” and then filter on TFTLCD, it lists the new library as installed, version unknown and no other text in the box. Screen shoot added
Is this correct, as I have looked at other libraries that I have installed and there always seems to be more information in the box regarding the library.
I will try and gather all the report from the Arduino IDe regarding the failure.
Mark_100:
I wonder if there is a problem with the installed library for the TFT screen.
You haven't provided enough information for anyone here to say.
Mark_100:
I down load the Adafruit_ TFTLCD_Master zip from the Git hub site, expanded the file and then used the Arduino Add library function.
Post a link to where you got the library from. Please use the chain links icon on the toolbar to make it clickable.
Mark_100:
Is this correct, as I have looked at other libraries that I have installed and there always seems to be more information in the box regarding the library.
That information comes from a metadata file named library.properties. It typically has no effect on the working of the library. It's mostly there to provide more information in the "Manage Libraries" screen.
That library doesn't have a library.properties metadata file so the lack of information in Library Manager you noted previously is expected and doesn't indicate any problem.