Repeater, room server, sensor, companion: avoid nRF52840 SPIM3 Errata 195 idle current draw

This commit is contained in:
tth committed 2026-11-24 19:43:09 +01:00
1 parent 86e2a16703
commit c454dcba54
2 files changed
+6

No files matched your search

+5
View File
@@ -232,6 +232,11 @@ unnecessary idle draw that affect all nRF52 boards (not only SenseCAP Solar):
before `Bluefruit.begin()`, which enables SoftDevice S140 (defaulting
`NRF_POWER` to LDO). `NRF52BoardDCDC::onBootComplete()` now re-enables DC/DC
via `sd_power_dcdc_mode_set(NRF_POWER_DCDC_ENABLE)` once SoftDevice is active.
- **Avoid `NRF_SPIM3` (Nordic Errata 195)**: `[nrf52_base]` now sets
`-D SPI_32MHZ_INTERFACE=1`, moving the primary `SPI` bus (used by SX1262 at
2 MHz) from `NRF_SPIM3` to `NRF_SPIM2`. Adafruit `SPIClass::endTransaction()`
disables `SPIM3` without the Errata 195 workaround, leaving ~1.2-2 mA idle
draw after the first SPI transaction.
## Measuring this yourself — two traps
+1
View File
@@ -142,6 +142,7 @@ build_flags = ${arduino_base.build_flags}
-D EXTRAFS=1
-D FW_OTA_PUBKEY='"${ota.pubkey}"'
-D USE_CC310_HW_CRYPTO=1
-D SPI_32MHZ_INTERFACE=1
lib_deps =
${arduino_base.lib_deps}
https://github.com/oltaco/CustomLFS#0.2.3