Debug Config OK, ready to realtime debugging

This commit is contained in:
2026-04-04 03:25:33 +02:00
parent 941a2b4eaa
commit 0dc5d1ce79
2 changed files with 26 additions and 11 deletions

View File

@@ -18,9 +18,18 @@ lib_deps =
hideakitai/PCA95x5@^0.1.3 hideakitai/PCA95x5@^0.1.3
adafruit/Adafruit SSD1306@^2.5.16 adafruit/Adafruit SSD1306@^2.5.16
garfius/Menu-UI@^1.2.0 garfius/Menu-UI@^1.2.0
monitor_speed = 115200
;Upload protocol configuration
upload_protocol = esptool
upload_port = /dev/ttyACM1
upload_speed = 921600 upload_speed = 921600
build_type = release
;Monitor configuration
monitor_speed = 115200
monitor_port = /dev/ttyACM1
; Build configuration
build_type = debug
[env:esp32-s3-devkitc1-n16r8-debug] [env:esp32-s3-devkitc1-n16r8-debug]
board = ${env:esp32-s3-devkitc1-n16r8.board} board = ${env:esp32-s3-devkitc1-n16r8.board}
@@ -28,19 +37,25 @@ platform = ${env:esp32-s3-devkitc1-n16r8.platform}
framework = ${env:esp32-s3-devkitc1-n16r8.framework} framework = ${env:esp32-s3-devkitc1-n16r8.framework}
lib_deps = ${env:esp32-s3-devkitc1-n16r8.lib_deps} lib_deps = ${env:esp32-s3-devkitc1-n16r8.lib_deps}
build_type = debug ;Upload protocol configuration
upload_protocol = esptool
monitor_speed = 115200 upload_port = /dev/ttyACM1
upload_speed = 921600 upload_speed = 921600
;Monitor configuration
monitor_speed = 115200
monitor_port = /dev/ttyACM1
; Debug configuration
debug_tool = esp-builtin debug_tool = esp-builtin
debug_speed = 15000 debug_speed = 15000
build_flags = ; Build configuration
build_type = debug
build_flags =
-O0 -O0
-g3 -g3
-ggdb3 -ggdb3
-fno-inline -DCORE_DEBUG_LEVEL=5
-DCORE_DEBUG_LEVEL=5 -DARDUINO_USB_CDC_ON_BOOT=0
-DARDUINO_USB_CDC_ON_BOOT=0 -fstack-protector-all
-fstack-protector-all

View File

@@ -25,8 +25,8 @@ void printTaskList()
void setup() void setup()
{ {
delay(250);
Serial.begin(115200); Serial.begin(115200);
delay(250);
// Setup Logger // Setup Logger
LOG_ATTACH_SERIAL(Serial); LOG_ATTACH_SERIAL(Serial);