I switched from arduino
framework = Arduino
platform = espressif32
to espidf+arduino:
framework = Arduino, espidf
platform = espressif32
And after this, I no longer get any output from my ESP_LOGD statements. ESP_LOGE, ESP_LOGW, and ESP_LOGI still work.
I assume I have to turn on some debug flag but I have tried everything I can find and nothing works. I have tried:
- build flags:
build_flags =
-DCORE_DEBUG_LEVEL=4
- sdkconfig settings
CONFIG_BOOTLOADER_COMPILER_OPTIMIZATION_DEBUG=y
CONFIG_BOOTLOADER_LOG_LEVEL_DEBUG=y
CONFIG_BOOTLOADER_LOG_LEVEL=4
CONFIG_ARDUHAL_LOG_DEFAULT_LEVEL_DEBUG=y
CONFIG_ARDUHAL_LOG_DEFAULT_LEVEL=4
- local headers
#define LOG_LOCAL_LEVEL ESP_LOG_DEBUG
- code wildcards
esp_log_level_set("*", ESP_LOG_DEBUG);
None of this works. I must be missing some really obvious setting but I cannot find it and none of the threads I can find have the solution either.
The weird thing is, I am getting some debug [D] messages from internal libraries such as:
[ 6796][D][WiFiGeneric.cpp:1039] _eventCallback(): Arduino Event: 0 - WIFI_READY