Update library with arduino ide 2.0

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?

Thank you for advice

Without having seen your sketch and the error message you get we're unable analyze the problem.

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;

Thank you for discussion
Erhy

Hi @erhy. You are using a fairly outdated version of the ESP32 Arduino boards platform. It is probably a good idea to update to the latest version.

Please follow these instructions:

  1. Select File > Preferences... from the Arduino IDE menus.
  2. Check the contents of the "Additional Boards Manager URLs" field.
    It must contain this exact URL:
    https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
    
  3. 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.
  4. Click the OK button.
  5. 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.
  6. Select Tools > Board > Boards Manager... from the Arduino IDE menus.
  7. Scroll down through the list of available boards platforms until you see "esp32 by Espressif Systems". Click on it.
  8. Click the INSTALL button. You will now see a "Processing esp32:2.0.2" notification, which has a thin progress bar at the bottom.
  9. Wait until the Successfully installed platform esp32:2.0.2" notification appears.
  10. 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:

H:\Users\gle\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32

That is the term you should use. The core is one component of a "boards platform", which is the entire contents of this folder:

H:\Users\gle\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6

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.

1 Like

After updating, you may need to select your board again in the boards manager.

1 Like

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.

Hi @zwebmedia. It looks like it might be a transient failure caused by a network outage. If you try it again now, do you get the same error still?

Thank you, yes, able to install next day and working now.

I'm glad it is working now. Thanks for taking the time to post an update. Enjoy!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.