-
Notifications
You must be signed in to change notification settings - Fork 133
Description
Description
espressif ESP32 (Board: Dev Module or M5Stack) provides logging by macros reacting to the "Core Debug Level" board setting.
(https://dl.espressif.com/dl/package_esp32_index.json, v1.0.7)
Once a log level is set FreeRTOS library gets included, but the builds fail due to an unresolved dependency to <avr/io.h>. Setting log level back to none and detaching FreeRTOS library enables successful builds again. Arduino IDE builds successfully. (Issue persits with Sloeber independently from whether Arduino IDE is installed or not).
So ESP32 default logging does not work.
To Reproduce
Source ino:
#include "Arduino.h"
void setup() {
log_e("Baaad.");
}
void loop() {}
- Create ESP32 project, "Core Debug Level" None
- Use full source ino from above
- Build --> successful
- Set Project>Preferences>Ardunio: "Core Debug Level": "Error"
- Build -->FreeRTOS gets included
- See error:
....
\eclipse\arduinoPlugin\libraries\FreeRTOS\10.4.3-8\src" -MMD -MP -MF"libraries\FreeRTOS\src\croutine.c.d" -MT"libraries\FreeRTOS\src\croutine.c.o" -D__IN_ECLIPSE__=1 "E:\dev\eclipse\arduinoPlugin\libraries\FreeRTOS\10.4.3-8\src\croutine.c" -o "libraries\FreeRTOS\src\croutine.c.o"
In file included from E:\dev\eclipse\arduinoPlugin\libraries\FreeRTOS\10.4.3-8\src\Arduino_FreeRTOS.h:57:0,
from E:\dev\eclipse\arduinoPlugin\libraries\FreeRTOS\10.4.3-8\src\croutine.c:27:
E:\dev\eclipse\arduinoPlugin\libraries\FreeRTOS\10.4.3-8\src\FreeRTOSConfig.h:30:20: fatal error: avr/io.h: No such file or directory
compilation terminated.
libraries\FreeRTOS\src\subdir.mk:49: recipe for target 'libraries\FreeRTOS\src\croutine.c.o' failed
make: *** [libraries\FreeRTOS\src\croutine.c.o] Error 1
"E:/dev/eclipse/arduinoPlugin/tools/make/make all" terminated with exit code 2. Build might be incomplete.
18:15:39 Build Failed. 3 errors, 0 warnings. (took 1s.266ms)
Expected behavior
Successful build & logging.
