We currently using a Blackfin 536 and are connecting an SD card to the SPI interface. How can I use standard fopen / fclose methods to access files on the SD card that is using FAT?
You'll need to write an PID wrapper for the SD/SPI combination. This is not too hard, use (say) \lib\src\drivers\pid\ramdisk for most of your boilerplate code. You will end up having to implement your own flavour of CopyToFromMemory.
Once your driver is written you need to hook into the FAT and C runtime chain as (nearly) documented in \docs\drivers\pid\generic_PID_design_document.pdf.
There is not enough example code in this area for my liking - what does exist is confusing and over-complicated. See the USB mass storage example.
Be prepared for hair-tearing. Good luck
Retrieving data ...