WDHold and Sw_Bus_Prime both assigned pin 23 — ResetWD() glitches primary power bus
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Tranquilo
- Stack tecnológico
- arduino, cpp
- Área
- embedded-iot
Línea de trabajo
Start by reading the pin assignments in src/Okapi.h, then trace begin() and ResetWD() and the four active Run() call sites named in the issue. Confirm the board's pin constraints and whether the signals are intended to share a pin before choosing a fix; done means watchdog resets no longer glitch the primary power bus, with the shared-pin behavior documented if intentional.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Bug
In src/Okapi.h, two member variables are both assigned Arduino pin 23:
uint8_t WDHold = 23;
uint8_t Sw_Bus_Prime = 23;
ResetWD() pulses WDHold HIGH then LOW (5 µs LOW pulse) to feed the external watchdog. Because Sw_Bus_Prime is the same physical pin — held HIGH in begin() to enable the primary power rail — every ResetWD() call briefly pulls the power bus LOW.
ResetWD() was previously commented out everywhere in Run(); commit 7c04bf1 enabled it in four active call sites (NewLog path, LogEvent/alarm-reset path, ManualLog path, ExtIntTripped path), so this glitch now fires multiple times per duty cycle.
Failure scenario
Any I2C or SPI transaction in progress when ResetWD() fires sees a momentary power rail droop. On a battery/solar system with marginal capacitance this causes I2C NACKs, SD write corruption, or sensor read failures every duty cycle.
Possible causes
Either WDHold should be a different pin, or Sw_Bus_Prime should be a different pin, or both signals intentionally share a pin (in which case ResetWD() needs a null-pin guard and the shared assignment should be documented).
Severity
High — active in every duty cycle once ResetWD() is enabled.
🤖 Generated with Claude Code
- Lenguaje dominante
- C++
- Estrellas
- 1
- Forks
- 0
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de NorthernWidget/Okapi_Library
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
-
Dificultad 3/5 1-2 días Aptitud para principiantes 56/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
Todos los issues de NorthernWidget/Okapi_Library
Issues similares
-
nth_root does not restore the rounding mode and can return an upper bound below the true rootAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
1 type: problem 2 scope: firmware 3 good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
SpaceTeam/STS1_COBC_SW#511 ·
-
documentation good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
imaaiagent/fumi#3 ·
-
[Performance]: Beam search re-materializes Result.output_token_ids from pybind once per beamAbiertoGeneral perf
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
NVIDIA/TensorRT-LLM#20236 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
E3SM-Project/mam4xx#603 ·
Los mantenedores suelen responder en 1 día