Updating espressif32 version

I’ve been using platformio to write esp32 code. When I compile my code it displays the following:
framework-arduinoespressif32 @ 3.20003.220613 (2.0.3)
From what I can tell, it’s using the espressif32 version 2.0.3 but I believe the latest version is 6.x. How can I change it to use a newer version? Here are the contents of my platformio.ini file:
[env:esp32x]
platform = espressif32
board = esp32doit-devkit-v1
framework = arduino
monitor_speed = 115200
lib_deps = mobizt/Firebase Arduino Client Library for ESP8266 and ESP32@^4.3.13

Thanks!

Updating your local platform is not done automatically (many people complained that it auto-broke their projects), so now you have to do it either via

  1. PlatformIO Home (GUI) → Platforms → Espressif32 → Update
  2. or, PlatformIO Core CLIpio pkg update -g -p espressif32
3 Likes

Hi @maxgerhardt, I performed the upgrade via PIO home. It showed 6.x (I don’t remember exactly). However, when I compile the code, I see the following:

  • framework-arduinoespressif32 @ 3.20009.0 (2.0.9)
    Is the latest version 2.0.9 or 6.x?

Thanks!

The espressif32 platform is of version 6.3.2 (see here), and that platform uses the package framework-arduinoespressif32 which is at version 2.0.9. Those are different entites in PlatformIO, a platform and (one of many) packages that the platform uses. Platform version almost never equals the used Arduino core package version, they’re versioned independently.

2 Likes

When to the Platforms, clicked Espressif32, selected my board(Deneyap Mini v2) but could not find “Update”

Also how do I determine what version of Espressif32 my board has?

It’s not your board that has an “Espressif version”, but you have installed an Espressif Platform on your system.

To check the version go to PIO-Icon / Quick Access / PIO Home / Platform
Then scroll to the Espressif32 platform and check the version number to the right.

If you want to know the Arduino framework version or ESP-IDF framework version check this list: platform-espressif32 versions · GitHub

You can have several versions installed at the same time and use different versions in different projects by specifying the version in platformio.ini:

platform = espressif32 @ 6.9.0
platform = espressif32 @ 6.5.0

Or pioarduino with the latest Espressif32 Arduino 3.1.0:

platform = https://github.com/pioarduino/platform-espressif32/releases/download/53.03.10/platform-espressif32.zip

Maybe I didn’t ask the question correctly or I don’t understand. My board has a Espressif chip, ESP32 -S2F, on it and I want to find out what version of chip firmware it has programmed into it. When the function ESP.restart() is called , it does not work and I read that updating the chip firmware will fix this problem.
It looks like what you are showing me is what is used to compile the code too. Does that version of chip firmware get uploaded to the chip each time an upload happens?
Thanks for including the image, it is very helpful to understand your comment.

ESP.restart() is a function of Espressif Arduino which you can use in your Code. Your Code / Sketch then will become the new firmware which is uploaded to the flash chip.

There is a small ROM area in the chip itself. However, this cannot be updated. But you do not have to worry about this.
More important is the Arduino / ESP-IDF version used.