2026 dongle: LED is PA0, add RX/finder/sweep pin-finding modes to the app

- Confirmed the status LED is on PA0 (active-high). README pin table updated:
  amplifier (AT2401C) control is one of PA1/PB1/PF0/PF1, still to distinguish.
- app.c gains bring-up modes for mapping the amplifier pins:
  - 'x' RX on the hexapod protocol (ch96/250k/HXPD1, 22-byte) + packet counter,
    to find the RX-enable pin by which pin lets the remote's packets arrive;
  - 'f'/'n' carrier-detect (RPD) finder (too noisy alone, kept for reference);
  - 'a' sweep every usable pin HIGH ~3s for LED/scope checks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mangavalkandClaude Opus 5.5 committed 2026-11-14 23:39:50 +01:00
1 parent 4fcf9cf3d7
commit 2a4f6335dd
2 files changed
+106 -7

No files matched your search

+9 -5
View File
@@ -29,12 +29,16 @@ Found by probing the board over SWD and confirmed at runtime by our firmware:
| USB serial (USART1) TX / RX | PA9 / PA10 → CH330N |
| SPI1 SCK / MISO / MOSI | PA5 / PA6 / PA7 → Si24R1 |
| nRF CSN / CE / IRQ | PA3 / PA4 / PA2 |
| free (LED + AT2401C TX/RX enable) | PA0, PA1, PB1, PF0, PF1 — **not yet mapped** |
| status LED (active-high) | **PA0** — confirmed by eye |
| AT2401C TX/RX enable + unused | PA1, PB1, PF0, PF1 — **not yet distinguished** |
The LED and the AT2401C control lines are somewhere in those 5 free pins (the
TSSOP-20 has no other GPIO); the app firmware toggles them one at a time so we
can identify them by eye / by a range test. Until the PA control is known the
radio still works, just at reduced range.
PA0 drives the LED (HIGH = on). The AT2401C control lines are among PA1, PB1,
PF0, PF1 (the TSSOP-20 has no other GPIO). Listening for ambient 2.4 GHz with
the radio's carrier-detect bit was too noisy to tell them apart, so they need a
real link test (dongle ↔ robot/remote, trying each pin while watching whether
packets get through). The radio still works without driving the amplifier, just
at reduced range. The app firmware can drive any pin (`0`-`4`), sweep them all
(`a`), and run a carrier-detect finder (`f`/`n`).
### Programming header (5 holes next to the CH330N)