Hello,
I'm just getting started trying to use FATFS to write to an SD card. I've read all the FATFS posts under "Beginners Start Here", but I haven't been able to get any farther ahead. From everything I've read this is very easy to use, so I'm guessing that I'm missing something simply in my interpretation of how to use the functions. As you can see from the code below, I haven't gotten very far with this when I've run into an issue with the project building without errors. My plan was to check for the presence of the sd card with disk status. Assuming the card was there, initialize disk, and then use f_mount to connect to the card for f_write. Then call f_mount again to close the connection. But, I've got to get through some of these more basic issues before I can proceed to these other steps. Can you help me understand why I am seeing these errors and what I need to do to clear them?
/* * Test_FATFSLibrary_Rev2.c * * Created: 1/5/2022 3:38:28 PM * Author : Houdini */ #include <avr/io.h> #include <avr/interrupt.h> #include "diskio.h" #include "ff.h" #include "uart.h" DSTATUS disk_status(2); DSTATUS disk_initialize(2); int main(void) { /* Replace with your application code */ while (1) { } }