How to force use of a specific platform package version

I use Arduino/ESP32 on a specific chip type (NINA-W1). For this the ESP32 bits are downloaded using the additional URL https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json; this normally works fine.

However, just over a week ago, a new version was added to the ESP32 bits, version 2.0.4, and this no longer works with the specific chip type I am using. Hence I need to be able to configure my arduino-cli build to continue to use version 2.0.3 (which is still listed there in package_esp32_index.json), rather than always updating to and using the latest version, which is what it seems to do naturally.

How do I tell it to use a specific version of the platform stuff?

Hi @robmeades

What is the command you are running which causes it to update to the latest version?

This command installs the latest release:

arduino-cli core install esp32:esp32

This command installs the 2.0.3 release:

arduino-cli core install esp32:esp32@2.0.3

[EDITED]: found where to put that! Apologies, I had to just unpack the bits of our automated test system which emit these commands, I found the bit where it does:

arduino-cli core install esp32:esp32

I will update that to be:

arduino-cli core install esp32:esp32@2.0.3

Thanks for you swift response!

You are welcome. I'm glad if I was able to be of assistance.

Regards, Per

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