LPC2378 Bluescreen and SD card help

Hello,

I’m new to programming the LPC2378 Bluescreen. I have been able to load sample programs provided by ThaiEasyElec.net using Keil µVision 4 and a JTAG debugger. I am using this board for a senior project and am kind of stuck:

What I want to do is have a text file on my SD card, and have the microcontroller look for a value in the text file, load it into memory, and store it in a variable to use for calculations. I also want to write a text file to the SD card that can store various variable values. The example I’m using can see that there is a text file on the SD card, but it doesn’t read text from it (if that makes any sense). Can anyone help me get started, preferably with a simple sample program that can read from a text file and write to a text file?

Ok, figured out how to write the SD card using the provided modified FatFS functions from ThaiEasyElec.net. Only issue I’m having now is that I can only write strings to the SD card. I’m trying to write an integer variable value to my SD card using the provided AppSDWrite() function. When trying to use it, I get an error saying that “int is not compatible with char *,” which makes sense. So, I’ve tried using sprintf() to convert my integer into a char *. No errors come up, no warnings about that particular spot, but it doesn’t write to the SD card. Here’s the snippet of code I’m working with:

#include <stdio.h>

unsigned int testInt=69; //value to test writing variables to SD card

char string[10];

AppSDWriteOpen(‘W’,“test.txt”) //Creates test.txt file

sprintf(string,%d%,testInt);

AppSDWrite(55,string); //specifies file size of 55 bytes, supposedly writes data to SD

So, now I’m stuck. Any thoughts from those who have had experience writing to an SD card using FatFS or working with the LPC2378 Bluescreen?