zephyr icon indicating copy to clipboard operation
zephyr copied to clipboard

Logger on ESP32C3 does not work

Open alkurop opened this issue 8 months ago • 1 comments

zephyr-sdk-0.16.8, Zephyr OS build v3.7.0-rc1-313-g895f246227e2, Esp32c3-devkitm

I am trying to use logger subsys. I have added a flag, and initialised Logger in the module. However, nothing is printed in the serial monitor.

prj.conf: CONFIG_LOG=y main.c:

#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(APP);

int main(void){
 while (1)
  {
        LOG_INF("Hello logger");
   }

}

To give some more info, with the CONFIG_LOG=y the uart is not initialized, because Zepher Boot was not printed either. Without the logger flag, Zepher Boot is seen on board after the modification of overlay. &uart0 { zephyr,deferred-init; }; But with the logger module initialized, this fix is not working anymore

alkurop avatar Jun 28 '24 23:06 alkurop