Closed italocjs closed 3 months ago
Semaphores to core logs is a bad idea. Point is data to go out as fast as possible and not hold any task/interrupt. Logging for us is just the same as ESP-IDF's log, we more or less call the same functions to print logs
I see your point, there will be a lot of cases where that could indeed cause issues. I'll write an wrapper for my "less critical" logs and try to keep them from clashing with ESPLOGx.
Board
ESP32 WROOM 32E 16MB
Device Description
unrelated, using devkit or proprietary board has the same effect
Hardware Configuration
using serial0 to debug
Version
latest master (checkout manually)
IDE Name
Platformio + ESPIDF + Arduino as component
Operating System
Unrelated
Flash frequency
240MHZ
PSRAM enabled
yes
Upload speed
115200
Description
When ESP_LOGx is used (redirecting to arduino logging function) some messages sent by both cores get corrupted, Single core does not present any issue. This is likely a missing semaphore or mutex handling on the wrapper function, i will investigate this further and if i find a solution will add an PR.
Example of expected output:
Actual output:
More details:
Platformio.ini
I am also attaching the sdkconfig used.
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide