Try SdFat, a Library for SD Cards

I compiled and loaded bench into a photon with Ver 0.7.0 Firmware and verified that you can remove the SD between tests.

see this line

CARD REMOVED AND and INSERTED HERE <<=============

Here is the output:

FreeMemory: 19264
Type is FAT32
Card size: 15.93 GB (GB = 1E9 bytes)

Manufacturer ID: 0X3
OEM ID: SD
Product: SE16G
Version: 8.0
Serial number: 0X91D1262A
Manufacturing date: 10/2015

File size 5 MB
Buffer size 32768 bytes
Starting write test, please wait.

write speed and latency
speed,max,min,avg
KB/Sec,usec,usec,usec
2817.16,19457,10927,11616

Starting read test, please wait.

read speed and latency
speed,max,min,avg
KB/Sec,usec,usec,usec
3176.49,10784,10297,10318

Done
Type any character to start

CARD REMOVED AND and INSERTED HERE <<=============

FreeMemory: 19264
Type is FAT32
Card size: 15.93 GB (GB = 1E9 bytes)

Manufacturer ID: 0X3
OEM ID: SD
Product: SE16G
Version: 8.0
Serial number: 0X91D1262A
Manufacturing date: 10/2015

File size 5 MB
Buffer size 32768 bytes
Starting write test, please wait.

write speed and latency
speed,max,min,avg
KB/Sec,usec,usec,usec
2802.89,23331,10925,11666

Starting read test, please wait.

read speed and latency
speed,max,min,avg
KB/Sec,usec,usec,usec
3174.47,10667,10295,10320

Done
Type any character to start

1 Like