Docs: SPIM2 instead of SPIM3 measured at 0.47 mA; DIO1 GPIOTE rewrite not worth it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
tthandClaude Opus 5.5 committed 2026-12-03 20:05:44 +01:00
1 parent dc1234a087
commit 8605d35a64
1 file changed
+21 -5
+21 -5
View File
@@ -323,6 +323,27 @@ x1 witness matched what it sent in every cell (base 82 received for 72 sent;
x4 also hears other bench traffic). The witness again only detects a gross
loss, not a sensitivity loss.
**Two compile-time candidates, A/B/A/C/A at 3.3 V (3. 12. 2026).** Same rig
(x4 on its 3V3 pin at 3.25 V through the budka INA226, no USB), but the public
`Xiao_nrf52_repeater` env with `FW_OTA=1`, a BLE console and the bench preset,
and a BMP388 + INA226 asleep on the I2C bus. The five images were swapped with
OTA deltas over the BLE console (`ota_pack.py diff` + `ota_push.py --apply`,
~1.5 min each, the BLE link dropped before each cell), so nothing was
replugged. Cells of 10 min after 60 s of settling. The three baseline cells
read **7.06 / 7.07 / 7.06 mA** (fit), so the threshold is again ~0.03 mA.
| image | cell | vs. the surrounding baselines |
|---|---|---|
| `SPI_32MHZ_INTERFACE=0` (SX1262 back on `NRF_SPIM3`) | 7.53 mA | **+0.47 mA** |
| DIO1 interrupt detached (no GPIOTE IN channel at all) | 7.06 mA | **±0.00 mA** |
The SPIM2 move (`[nrf52_base]`, Errata 195) is thus worth 0.47 mA, less than
the 1.2–2 mA the errata suggests but well above resolution. Leaving the GPIOTE
IN channel for DIO1 costs nothing measurable: the C image is an upper bound
for any GPIOTE PORT rewrite (it removes the channel completely, so it would
also miss every packet), and it reads the same as the baseline. That rewrite
is therefore not worth doing.
**Measured to make no difference, kept anyway** (each below 0.1 mA):
- **DC/DC re-enabled after SoftDevice start** (`onBootComplete()`):
+0.02 / −0.10 mA at runtime on the 5 V pin, and no difference as a boot flag
@@ -335,11 +356,6 @@ loss, not a sensitivity loss.
pair each. That is at the edge of resolution and of no practical weight.
**Not measured** (compile-time or other hardware):
- **Avoid `NRF_SPIM3` (Nordic Errata 195)**: `[nrf52_base]` sets
`-D SPI_32MHZ_INTERFACE=1`, which moves the SX1262 `SPI` bus from `NRF_SPIM3`
to `NRF_SPIM2`. `SPIClass::endTransaction()` disables `SPIM3` without the
errata workaround, which is worth ~1.2–2 mA idle per the errata. A clean
baseline of 11.5 mA on this board leaves little room for that.
- **GPS UART pins disconnected while the GPS is off**:
`NmeaGpsDriver::stopHardware()` resets TX/RX via `nrf_gpio_cfg_default()`
after `Uart::end()`, so the unpowered receiver is not back-powered.