All nRF52 images: I2C recovery after a stuck bus also covers a NACK in the same call
Changelog-topic: nrf52-i2c-stuck-bus Changelog: All nRF52 images: I2C recovery after a stuck bus also takes effect after a NACK in the same call Changelog-cs: Všechny nRF52 obrazy: obnova I2C po zaseknuté sběrnici zabere i po NACK ve stejném volání Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
6d114cd410
commit
a7a39126ac
2 files changed
+11
-8
No files matched your search
@@ -143,9 +143,10 @@ Repeater navíc:
|
||||
[tth-pub/Adafruit_nRF52_Arduino](https://git.rfa.cz/tth-pub/Adafruit_nRF52_Arduino)
|
||||
(meshcore-dev + tahle oprava).
|
||||
* **Zaseknutá I2C sběrnice už uzel nezamrazí.** Když čidlo drží linku dole,
|
||||
`Wire` dřív čekal navždy. Teď po 100 ms vrátí chybu (ne falešné „zařízení
|
||||
odpovědělo“) a sběrnici obnoví, takže čidla po uvolnění zase odpovídají bez
|
||||
restartu. Adafruit PR #873 a naše oprava, ověřeno na XIAO se SCL na GND.
|
||||
`Wire` dřív čekal navždy. Teď vrátí chybu (probe po 100 ms, čtení do ~0,3 s;
|
||||
ne falešné „zařízení odpovědělo“) a sběrnici obnoví, takže čidla po uvolnění zase odpovídají bez
|
||||
restartu. Adafruit PR #873, který převzal i naši opravu; ověřeno na XIAO se
|
||||
SCL na GND.
|
||||
* RSSI každého paketu se zaznamená při příjmu; `ContactInfo` se před
|
||||
částečným vyplněním vynuluje.
|
||||
|
||||
@@ -481,10 +482,10 @@ The repeater also has:
|
||||
fork [tth-pub/Adafruit_nRF52_Arduino](https://git.rfa.cz/tth-pub/Adafruit_nRF52_Arduino)
|
||||
(meshcore-dev + this fix).
|
||||
* **A stuck I2C bus no longer freezes the node.** With a sensor holding a line
|
||||
low, `Wire` used to wait forever. Now it returns an error after 100 ms (not
|
||||
a false "device ACKed") and resets the bus, so the sensors answer again once
|
||||
it is released, without a reboot. Adafruit PR #873 plus our fix, tested on a
|
||||
XIAO with SCL tied to GND.
|
||||
low, `Wire` used to wait forever. Now it returns an error (a probe after
|
||||
100 ms, a read within ~0.3 s; not a false "device ACKed") and resets the bus, so the sensors answer again once
|
||||
it is released, without a reboot. Adafruit PR #873, which took our fix in
|
||||
too; tested on a XIAO with SCL tied to GND.
|
||||
* Per-packet RSSI captured at RX; `ContactInfo` zeroed before a partial fill.
|
||||
|
||||
### Power, clock, GPS
|
||||
|
||||
+3
-1
@@ -120,6 +120,8 @@ platform = https://github.com/pioarduino/platform-espressif32/releases/download/
|
||||
; + 45188a6 (adafruit PR #873) and fca5ff3: Wire no longer hangs forever on a
|
||||
; stuck I2C bus, reports a timeout as an error (not as an ACK) and resets the
|
||||
; TWIM after it (tested on a XIAO with SCL tied to GND, 2. 12. 2026).
|
||||
; + 926a22c: synced with #873's head, which took fca5ff3 and added recovery
|
||||
; after a NACK in the same call and ERRORSRC/event clearing (bench x4, 3. 12. 2026).
|
||||
; Public: pub-release builds in tth-pub. The full 40-char SHA is used on purpose:
|
||||
; PlatformIO's shallow fetch choked on the SHORT SHA, which is the whole reason
|
||||
; the local build used a full clone + symlink. That symlink hack now lives ONLY
|
||||
@@ -127,7 +129,7 @@ platform = https://github.com/pioarduino/platform-espressif32/releases/download/
|
||||
; never leaks into the tracked tree and breaks CI again -- it did: a committed
|
||||
; `symlink:///home/user/...` gave PackageException on every nRF52 runner build.
|
||||
[nrf52_fw]
|
||||
pkg = https://git.rfa.cz/tth-pub/Adafruit_nRF52_Arduino.git#fca5ff3c715341408eff9d267ee9cb47a470d9fc
|
||||
pkg = https://git.rfa.cz/tth-pub/Adafruit_nRF52_Arduino.git#926a22c8474eaa10e7c2ea2425be65fb8b45c51f
|
||||
|
||||
[nrf52_base]
|
||||
extends = arduino_base
|
||||
|
||||
Reference in new issue
Block a user