Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

OneWire on STM32F405 not working

Đang mở
#11,133 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
42/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
python
Lĩnh vực
embedded-iot

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
C
Star
4.6k
Fork
1.4k
Merge trung bình
1 ngày 8 giờ
Pull request đã merge (30 ngày)
155

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của adafruit/circuitpython

Tất cả issue của adafruit/circuitpython

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.