Repeater, room server, sensor, companion: fix nRF52 sleep wake-up loop and keep DC/DC enabled after BLE init
This commit is contained in:
1 parent
d09576090b
commit
b5ae48e2e4
3 files changed
+40
-4
No files matched your search
@@ -218,6 +218,21 @@ then shows `RESETREAS=0x00020000`, bit 17, wake from LPCOMP); with a cutoff
|
||||
set, lowering the supply below it must switch the node off within ~3 minutes
|
||||
and `get pwr` after the wake must say `last off: Low Voltage`.
|
||||
|
||||
## nRF52 sleep & peripheral fixes (bench verification pending)
|
||||
|
||||
Audit of the nRF52840 firmware and Adafruit core identified several sources of
|
||||
unnecessary idle draw that affect all nRF52 boards (not only SenseCAP Solar):
|
||||
|
||||
- **`CRYPTOCELL_IRQn` sleep insomnia**: `USE_CC310_HW_CRYPTO=1` runs CC310 in
|
||||
polling mode with `CRYPTOCELL_IRQn` disabled in NVIC; completed operations
|
||||
leave it pending and immediately wake `sd_app_evt_wait()`/`__WFE()`.
|
||||
`NRF52Board::sleep()` now clears `CRYPTOCELL_IRQn` before sleeping, matching
|
||||
Adafruit core's `wiring.c`.
|
||||
- **DC/DC regulator after SoftDevice start**: `NRF52BoardDCDC::begin()` runs
|
||||
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.
|
||||
|
||||
## Measuring this yourself — two traps
|
||||
|
||||
1. **A solar node measured on its USB side measures the CHARGER.** With a
|
||||
|
||||
Reference in new issue
Block a user