boochow / micropython-raspberrypi

bare metal Raspberry Pi Zero / Zero W port of MicroPython
MIT License
215 stars 24 forks source link

Fixed SD card driver #30

Closed astrelsky closed 4 years ago

astrelsky commented 4 years ago

Well, after spending all weekend digging through the obfuscation and rewriting it I found the problem.

I also have the changes necessary to use the current branch of micropython as there were changes to the vfs. If you'= would like those changes I can submit them.

boochow commented 4 years ago

@astrelsky thank you very much for fixing this. It was my big mistake.

Moreover I should fix some of wait_msec() calls parameters to speed up SD card functions because I had replaced wait_cycles() in bztsrc's original sd.c with wait_msec().