Open Axlfc opened 1 month ago
Transferred issue to https://github.com/adafruit/circuitpython, because this issue is not related to the particular files.
There are various reasons the copies might be corrupted.
import storage
storage.erase_filesystem()
Hello and so many thanks for the quick response.
1. How are you copying the files? Drag and drop?
Yes, I download manually the source code and copy/paste to the board's folder, I went file by file because I noticed when copying the whole folder the behavior happens too.
2. The CIRCUITPY drive may be corrupted due to previously unplugging or resetting the device before a write was complete. Try this in the REPL serial connection. It will erase and reformat CIRCUITPY. Then copy the files agan.
import storage storage.erase_filesystem()
I tried this line, as well as installing the circuitpython .bin file... I used the bmorcelli's M5Stick-Launcher project and downloaded the .bin file from CircuitPython M5Stack Cardputer
3. The flash chip on the Cardputer may be defective. This is quite rare.
No idea, right now I'm currently trying to do this again using another USB port from my computer. It seems that using a non blue USB port it let me copy some of the files without the error. I may have my blue USB port damaged.
4. The original files may be corrupted. I'm guessing you looked for this already?
Yes, the original files are okay.
5. There my be utility programs (antivirus or disk utility, etc.) that are interfering with the copy.
I tried to blocking antivirus and still hapening.
It seems that using another usb port from my computer that is not blue let me copy some the files successfully and without any errors... It is still happening.
It happened again with switch_round.py
🤐
Weird, but I tried copiying it again (I have the board connected to a different USB already, first time it happened the error, the second it let me copy the file) and it let me copy (?)
It's behaviour is like the unit unmounts/mounts again when copying the files... The partition of this CIRCUITPYTHON (E:) it's in FAT format.
Now I'm trying to delete the folder adafruit_display_shapes
, it's not letting me delete the folder, and it's showing this...
The content of the folder:
😱
I managed to remove it.
Maybe I do have some problem with the board itself, or maybe is the cable I'm using...
This is how the unit looks when I try to copy the files:
After a short time (or some times pressing Enter in the Cardputer itself) it mounts.
Are you using a hub or a direct connection?
Please try a different cable as well.
Could you try CircuitPython 9.0.5 and see if it makes any difference?
Are you using a hub or a direct connection?
Direct connection to the pc.
Please try a different cable as well.
I have another cable and it still happening...
Could you try CircuitPython 9.0.5 and see if it makes any difference?
Sure I will try again, I'm resetting using the command you gave me earlier and try the whole process again and write it here in few minutes.
import storage
storage.erase_filesystem()
Using CircuitPython 9.0.5:
This files are copied without problems.
Now I try to copy the mentioned files.
This has given no errors so far, now I go with the folder on my next step:
ALL FILES COPIED SUCCESSFULLY USING CircuitPython 9.0.5
I also have been messing putting a git repository in this folder... That may have affected this in some way... after i copied a .git folder into the file system the error appeared again...
So 9.0.5 is not better when the .git tree is added?
If you have another computer to try that's rather different (e.g. Mac, RPi, etc.) that would be a useful experiment.
Sorry I do not have a Mac nor RapsberryPi, but next day I'll try I'd replicate whole file copying and file editing process in my dual boot ubuntu GNU/Linux (it's the same pc I run Windows 10) and see what happens.
It blocked again like this
trying to edit the code.py
file...
😰
It's only happening randomly at some times... But fortunately the last changes I made it worked.
But for now it's accomplished copying the library files inside the filesystem and they are not showing corrupt.
Well I guess I won't be using .git folder in the Cardputer running CircuitPython 9.0.5 nor the beta version, I will keep running this version for now, but we accomplished to copy the libraries, very much a success. 😁
Thank you very much for your help!!
Similar issue here.
Description:
When attempting to copy the files
multisparkline.py
,polygon.py
,rect.py
,roundrect.py
,sparkline.py
,triangle.py
into my CircuitPython device (drive E: named CIRCUITPY), the file becomes corrupted with strange characters, and the following error message appears:Steps to Reproduce:
multisparkline.py
,polygon.py
,rect.py
,roundrect.py
,sparkline.py
,triangle.py
from the source directory to the CIRCUITPY drive at directoryE:\lib\adafruit_display_shapes
.multisparkline.py
,polygon.py
,rect.py
,roundrect.py
,sparkline.py
,triangle.py
on the CIRCUITPY drive.Actual Behavior:
No puede copiar el archivo debido a un error inesperado. Si sigue recibiendo este error, puede usar el código de error para buscar ayuda para este problema. Error 0x800701 B1: Se ha especificado un dispositivo que no existe.
Additional Information:
Content on the resultant files: multisparkline.py:
polygon.py:
rect.py:
roundrect.py:
sparkline.py:
triangle.py:
Best regards