IRMP crashes when trying to transmit if using ESP32 board manager v 2.6 or greater #81
-
Greetings, While using Arduino IDE V. 2.1.0 I'm seeing an issue where I get a CPU timer_isr_callback fault when trying to transmit IR using an ESP32 Dev Kit 1 board with ESP32 Board Manager version 2.6 or greater. If I revert the board version to 2.5 it works fine. Code snippet below. Any help in debugging would be appreciated. Might also call for a bug fix in the next library release version. Error Message: Version: 2.1.0 Copyright © 2023 Arduino SA EPS32 Board Manager version 2.0.5 IRMP Library Version 3.6. /* Web_Server_IR_Remote_2.ino
/* NOTE: Requires combination of ESP32 Board Manager Version 2.5 & IRMP Library Version 3.6.2 */ #include <Arduino.h> /*
/*
IRMP_DATA irsnd_data; const char* ssid = "Bobo"; //=============================================================== // print the SSID of the network you're attached to: // print your WiFi shield's IP address: // print the received signal strength: //=============================================================== irsnd_data.command = (unsigned long) server.arg("CMD_SEL").toInt(); irsnd_send_data(&irsnd_data, true); server.send(200, "text/plain", ""); void SendWebsite() { void setup() {
WiFi.begin(ssid, wifi_password); while(WiFi.status()!=WL_CONNECTED) { printWifiStatus(); server.on("/", SendWebsite); } void loop() { /*
*/ /*
#define tone(...) void() // tone() inhibits receive timer #elif defined(ESP32) #elif defined(ARDUINO_ARCH_STM32) || defined(ARDUINO_ARCH_STM32F1) #elif defined(AVR_ATtiny25) || defined(AVR_ATtiny45) || defined(AVR_ATtiny85) #elif defined(AVR_ATtiny87) || defined(AVR_ATtiny167) if defined(ARDUINO_AVR_DIGISPARKPRO)#define IRMP_INPUT_PIN 9 // PA3 - on Digispark board labeled as pin 9 else#define IRMP_INPUT_PIN 3 endif#elif defined(AVR_ATtiny88) // MH-ET Tiny88 board #elif defined(AVR_ATtiny1616) || defined(AVR_ATtiny3216) || defined(AVR_ATtiny3217) #elif defined(ARDUINO_ARCH_APOLLO3) #elif defined(ARDUINO_ARCH_MBED) && defined(ARDUINO_ARCH_MBED_NANO) // Arduino Nano 33 BLE, Arduino Nano RP2040 Connect #elif defined(ARDUINO_ARCH_RP2040) // Pi Pico with arduino-pico core https://github.com/earlephilhower/arduino-pico // If you program the Nano RP2040 Connect with this core, then you must redefine LED_BUILTIN #elif defined(TEENSYDUINO) #elif defined(AVR) #elif defined(ARDUINO_ARCH_SAMD) // On the Zero and others we switch explicitly to SerialUSB // Definitions for the Chinese SAMD21 M0-Mini clone, which has no led connected to D13/PA17. #else #if defined(AVR_ATmega4809) // for standard AVR we manage hardware directly in void enablePCIInterrupt() /*
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
I compiled SendAllProtocols and AllProtocols (#define USE_NO_LCD) with the latest versions and had no errors! |
Beta Was this translation helpful? Give feedback.
I compiled SendAllProtocols and AllProtocols (#define USE_NO_LCD) with the latest versions and had no errors!