firmware: debug/test build profiles with real behavioural differences

This commit is contained in:
Lars Nolden
2026-09-01 11:23:28 +02:00
parent 31c7aa7d02
commit c835c62172
9 changed files with 133 additions and 13 deletions
+7 -3
View File
@@ -64,12 +64,16 @@ grep -q "SDR_HEALTH=ok" "$RUN_DIR/sdr_health.txt" || {
# --- 4-6. build + flash + reset --------------------------------------------
if [ "$FLASH" = 1 ]; then
(cd firmware && idf.py build) > "$RUN_DIR/build.log" 2>&1
if ! (cd firmware && idf.py -p "$DUT_PORT" flash) >> "$RUN_DIR/build.log" 2>&1; then
# always the "test" profile: the configuration every reported number
# is measured with (see firmware/sdkconfig.defaults.test)
./tools/build.sh test > "$RUN_DIR/build.log" 2>&1
if ! (cd firmware && idf.py -B build-test -p "$DUT_PORT" flash) \
>> "$RUN_DIR/build.log" 2>&1; then
# the port re-enumerates when entering download mode; rediscover once
sleep 2
eval "$(./tools/discover_devices.sh)"
(cd firmware && idf.py -p "$DUT_PORT" flash) >> "$RUN_DIR/build.log" 2>&1
(cd firmware && idf.py -B build-test -p "$DUT_PORT" flash) \
>> "$RUN_DIR/build.log" 2>&1
fi
sleep 2
eval "$(./tools/discover_devices.sh)"