pyboard 1.1, sd card, and ENODEV error

The official pyboard running MicroPython.
This is the reference design and main target board for MicroPython.
You can buy one at the store.
Target audience: Users with a pyboard.
rhubarbdog
Posts: 168
Joined: Tue Nov 07, 2017 11:45 pm

Re: pyboard 1.1, sd card, and ENODEV error

Post by rhubarbdog » Wed Mar 13, 2019 7:38 pm

ENODEV is correct for no SCL wire. Was it reporting an acceptable line number?

hybotics
Posts: 33
Joined: Tue Apr 03, 2018 2:58 am
Contact:

Re: pyboard 1.1, sd card, and ENODEV error

Post by hybotics » Wed Mar 13, 2019 7:51 pm

rhubarbdog wrote:
Wed Mar 13, 2019 7:38 pm
ENODEV is correct for no SCL wire. Was it reporting an acceptable line number?
How is ENODEV the correct error for a missing SCL connection? I do not understand. It was reporting a correct error line, but I did not connect ENODEV with an I2C issue. I have learned something new.

8-Dale

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: pyboard 1.1, sd card, and ENODEV error

Post by dhylands » Thu Mar 14, 2019 1:29 am

The way I2C works is that it sends out a request to a device by manipulating SCL and SDA. If either signal were disconnected, then it looks the same as if the wires were connected but the device wasn't responding, or the device was disconnected.

Since no device was detected, ENODEV is returned.

Post Reply