4 ms·
This is a fun hack. FWIW, similar sorts of things can be used to add a PATA drive to a Cortex-M microprocessor like the STM32 series. Who doesn't want a microp
by ChuckMcM 6y ago
This is a fun hack. FWIW, similar sorts of things can be used to add a PATA drive to a Cortex-M microprocessor like the STM32 series.
Who doesn't want a micropython board with gigabytes of code space ? :-)
- jack12 6y agoIt hadn't occurred to me that PATA/IDE could be so simple to speak. Now I'm excited about the possibility of being able to dump a 25 or 30-year-old IDE drive I have that my USB adapter doesn't want to talk to (via another SATA-to-IDE adapter). The README says this option relies on the kernel's "ATA framework" (presumably for the protocol/non-interfacing logic?). Is that part of the "talking to a drive" stack very much to have to implement? Or do you know of any existing code for microcontrollers?
- manawyrm 6y agoDepends on what you want to do :) If you just want to read/write sectors of 512 bytes at a time, it's pretty easy to implement even on a simple MCU. There's a couple of registers which need to be set: https://wiki.osdev.org/ATA_PIO_Mode https://wiki.osdev.org/ATA_PIO_Mode and you can then just read/write the data from the parallel lines. Here's a similar project using an ATmega32: https://github.com/zwostein/idetrol https://github.com/zwostein/idetrol (i used this code, ported to ARM to check my hardware before I wrote the kerneldriver)
- stefan_ 6y agoHow can this be so easy but talking to an SD card is an impossible task without implementing a billion vendor/type quirks.
- deleted 6y ago[deleted]
- joezydeco 6y agoI’ve got a dual Cortex-A7 rocking full Python3 and 4GB of eMMC code space. But if I told you what it was, I’d get downvoted. So have fun with GPIO.
- boring_twenties 6y agoThose who would give up essential liberty, to purchase a little temporary karma, deserve neither liberty nor karma.
- joezydeco 6y agoA Broadcom user lecturing about liberty. Bless your heart. Let me know when you get the reference manual for that part.
- haneefmubarak 6y agoPlease enlighten us, what chip / board are you using?
- rasz 6y agoover 20 years ago using PIC16 microcontroller http://www.codepuppies.com/ben/sens/pic/mp3/ http://www.codepuppies.com/ben/sens/pic/mp3/
- ChuckMcM 6y agoOhhh, I remember that now! God the PIC16 is such a cursed architecture.
- SomeoneFromCA 6y agoyeah AVR was like breath of fresh air.
- rokweom 6y agoWow, that's amazing. Nowadays a 3$ board from aliexpress can do the same (with SD card or USB drive instead) and much more - more formats supported, Bluetooth etc. How the technology progressed.