Public Access
The probe finds the SX1262 (TCXO 1.8 V works) and measures the antenna path: the Cap's PI4IOE5V6408 at 0x43 must drive P0 high, or the receiver is deaf (-111.9 dBm flat vs -87 to -94 dBm with P0 high). DIO2 makes no difference to reception. Receive only; the radio is left asleep. RadioLib 7.8.1 + probe: +23.6 KB flash, +656 B static RAM (release). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EhqxQ49eCju4CzKYNjZzwT
49 lines
1.7 KiB
INI
49 lines
1.7 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
|
|
jgromes/RadioLib @ 7.8.1
|
|
test_ignore = *
|
|
; Smaller TLS buffers (M2): the framework is rebuilt with these settings (pioarduino "hybrid
|
|
; compile"). Receive stays 16 KB (servers send full TLS records); send drops to 4 KB (IRC lines are
|
|
; short); buffers are allocated as needed and handshake-only data is freed once connected.
|
|
custom_sdkconfig =
|
|
CONFIG_MBEDTLS_ASYMMETRIC_CONTENT_LEN=y
|
|
CONFIG_MBEDTLS_SSL_IN_CONTENT_LEN=16384
|
|
CONFIG_MBEDTLS_SSL_OUT_CONTENT_LEN=4096
|
|
CONFIG_MBEDTLS_DYNAMIC_BUFFER=y
|
|
CONFIG_MBEDTLS_DYNAMIC_FREE_CONFIG_DATA=y
|
|
CONFIG_MBEDTLS_DYNAMIC_FREE_CA_CERT=y
|
|
|
|
; 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
|