my own Sketch ist for ESP32 in Board TTGO-T1
After Erstattung Arduino IDE 2.0
I hot a warning belonging a C-file in the
core library.
If I compare the file with that at GitHub
it differs in many lines.
Should I ignore the warning or it ist possible to update the core library?
my sketch is not very specifically.
I had compiled the sketch often without problems.
The output with warnings:
H:\Users\gle\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32\esp32-hal-spi.c:922:39: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
uint8_t * last_out8 = &result[c_longs-1];
^
H:\Users\gle\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32\esp32-hal-spi.c:923:40: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
uint8_t * last_data8 = &last_data;
^
The difference between the local and GitHub version belonging the mentioned function is, that in the GitHub version a explicit cast is coded:
uint8_t * last_out8 = (uint8_t *)&result[c_longs-1];
uint8_t * last_data8 = (uint8_t *)&last_data;
If the field contains some other URL mentioning "esp32", then remove it. If the field does not contain the URL I mentioned above, then add it.
Click the OK button.
If you found you needed to change the contents of the "Additional Boards Manager URLs" field, you must now restart your Arduino IDE. Select File > Quit from the menus and then start the Arduino IDE again.
Select Tools > Board > Boards Manager... from the Arduino IDE menus.
Scroll down through the list of available boards platforms until you see "esp32 by Espressif Systems". Click on it.
Click the INSTALL button. You will now see a "Processing esp32:2.0.2" notification, which has a thin progress bar at the bottom.
Wait until the Successfully installed platform esp32:2.0.2" notification appears.
Select Tools > Board > Boards Manager... from the Arduino IDE menus to close the "Boards Manager" view.
Now try compiling your sketch again.
FYI, we do not refer to this thing as a "library" here. The term "library" has a very specific meaning in the Arduino world. The warning is coming from the "core", which is all the source code under this path:
You will sometimes see the terms "core" and "platform" mixed up, even in the official Arduino documentation. It is unfortunate, but the two are so closely related that it rarely causes misunderstandings.
It sounds pedantic, but you can avoid a lot of confusion by using the correct terminology.
Thank you for this procedure. Unfortunately, I am not getting past Step 9, wait for complete. Some, but not all of the packages successfully installed. The error message is as follows:
esp32:xtensa-esp32s2-elf-gcc@gcc8_4_0-esp-2021r2
esp32:esptool_py@3.1.0
esp32:mkspiffs@0.2.3
Failed to install platform: esp32:esp32.
Error: 13 INTERNAL: Error downloading tool esp32:mklittlefs@3.0.0-gnu12-dc7f933: Get "https://objects.githubusercontent.com/github-production-release-asset-2e65be/156930595/373b3d80-bfb0-11ea-92ee-7d784b2d751b?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220423%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220423T081646Z&X-Amz-Expires=300&X-Amz-Signature=03a392414f606099062093e2c394c7db32026cf169070cbce6fd98bb361ee1c9&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=156930595&response-content-disposition=attachment%3B%20filename%3Dx86_64-w64-mingw32.mklittlefs-c41e51a.200706.zip&response-content-type=application%2Foctet-stream": read tcp 192.168.1.9:59302->185.199.110.133:443: wsarecv: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
May I ask what I can do to solve this? how to proceed? Thank you.