How to supress debug-messages from Serial Monitor?


I just changed from Arduino-IDE to PlatformIO. I can compile, upload and run my program, but my serial console is flooded with something like

%d,%d>, passive=%d
ord is empty
 aid = %d, channel %d, %s, bssid = %02x:%02x:%02x:%02x:%02x:%02x
M�@��@M�@M�@M�@��@M�@��@M�@M�@2�@M�@M�@M�@M�@M�@M�@M�@M�@��@M�@A�@2�@��@��@��@M�@2�@M�@M�@M�@M�@��@2�@��@M�@M�@��@M�@2�@M�@M�@2�@�@i�@��@F�@z�@��@��@E�@��@E�@�@�@E�@��@��@��@��@��@��@��@p�@��@��@��@��@��@��@��@��@ �@&�@&�@&�@&�@&�@&�@&�@&�@&�@��@��@��@��@��@��@��@�
@��@��@��@��@��@��@��@��@��@��@��@��@��@��@��@��@��@U�@��@M�@��@��@j�@��@��@��@��@��@��@��@��@��@��@��@��@��@��@��@Y�@��@��@��@x�@��@��@��@y�@��@��@U�@:�@R�@��@��@#�@��@:�@0000000000000000                *@m�@r�@��@�@�@�@�@T@��@>@I@T@T@T@��@��@��@��@��@��@��@I@��@�
-2s %-3s %-5s %-11s %-10s %-8s %-8s

0.0W 0.00V

Its very hard for me to find my own printed debugging messages. How can i supress this “internal” messages?

I´ve tried
build_flags = -DCORE_DEBUG_LEVEL=0
in platformio.ini

in my code.

unfortunally without success.

When i build with arduino-ide there are only my own messages visible. Is that even possible with platformio?


The output looks extremely broken with format strings being there. Also, debug level 0 (none) is already default.

Can you please

  • show your platformio.ini
  • show the code
  • show the version of the ESP32 core in the Arduino IDE boards manager
; PlatformIO Project Configuration File


;   Build options: build flags, source filter

;   Upload options: custom upload port, speed and extra flags

;   Library options: dependencies, extra library storages

;   Advanced options: extra scripting


; Please visit documentation for the other options and examples



platform = espressif32

board = heltec_wifi_kit_32

framework = arduino

lib_deps = 




    adafruit/Adafruit DPS310@^1.1.1

monitor_speed = 115200

monitor_filters = direct, esp32_exception_decoder

build_flags = -DCORE_DEBUG_LEVEL=0


description = BafangTQ2 von Arduino

the full code is to big.

First lines:
#include <Arduino.h>

You mean that?

I am too stupid. Just found out i had the wrong configuration active!

is it possible in platformio to configure the output of log messages only from some of its functions? Cannot manage LOG_LOCAL_LEVEL. This is my platformio.ini
platform = espressif32
board = esp32dev
board_build.flash_mode = qio
board_build.f_flash = 80000000L
board_build.f_cpu = 240000000L
board_build.filesystem = littlefs
board_build.partitions = no_ota.csv
framework = arduino
build_flags = -DCORE_DEBUG_LEVEL=5

If you lower the CORE_DEBUG_LEVEL level, then this completely affects all logging.