Arduino IDE _Verify Command

HI

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).

Mark_100:
I have just started using the Arduino IDE tool (1.8.5) and my question is around the "Verify" command.

Hi,
The verify command just checks the spelling of the sketch (The absence -or presence- of sintax errors).
Regards.

Thank you all for your help really appreciated.

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.

Again many thanks to all.

Mark_100's picture:

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.

vffgaston:
The verify command just checks the spelling of the sketch (The absence -or presence- of sintax errors).

It does more than that. It compiles, links and create the executable (in hex).

All, again thank you for your replies.

I think I may of discovered the answer to issue that I am having.

Looking through the library files (Adafruit_TFTLCD.cpp) - it does state at the very beginning

// IMPORTANT: LIBRARY MUST BE SPECIFICALLY CONFIGURED FOR EITHER TFT SHIELD
// OR BREAKOUT BOARD USAGE. SEE RELEVANT COMMENTS IN Adafruit_TFTLCD.h

In this instance I am going to use the TFT screen with an ESP32 - so this file will need to be configured for a Breakout board and not TFT Shield.

Well I hope that is the issue - as soon as I can get around to modifying the file I will report back.

If anyone wishes to comment please do - all welcome.

Original library file obtained from Github GitHub - adafruit/TFTLCD-Library: Arduino library for 8-bit TFT LCDs such as ILI9325, ILI9328, etc

Mark_100:
Looking through the library files (Adafruit_TFTLCD.cpp) - it does state at the very beginning

// IMPORTANT: LIBRARY MUST BE SPECIFICALLY CONFIGURED FOR EITHER TFT SHIELD
// OR BREAKOUT BOARD USAGE. SEE RELEVANT COMMENTS IN Adafruit_TFTLCD.h

In this instance I am going to use the TFT screen with an ESP32 - so this file will need to be configured for a Breakout board and not TFT Shield.

The library is already configured for the breakout board by default.

Mark_100:
If anyone wishes to comment please do - all welcome.

Still waiting on that error message...

Mark_100:
Original library file obtained from Github GitHub - adafruit/TFTLCD-Library: Arduino library for 8-bit TFT LCDs such as ILI9325, ILI9328, etc

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.

Hi

Please find attached a word file containing the error code information. I was unable to use the system (</>) to upload this data due to it's size.

I also attach the sketch that I am currently working on from which the error file is generated from.

Many thanks

bme280_MCP42010_SPI_TFT_v1.ino (4.22 KB)

ESP32 with TFT error report.doc (234 KB)

Don't ever use Word for anything to do with programming. Use a good quality text editor to save it as a .txt file.

Agreed.

I used Word as the easiest medium to get the file uploaded, even then it was around 70 pages!

Mark_100:
I used Word as the easiest medium to get the file uploaded, even then it was around 70 pages!

A plain text editor is just as easy and far mor portable; not everybody has a word processor installed or MSword viewer installed.