Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5369

Bare metal, Assembly language • Re: How would you go about reading files (maybe fat32?) from separate partition on disk?

$
0
0
There are two file system's available on Pi's, the SD card and attached USB mass storage devices. Both require a hardware driver, either SD or USB. Then on top of software to drive the hardware storage device, FAT software is required to translate the file names, directories and file contents into raw storage sectors.

For a bare metal DOS type environment, a portable USB storage solution sounds cool so I thought I would share the new Lab20 of my project here: https://github.com/sean-lawless/computersystems

Lab20 Mass Storage/applications/console supports a command shell (that could be made DOS like) through the UART and video screen, as well as a USB with keyboard and mass storage (and network). Just add/integrate a FAT library... or wait for me to get around to it. If you like the demo and want to learn/integrate the code with your project, start reading the free first half of the book, there is plenty of information here on how the sausage is made ;-)

Statistics: Posted by sean.lawless — Thu Dec 21, 2023 6:11 am



Viewing all articles
Browse latest Browse all 5369

Trending Articles