Hello,
My monitor does not appear to be working correctly. The UART baud rate for my project and monitor is set at 115200. When I use monitor, I cannot properly see the output of most logs. The only logs which somewhat work are LOGE and LOGV, both of which sometimes skip or cut off messages. printf, however, works as expected. When using a serial monitor like PuTTy, I see all kinds of logs like normal.
Is there some setting in menuconfig which could have messed with this?
Thank you!
idf.py monitor not outputting logs correctly **SOLVED**
idf.py monitor not outputting logs correctly **SOLVED**
Last edited by zhenloopy on Fri Jan 31, 2025 4:56 pm, edited 1 time in total.
-
- Posts: 14
- Joined: Fri Dec 02, 2022 2:18 pm
Re: idf.py monitor not outputting logs correctly
Hi,
can you please provide some more details? Which platform are you using (in the case of Windows also if it is command line or Powershell)? What are the versions of ESP-IDF and esp-idf-monitor (should be at the start of the output) that you are using?
It would be also nice to see the output from the monitor to better understand what might be going on.
If you are using ESP-IDF v5.4 and newer I would recommend trying to run `idf.py monitor --disable-auto-color`, just to be sure there isn't any issue with colors.
Without further details, it's hard to tell what might be going on. Thank you in advance for providing it!
can you please provide some more details? Which platform are you using (in the case of Windows also if it is command line or Powershell)? What are the versions of ESP-IDF and esp-idf-monitor (should be at the start of the output) that you are using?
It would be also nice to see the output from the monitor to better understand what might be going on.
If you are using ESP-IDF v5.4 and newer I would recommend trying to run `idf.py monitor --disable-auto-color`, just to be sure there isn't any issue with colors.
Without further details, it's hard to tell what might be going on. Thank you in advance for providing it!
Re: idf.py monitor not outputting logs correctly
I'm using Linux on Bash. ESP-IDF is version 5.4 and esp-idf-monitor is version 1.5.0. Here is the output from when it starts up:
[Codebox]Executing action: monitor
Serial port /dev/ttyUSB0
Connecting.......
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting....
Detecting chip type... ESP32
Running idf_monitor in directory /home/zhenloopy/embedded/bme280_espidf
Executing "/home/zhenloopy/.espressif/python_env/idf5.4_py3.10_env/bin/python /home/zhenloopy/esp/esp-idf/tools/idf_monitor.py -p /dev/ttyUSB0 -b 115200 --toolchain-prefix xtensa-esp32-elf- --target esp32 --revision 0 /home/zhenloopy/embedded/bme280_espidf/build/bme280_drivers.elf -m '/home/zhenloopy/.espressif/python_env/idf5.4_py3.10_env/bin/python' '/home/zhenloopy/esp/esp-idf/tools/idf.py'"...
--- esp-idf-monitor 1.5.0 on /dev/ttyUSB0 115200
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H
ets Jul 29 2019 12:21:46
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:6276
load:0x40078000,len:15716
load:0x40080400,len:4
--- 0x40080400: _init at ??:?
ho 8 tail 4 room 4
load:0x40080404,len:3872
entry 0x40080640[/Codebox]
After this, it is mostly empty lines until:
[Codebox]W (291) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header.[/Codebox]
After this, it is back to empty lines. The terminal scrolls up as if there's text but all the lines are empty. Using --disable-auto-color had no effect, but thanks for the suggestion!
[Codebox]Executing action: monitor
Serial port /dev/ttyUSB0
Connecting.......
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting....
Detecting chip type... ESP32
Running idf_monitor in directory /home/zhenloopy/embedded/bme280_espidf
Executing "/home/zhenloopy/.espressif/python_env/idf5.4_py3.10_env/bin/python /home/zhenloopy/esp/esp-idf/tools/idf_monitor.py -p /dev/ttyUSB0 -b 115200 --toolchain-prefix xtensa-esp32-elf- --target esp32 --revision 0 /home/zhenloopy/embedded/bme280_espidf/build/bme280_drivers.elf -m '/home/zhenloopy/.espressif/python_env/idf5.4_py3.10_env/bin/python' '/home/zhenloopy/esp/esp-idf/tools/idf.py'"...
--- esp-idf-monitor 1.5.0 on /dev/ttyUSB0 115200
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H
ets Jul 29 2019 12:21:46
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:6276
load:0x40078000,len:15716
load:0x40080400,len:4
--- 0x40080400: _init at ??:?
ho 8 tail 4 room 4
load:0x40080404,len:3872
entry 0x40080640[/Codebox]
After this, it is mostly empty lines until:
[Codebox]W (291) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header.[/Codebox]
After this, it is back to empty lines. The terminal scrolls up as if there's text but all the lines are empty. Using --disable-auto-color had no effect, but thanks for the suggestion!
Re: idf.py monitor not outputting logs correctly
XTAL issue?
Re: idf.py monitor not outputting logs correctly
Yes, it was an XTAL issue. For anyone else working with an old ESP32, you may have to set your XTAL clock to 26mHz under
idf.py menuconfig -> Component config –> Hardware Settings –> Main XTAL Config –> Main XTAL frequency
Thank you!
idf.py menuconfig -> Component config –> Hardware Settings –> Main XTAL Config –> Main XTAL frequency
Thank you!
Who is online
Users browsing this forum: No registered users and 78 guests