unable to print logs with esp32 audio kit

lidor203@gmail.com
Posts: 3
Joined: Tue Sep 26, 2023 5:12 am

unable to print logs with esp32 audio kit

Postby lidor203@gmail.com » Tue Oct 14, 2025 6:49 am

Hi everyone.

I'm new to esp and just started a project with ESP32-LyraT v4.3 audiokit.
My goal for now is to make a c project that plays a .wav file from a FAT32 formatted sdcard.
I successfully flashed the esp with my project but when I try to use monitor to watch it, I don't see any of my printf/ESP_LOG messeges (which I need for identification if i mounted the sdcard and for general debugging). I do see all of the esp logs from boot and main task (which calls and returns from the app_main).
chatGPT advised me to change the boundrate, add delay to the code and check menuconfig configuration but still no luck.
any ideas on what should I do next?

lbernstone
Posts: 1131
Joined: Mon Jul 22, 2019 3:20 pm

Re: unable to print logs with esp32 audio kit

Postby lbernstone » Tue Oct 14, 2025 5:18 pm

You haven't mentioned what IDE you are using. In Arduino IDE, you should see all the logging from IDF if you set the Core Debug Level to verbose in the Tools menu. You can also do this through a define (-DCORE_DEBUG_LEVEL=5). In IDF, you can set the log level with the esp_log_level_set(const char* tag, esp_log_level_t level) function. Note that if you are using a variant with hardware USB, this can be a lot more complicated.

lidor203@gmail.com
Posts: 3
Joined: Tue Sep 26, 2023 5:12 am

Re: unable to print logs with esp32 audio kit

Postby lidor203@gmail.com » Fri Oct 17, 2025 7:52 am

Hi. Thank you for your respond.
I'm using ESP-IDF 5.5. with your advice I added the line "target_compile_definitions(${COMPONENT_LIB} PRIVATE CORE_DEBUG_LEVEL=5)" to my CMakelists.txt file and I also used esp_log_level in my code as shown below (still no luck).
Any more suggestions?

code example -

static const char *TAG = "MY_TAG";

void app_main(void)
{
esp_log_level_set(TAG, ESP_LOG_DEBUG); // Set dynamic log level

ESP_LOGE(TAG, "This is an error");
ESP_LOGW(TAG, "This is a warning");
ESP_LOGI(TAG, "This is info");
ESP_LOGD(TAG, "This is debug");
ESP_LOGV(TAG, "This is verbose");

printf("Plain printf message\n");

// Loop to keep printing every second
while (1) {
ESP_LOGI(TAG, "Looping log...");
vTaskDelay(pdMS_TO_TICKS(1000));
}
}

lbernstone
Posts: 1131
Joined: Mon Jul 22, 2019 3:20 pm

Re: unable to print logs with esp32 audio kit

Postby lbernstone » Sat Oct 18, 2025 3:42 pm

If you are using IDF, you should set the log level in menuconfig or your sdkconfig. You probably shouldn't post your question in an arduino specific forum if you aren't using it.

Who is online

Users browsing this forum: Google [Bot], Semrush [Bot] and 3 guests