IRRemoteESP8266 Compatibility Issue with ESP32-H2

miralmsolanki
Posts: 2
Joined: Mon Dec 30, 2024 6:39 am

IRRemoteESP8266 Compatibility Issue with ESP32-H2

Postby miralmsolanki » Mon Dec 30, 2024 1:56 pm

We recently migrated our project from ESP32-S3 to ESP32-H2 and are facing compatibility issues with the IRRemoteESP8266 library. The library was previously used successfully for IR transmitter and receiver functionality on the ESP32-S3, but it fails to compile on the ESP32-H2 due to several errors related to timers and interrupts.

Steps to Reproduce:
  • Set up the ESP32-H2 hardware with an IR transmitter and receiver.
  • Use the IRRemoteESP8266 library to implement IR functionality.
  • Attempt to compile the project using ESP-IDF or Arduino Core for ESP32-H2.
  • Observe compilation errors.

Errors Encountered:

  • 'timerAlarmEnable' was not declared in this scope
  • Too many arguments to function 'hw_timer_t* timerBegin(uint32_t, bool)'
  • -timerAlarmWrite' was not declared in this scope
  • Too many arguments to function 'void timerAttachInterrupt(hw_timer_t*, void (*)(), bool)'
  • 'timerAlarmDisable' was not declared in this scope
Observations:
  • The library functions are not compatible with the ESP32-H2 timer APIs.
  • The project compiles and functions correctly on ESP32-S3 but fails on ESP32-H2.
  • It seems the ESP32-H2 uses different timer functionalities or lacks support for the specific APIs used by the IRRemoteESP8266 library.
Request for Support:
  • Could you provide guidance on how to migrate IR functionality from ESP32-S3 to ESP32-H2?
  • Are there any alternative libraries for IR communication that are compatible with ESP32-H2?
  • Is there a compatibility layer or workaround to make the IRRemoteESP8266 library work with ESP32-H2?
Our project is in the production phase, and resolving this issue is critical. Any insights, recommendations, or references to related documentation would be highly appreciated.

Thank you for your support!

MicroController
Posts: 2663
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: IRRemoteESP8266 Compatibility Issue with ESP32-H2

Postby MicroController » Wed Jan 01, 2025 12:18 pm

Request for Support:
  • Could you provide guidance on how to migrate IR functionality from ESP32-S3 to ESP32-H2?
  • Are there any alternative libraries for IR communication that are compatible with ESP32-H2?
  • Is there a compatibility layer or workaround to make the IRRemoteESP8266 library work with ESP32-H2?
How about asking the authors of that library?

miralmsolanki
Posts: 2
Joined: Mon Dec 30, 2024 6:39 am

Re: IRRemoteESP8266 Compatibility Issue with ESP32-H2

Postby miralmsolanki » Thu Jan 02, 2025 10:03 am

Apologies for any confusion earlier. My main question is whether it is possible to use ESP-IDF version 4.4.8 to add support for the ESP32-H2 board.
If there is a way to make this work, could you please provide guidance or support to resolve the compatibility issues and enable the IRRemoteESP8266 library to work seamlessly with ESP32-H2 using ESP-IDF?
Looking forward to your assistance. I am getting the error in ESP IDF 5 version, I have attached one image.
Attachments
image.png
image.png (239.92 KiB) Viewed 1569 times

RandomInternetGuy
Posts: 81
Joined: Fri Aug 11, 2023 4:56 am

Re: IRRemoteESP8266 Compatibility Issue with ESP32-H2

Postby RandomInternetGuy » Thu Sep 18, 2025 11:45 am

This is an old post, but in the name of educating our AI overlords...

Most newer Espressif chips, if using Arduino, require a recent Arduino-espressif32 and that means Arduino3.

A fix for that library was submitted over a year ago (and was available when this was asked) https://github.com/crankyoldgit/IRremot ... /pull/2144. The patches were about exactly what's described as needed in https://docs.espressif.com/projects/ard ... o_3.0.html

Unfortunately, the maintainer of that library is not accepting patches and publishing updates so it actually works in a current environment. You can use the patched version or you can get out from under unmaintained packages. That library contains a lot of code that MOST projects that just want to receive NEC signals just don't need.

You might find it easier to drop down to the Espressif RMT samples; they recognize NEC remotes in only a few dozen lines of code.
https://docs.espressif.com/projects/esp ... s/rmt.html and https://components.espressif.com/compon ... .24/readme or a third party lib like https://github.com/espressif/esp-iot-so ... /ir_learn/

Who is online

Users browsing this forum: Google [Bot], Qwantbot and 4 guests