Repeater, room server, sensor, companion: avoid nRF52840 SPIM3 Errata 195 idle current draw
This commit is contained in:
1 parent
86e2a16703
commit
c454dcba54
2 files changed
+6
No files matched your search
@@ -232,6 +232,11 @@ unnecessary idle draw that affect all nRF52 boards (not only SenseCAP Solar):
|
|||||||
before `Bluefruit.begin()`, which enables SoftDevice S140 (defaulting
|
before `Bluefruit.begin()`, which enables SoftDevice S140 (defaulting
|
||||||
`NRF_POWER` to LDO). `NRF52BoardDCDC::onBootComplete()` now re-enables DC/DC
|
`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.
|
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
|
## Measuring this yourself — two traps
|
||||||
|
|
||||||
|
|||||||
@@ -142,6 +142,7 @@ build_flags = ${arduino_base.build_flags}
|
|||||||
-D EXTRAFS=1
|
-D EXTRAFS=1
|
||||||
-D FW_OTA_PUBKEY='"${ota.pubkey}"'
|
-D FW_OTA_PUBKEY='"${ota.pubkey}"'
|
||||||
-D USE_CC310_HW_CRYPTO=1
|
-D USE_CC310_HW_CRYPTO=1
|
||||||
|
-D SPI_32MHZ_INTERFACE=1
|
||||||
lib_deps =
|
lib_deps =
|
||||||
${arduino_base.lib_deps}
|
${arduino_base.lib_deps}
|
||||||
https://github.com/oltaco/CustomLFS#0.2.3
|
https://github.com/oltaco/CustomLFS#0.2.3
|
||||||
|
|||||||
Reference in new issue
Block a user