Compiler / Libaray chnage for 2 to 3

Vishna
Posts: 2
Joined: Tue Nov 26, 2024 8:24 pm

Compiler / Libaray chnage for 2 to 3

Postby Vishna » Tue Nov 26, 2024 9:04 pm

Hi,

I'm new to ESP, but ... forced to work with it because, I have built an old hardware based on ESP, the corresponding software is from 2018. And may be, it helps a lot in order to create nice solutions in the future :)
To compile the software (which is from 2018) I used ARDUINO IDE + esp32 package 3.0.7.
Several errors were thrown, mainly related to timers, e.g. timerAlarmEnable.
I checked the package - 3.0.7 - the complaints are correct, nothing there, or interface is defined differently.
I tested with esp32 package 2.0.18 - the expected definitions are in the package, compile no problems.
(So it's okay so far - but I wouldn't like to leave it like that)
Am I right or wrong?
Assuming I am correct, and there is a change in the API/software interface, I would expect a delta - list, or a guideline on what to consider when going forward 2.x to 3.x.
Could you please help me with troubleshooting hints or a link?

Thanks!
Vishna

User avatar
ESPBoards
Posts: 8
Joined: Wed Jan 17, 2024 9:05 pm

Re: Compiler / Libaray chnage for 2 to 3

Postby ESPBoards » Wed Nov 27, 2024 10:11 am

You are completely right. In ESP32 Arduino core 3.x some breaking changes were introduced when comparing to 2.x. Because the 2.X was based on ESP-IDF 4.4 when the version 3.0 is based on ESP-IDF 5.1.

And you are even more right, not wanting to leave it like that, as the new version might have security fixes, or some nice new features you might want to have now or in the feature.

Regarding the “timerAlarmEnable”, the api has indeed been removed in ESP32 Arduino Core version 3.

You can find a migration guide from the Espressif in the docs - https://docs.espressif.com/projects/ard ... o_3.0.html

You should go through it and replace all the removed apis in your program with something equivalent.
ESPBoards.dev - Everything about ESP32 and ESP8266 Development Boards - https://www.espboards.dev

Vishna
Posts: 2
Joined: Tue Nov 26, 2024 8:24 pm

Re: Compiler / Library (Core) Change from 2 to 3

Postby Vishna » Thu Nov 28, 2024 11:46 am

Hello,

Thanks for the quick and clear replies and
sorry for the confusing looking subject (I should have checked it better before sending).

Vishna

Who is online

Users browsing this forum: Majestic-12 [Bot] and 117 guests