JohnCollis
Posts: 19
Joined: Mon Jun 22, 2015 7:07 pm

SD card access

Tue Oct 11, 2016 10:40 am

Is it possible to access the SD card from a bare metal environment without a file system in situ?

dwelch67
Posts: 961
Joined: Sat May 26, 2012 5:32 pm

Re: SD card access

Tue Oct 11, 2016 3:26 pm

It should be possible the file system is just bits in the flash, the access to the thing is the hard part not necessarily the bits being stored. And bare metal or not you dont have to use a standard file system (depending on where you attack the device), again it is just bits in some storage, so you can make up your own, or go with a standard format, make a dummy header that makes the whole thing look like one big file, etc.

User avatar
Ultibo
Posts: 160
Joined: Wed Sep 30, 2015 10:29 am
Location: Australia
Contact: Website

Re: SD card access

Sun Oct 16, 2016 12:14 am

JohnCollis wrote:Is it possible to access the SD card from a bare metal environment without a file system in situ?
Yes of course, I know of at least two examples that have bare metal SD card access:

Circle (C++) https://github.com/rsta2/circle
Ultibo (Free Pascal) https://github.com/ultibohub/Core

Remember also that U-Boot is essentially a bare metal environment as well and it also supports SD card access.
Ultibo.org | Make something amazing
https://ultibo.org

Threads, multi-core, OpenGL, Camera, FAT, NTFS, TCP/IP, USB and more in 3MB with 2 second boot!

Return to “Bare metal, Assembly language”