avsa242 / sdfat-spin

FAT-fs on SD implementation for the P8X32A/Propeller, P2X8C4M64P/Propeller 2
Other
0 stars 0 forks source link
fat32 filesystem memory p8x32a propeller sd storage

sdfat-spin


This is a P8X32A/Propeller, P2X8C4M64P/Propeller 2 implementation of the FAT filesystem on SD.

IMPORTANT: This software is meant to be used with the spin-standard-library (P8X32A) or p2-spin-standard-library (P2X8C4M64P). Please install the applicable library first before attempting to use this code, otherwise you will be missing several files required to build the project.

Salient Features

File open modes supported

Symbol Description Seek behavior allowed
O_RDONLY Read random
O_WRITE Write random
O_RDWR Read/Write random
O_CREAT Create file n/a
O_APPEND Writes append to file always points to EOF
O_TRUNC Truncate file to 0 bytes after opening n/a

(modes are bitfields that can be OR'd together)

Requirements

P1/SPIN1:

P2/SPIN2:

Compiler Compatibility

Processor Language Compiler Backend Status
P1 SPIN1 FlexSpin (6.8.1) Bytecode OK
P1 SPIN1 FlexSpin (6.8.1) Native/PASM Some demos FTBFS
P2 SPIN2 FlexSpin (6.8.1) NuCode Not yet implemented
P2 SPIN2 FlexSpin (6.8.1) Native/PASM2 Not yet implemented

(other versions or toolchains not listed are not supported, and may or may not work)

Limitations