• Welcome to SCdev.org. Please log in.

Welcome to the new SCdev forums!

Drivers in ARM assembler? (for GBA SC SD and SC DS-ONE)

Started by SoLo2, June 18, 2008, 09:01:48 PM

Previous topic - Next topic

SoLo2

Hello!



I wisht to have some information about
how the SuperCards SD can be read/write.
For NDS-One and GBA SD.

Are there any drivers in ARM assembler?

I think that knowing the control commands
for the SPI bus should be sufficient to
program an assembler driver for DS-ONE.

I once downloaded a driver for GBA SC SD
in ARM assembler, but I can not find it
anymore. Where could I find it?



Thanks,
greetings,
SoLo2

bitblt

Hello.  :)

If you download the SuperCard (One) DLDI source code you will find drivers written in ARM assembly for reading and writing micro SD flash memory. Also check out the Moonshell source code (for DSONE) on the same page that also has ARM source code for DSONE.

http://eng.supercard.cn/soft_scdsone_sdhc.htm

DLDI is a standard interface for DS homebrew applications that provides common vector tables for reading and writing flash memory with various DS cards like DSONE, R4, DS-Link etc.

For GBA look for source code made available by Chrishm and Darkfader.

SoLo2

Hello!


o.k., I downloaded the
SuperCard (One) DLDI source code
and there is a driver, but it is
written in "C" language.


Bye, bye,
SoLo2

bitblt

Quote from: SoLo2 on June 19, 2008, 03:08:25 PM
o.k., I downloaded the
SuperCard (One) DLDI source code
and there is a driver, but it is
written in "C" language.

Yes, you are correct. ??? Something must have changed because ASM source used to be included. I'll see if I can find the original download on my harddrive when I get home for work.  However, if you download the Moonshell for SCDS (using the same link above) you will find ARM source like io_scsd_asm.s and io_scms_asm.s in the project.

bitblt

I found these on my harddrive. They contain ARM source files for doing flash memory IO with various Supercards . . .

(Note you need to login to see the attachments)




SoLo2

Hello!

As I will be trying this assembler code
the next days, I wanted to use the
more portable dldi, but these are
programmed to be used from C,
and I don't know where or how
they link the functions. Linking
is different for each C compiler.

Greetings,
SOLO2 (thebitsclub.tripod.com)