Public Access
cardputer-adv-debug (-DRORO_DEBUG, version +debug) adds a Debug Console: after a token line, a client gets the last 6 KB of console output, live lines (ESP-IDF logs included) and the serial commands. The socket task only queues lines; the main loop runs them. Release builds compile none of it. The token lives in ~/.config/roro9stack/debug-token, created by _docker.sh and passed into the container. All output now goes through `console`, which never waits for USB: a host that was attached but not reading stalled the main loop up to 2 s per line. New commands everywhere: info (slots with their versions from NVS, since the framework stamps its own into each image), tasks, reboot, boot other, log level, help. scripts/rdbg.py is the client; flash.sh --debug builds it; CI builds both variants. ADR 0004. Verified on the device: USB-flashed, then updated over Wi-Fi to a Debug Build that confirmed on Probation; both slots hold Debug Builds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EhqxQ49eCju4CzKYNjZzwT
38 lines
1.1 KiB
INI
38 lines
1.1 KiB
INI
; roro9stack — firmware for M5Stack Cardputer ADV + Cap LoRa-1262
|
|
; Build/test/flash through scripts/ci.sh and scripts/flash.sh (Docker), see README.
|
|
|
|
[platformio]
|
|
default_envs = cardputer-adv
|
|
|
|
[env]
|
|
extra_scripts = pre:scripts/version.py
|
|
test_framework = unity
|
|
|
|
[env:cardputer-adv]
|
|
platform = https://github.com/pioarduino/platform-espressif32/releases/download/55.03.312/platform-espressif32.zip
|
|
board = m5stack-stamps3
|
|
framework = arduino
|
|
board_build.partitions = default_8MB.csv
|
|
monitor_speed = 115200
|
|
build_flags =
|
|
-DARDUINO_USB_CDC_ON_BOOT=1
|
|
-DARDUINO_USB_MODE=1
|
|
lib_deps =
|
|
m5stack/M5Cardputer @ 1.1.1
|
|
test_ignore = *
|
|
|
|
; Debug Build: the same firmware plus the Debug Console on TCP 2323 (see ADR 0004). The token comes
|
|
; from ~/.config/roro9stack/debug-token, passed in by scripts/_docker.sh; it's never committed.
|
|
[env:cardputer-adv-debug]
|
|
extends = env:cardputer-adv
|
|
extra_scripts = pre:scripts/version.py, pre:scripts/debug_flags.py
|
|
build_flags =
|
|
${env:cardputer-adv.build_flags}
|
|
-DRORO_DEBUG
|
|
|
|
; Host-side unit tests for pure logic (no hardware).
|
|
[env:native]
|
|
platform = native
|
|
lib_ldf_mode = deep+
|
|
build_flags = -std=gnu++17
|