Hello,
I'm using: Arduino IDE - 2.2.1. Board ESP32S2 (something like Lilygo T8 v1.1 with TFT display, microSD, WiFi). USB interface is CH340 with Windows 11 automatically installed drivers.
I've got 2 bugs and 1 discomfort:
On some samples compiling IDE says that there is no such file. But Google tells that this file must be built into Arduino IDE. How to resolve this bug?
Arduino IDE does not save board name-type and force to choose the board on each IDE start which is annoying. Is it possible to save board for next IDE starts?
Please don't post screenshots; right click in the output window, click copy all and past the info hete in a post (don't forget to use code tags when posting error messages).
Regarding (3), it should remember it as far as I know. My Nanos with CH340 are remembered.
The board selection is associated with the sketch. So when you open a sketch you saved previously, the IDE should automatically select the same board as you had selected the last time you used the sketch.
The saved sketches that were open when you exited Arduino IDE previously are reopened when you start Arduino IDE. The IDE will make the board and port selections that were previously associated with the sketches.
The only time this doesn't happen is if you didn't have any saved sketches open before, or if the saved sketches you did have open before are no longer accessible (e.g., you deleted the sketches from your hard drive since that time). In this case, Arduino IDE falls back on opening a new sketch. This is the only circumstances under which it is expected that no board will be selected in Arduino IDE.
Obvious - compilation of IDE samples which does not need those files (red on screenshot) is OK.
Then why this forum gives possibility to past screenshots? And if you will think a little you will understand that screenshots have more useful information then just copy-past from lower Arduino IDE window. OK, I will try to use screenshots minimally, but sometimes to show situation more complete it's better to use screenshots.
Not all libraries have been updated to be compatible with the ESP32. In this case the library is trying to include avr/pgmspace.h, which is not even used with an ESP32.
#1 - You probably missed a library file, but since you did not include the full error or the full sketch, you will never know. In your screen shot, it is impossible to tell, but each of the lines might or might not refer to another line... in this screen shot, each line refers to the next line. The number is the line number in the text (which you did not post).
#3 - When you remove your USB/Arduino, the computer may or may not remember your board. I use different Arduino, so I always need select the board and port.
For technical drawings, not programs and errors that go on for pages. Using the < CODE > button for programs and errors is a great feature of the forum.
If you are referring to the listing under File > Examples in the Arduino IDE, the examples shown as compatible are based off the architecture setting within a library's library.properties file. That does not always get updated regularly (or at all) when new processors are added to the IDE, and is dependent on whoever maintains the library.
The particular file you are having the error with is usually only conditionally included when using older versions of the IDE, or for unknown boards, because it is included automatically in the more current versions of the IDE. The file actually exists in the ESP32 boards package, but as a core library that is always included, in order to allow sketches that use PROGMEM specific code to run on the ESP32.