Si5340 config fails with 'No such device or address' error #64

Closed
opened 2024-07-18 16:53:17 +08:00 by fsagbuya · 0 comments
Collaborator

Description

Si5340 pyfastservo module raises an OSError when attempting to read from the I2C bus:

-bash-5.2# python -m pyfastservo.si5340
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/nix/store/qs613mz65vpgvglmbyk2m37bzi0sk0as-python3-armv7l-unknown-linux-gnueabihf-3.11.9-env/lib/python3.11/site-packages/pyfastservo/si5340.py", line 271, in <module>
    configure_si5340()
  File "/nix/store/qs613mz65vpgvglmbyk2m37bzi0sk0as-python3-armv7l-unknown-linux-gnueabihf-3.11.9-env/lib/python3.11/site-packages/pyfastservo/si5340.py", line 88, in configure_si5340
    if not wait_device_ready(bus):
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/qs613mz65vpgvglmbyk2m37bzi0sk0as-python3-armv7l-unknown-linux-gnueabihf-3.11.9-env/lib/python3.11/site-packages/pyfastservo/si5340.py", line 61, in wait_device_ready
    if bus.read_byte_data(IC_ADDR, DEVICE_READY) == 0x0F:
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/qs613mz65vpgvglmbyk2m37bzi0sk0as-python3-armv7l-unknown-linux-gnueabihf-3.11.9-env/lib/python3.11/site-packages/smbus2/smbus2.py", line 433, in read_byte_data
    ioctl(self.fd, I2C_SMBUS, msg)
OSError: [Errno 6] No such device or address

### Description `Si5340` pyfastservo module raises an OSError when attempting to read from the I2C bus: ``` -bash-5.2# python -m pyfastservo.si5340 Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/nix/store/qs613mz65vpgvglmbyk2m37bzi0sk0as-python3-armv7l-unknown-linux-gnueabihf-3.11.9-env/lib/python3.11/site-packages/pyfastservo/si5340.py", line 271, in <module> configure_si5340() File "/nix/store/qs613mz65vpgvglmbyk2m37bzi0sk0as-python3-armv7l-unknown-linux-gnueabihf-3.11.9-env/lib/python3.11/site-packages/pyfastservo/si5340.py", line 88, in configure_si5340 if not wait_device_ready(bus): ^^^^^^^^^^^^^^^^^^^^^^ File "/nix/store/qs613mz65vpgvglmbyk2m37bzi0sk0as-python3-armv7l-unknown-linux-gnueabihf-3.11.9-env/lib/python3.11/site-packages/pyfastservo/si5340.py", line 61, in wait_device_ready if bus.read_byte_data(IC_ADDR, DEVICE_READY) == 0x0F: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/nix/store/qs613mz65vpgvglmbyk2m37bzi0sk0as-python3-armv7l-unknown-linux-gnueabihf-3.11.9-env/lib/python3.11/site-packages/smbus2/smbus2.py", line 433, in read_byte_data ioctl(self.fd, I2C_SMBUS, msg) OSError: [Errno 6] No such device or address ```
sb10q closed this issue 2024-07-31 17:32:10 +08:00
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/nix-servo#64
No description provided.