pyboard 1.1, sd card, and ENODEV error
pyboard 1.1, sd card, and ENODEV error
Hi,
My pyboard v1.1 is booting from a 16Gb Sandisk sd card now. I am getting the ENODEV error on known good code. Resetting the file system to factory defaults will not help according to the documentation, because it does not reset the sd card file system. This is with Micropython v1.10.
Is there any reason it could not reset the sd card if the pyboard is booting from one?
8-Dale
My pyboard v1.1 is booting from a 16Gb Sandisk sd card now. I am getting the ENODEV error on known good code. Resetting the file system to factory defaults will not help according to the documentation, because it does not reset the sd card file system. This is with Micropython v1.10.
Is there any reason it could not reset the sd card if the pyboard is booting from one?
8-Dale
-
- Posts: 168
- Joined: Tue Nov 07, 2017 11:45 pm
Re: pyboard 1.1, sd card, and ENODEV error
Have you tried re formatting the disk?
Certain bugs in your code can corrupt the SD card.
Try os.listdir('/sd') in a REPL session are there any garbage filenames?
Certain bugs in your code can corrupt the SD card.
Try os.listdir('/sd') in a REPL session are there any garbage filenames?
-
- Posts: 168
- Joined: Tue Nov 07, 2017 11:45 pm
Re: pyboard 1.1, sd card, and ENODEV error
Are you sure it's not executing boot.py from flash?
Add a print statement to the boot.py on flash. And do a soft reboot in a REPL session.
Add a print statement to the boot.py on flash. And do a soft reboot in a REPL session.
Re: pyboard 1.1, sd card, and ENODEV error
I did. It is executing boot.py from the sd card. Now, I will reformat the sd card and see if that helps.rhubarbdog wrote: ↑Tue Mar 12, 2019 9:27 amAre you sure it's not executing boot.py from flash?
Add a print statement to the boot.py on flash. And do a soft reboot in a REPL session.
8-Dale
Re: pyboard 1.1, sd card, and ENODEV error
Yes. My PyBoard boots from the sd.
os.listdir('/sd') shows the correct listing, and there are no garbage filenames.rhubarbdog wrote: ↑Tue Mar 12, 2019 8:25 amTry os.listdir('/sd') in a REPL session are there any garbage filenames?
8-Dale
-
- Posts: 168
- Joined: Tue Nov 07, 2017 11:45 pm
Re: pyboard 1.1, sd card, and ENODEV error
Still getting OSError : ENODEV ?
If so post your code i'll see if i can help.
If so post your code i'll see if i can help.
Re: pyboard 1.1, sd card, and ENODEV error
Do you have a main.py file on he sd card? If that is missing, you get an error on boot. You may ignore that, or create an empty main.py.
Re: pyboard 1.1, sd card, and ENODEV error
I do have a main.py on the sd card, but there seems to be a bug in my code. This is a weird message to get for not being able to find an I2C device. I created a basic blink script and saved it to main.py and everything is fine.
8-Dale
-
- Posts: 168
- Joined: Tue Nov 07, 2017 11:45 pm
Re: pyboard 1.1, sd card, and ENODEV error
Does i2c.scan() find this device?
Have you got the correct pull up resistors on SDA and SCL?
Have you got the correct pull up resistors on SDA and SCL?
Re: pyboard 1.1, sd card, and ENODEV error
What happened is that the SCL wire came unhooked at the PyBoard. That is when I got the ENODEV error. It is reproducible.rhubarbdog wrote: ↑Wed Mar 13, 2019 5:43 pmDoes i2c.scan() find this device?
Have you got the correct pull up resistors on SDA and SCL?
8-Dale