-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Closed
Labels
Status: Awaiting triageIssue is waiting for triageIssue is waiting for triage
Description
Board
ESP32-WROOM
Device Description
ESP32-WROOM module on a specific PCB, to format information received on a serial port and transmit it to a WEB server
Hardware Configuration
Nothing specific
Version
v3.0.1
IDE Name
Arduino IDE
Operating System
Windows 11
Flash frequency
80 MHz
PSRAM enabled
yes
Upload speed
115200
Description
In the latest versions of the ESP32 card manager (version 3.0.0 to 3.0.2), compiling the esp_task_wdt_init() function generates an error.
There are no compilation errors with earlier 2.0.X versions (2.0.17 for example).
Sketch
#include <Arduino.h>
#include <esp_task_wdt.h>
#define WDT_DELAI 54
void setup() {
//
// initialisation du watchdog
//esp_task_wdt_init(WDT_DELAI, true);
esp_task_wdt_init(WDT_DELAI, true);
esp_task_wdt_add(NULL);
}
void loop() {
}
Debug Message
C:\Users\Pierre\AppData\Local\Temp\.arduinoIDE-unsaved202465-23444-mhiyh.ip69lj\sketch_jul5a\sketch_jul5a.ino: In function 'void setup()':
C:\Users\Pierre\AppData\Local\Temp\.arduinoIDE-unsaved202465-23444-mhiyh.ip69lj\sketch_jul5a\sketch_jul5a.ino:4:19: error: invalid conversion from 'int' to 'const esp_task_wdt_config_t*' [-fpermissive]
4 | #define WDT_DELAI 54
| ^~
| |
| int
C:\Users\Pierre\AppData\Local\Temp\.arduinoIDE-unsaved202465-23444-mhiyh.ip69lj\sketch_jul5a\sketch_jul5a.ino:10:21: note: in expansion of macro 'WDT_DELAI'
10 | esp_task_wdt_init(WDT_DELAI, true);
| ^~~~~~~~~
C:\Users\Pierre\AppData\Local\Temp\.arduinoIDE-unsaved202465-23444-mhiyh.ip69lj\sketch_jul5a\sketch_jul5a.ino:10:20: error: too many arguments to function 'esp_err_t esp_task_wdt_init(const esp_task_wdt_config_t*)'
10 | esp_task_wdt_init(WDT_DELAI, true);
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
In file included from C:\Users\Pierre\AppData\Local\Temp\.arduinoIDE-unsaved202465-23444-mhiyh.ip69lj\sketch_jul5a\sketch_jul5a.ino:2:
C:\Users\Pierre\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-bd2b9390ef\esp32/include/esp_system/include/esp_task_wdt.h:47:11: note: declared here
47 | esp_err_t esp_task_wdt_init(const esp_task_wdt_config_t *config);
| ^~~~~~~~~~~~~~~~~
exit status 1
Compilation error: invalid conversion from 'int' to 'const esp_task_wdt_config_t*' [-fpermissive]
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
- I confirm I have checked existing issues, online documentation and Troubleshooting guide.
Metadata
Metadata
Assignees
Labels
Status: Awaiting triageIssue is waiting for triageIssue is waiting for triage