Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

OneWire on STM32F405 not working

Aperta
#11,133 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
python
Ambito
embedded-iot

Direzione di ricerca

Start by running the linked onewire_simpletest.py example on the STM32F405 and compare its behavior with the working Metro Express or Playground Express boards. Read adafruit_onewire/bus.py around the reported scan failure and check whether the results match the issue’s two cases: no sensor connected and sensors connected; done means the bus behaves correctly on the STM32F405.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug stm

[Redo of #3935 to remove original reporter.]

DS18B20 OneWire sensors connected to STM32F405 Pin D5 (I tried also D6, etc.) failed. Pull Up resistor is not the issue.

ow_bus.scan() shows different behavior in case of:
a) pin is not connected or
b) sensor or multiple sensors are connected

Case a) IndexError: list index out of range
Case b) nothing is showing up

Same code (with different pins) and same sensors with Metro Express and Playground Express boards is working well.

Tried "Simple Test" for one wire from GitHub

Even the pull up resistor is not the issue because it works on other boards the result is:

code.py output:
Resetting bus...Traceback (most recent call last):
  File "code.py", line 14, in <module>
RuntimeError: Nothing found on bus.

If I remove the one wire sensors the result is:

code.py output:
Resetting bus...OK.
Scanning for devices...Traceback (most recent call last):
  File "code.py", line 18, in <module>
  File "adafruit_onewire/bus.py", line 158, in scan
RuntimeError: Maximum device count of 10 exceeded.

Perhaps stm32duino / Arduino_Core_STM32 group is working on something similar (no. 412) and maybe the link is helpful even it is not CircuitPython related: Support OneWire device (ex: DS1822) #412

Lingua principale
C
Stelle
4.6k
Fork
1.4k
Merge medio
1g 7h
PR unite (30g)
166

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di adafruit/circuitpython

Tutte le issue di adafruit/circuitpython

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.