Hi there,
I managed to make my web server work very smoothly and I manipulated many
dynamic variables through my web browser.
My question is how can I log each event (i.e: pressing a button to light a led) on my SD card in
a text file??
Thank you,
Check out SD card libraries from Microchip Application Libraries. They should be included already actually. My guess is write a function which looks for a log file, if it does not exists, creates it, then appends the message passed to it to the end of the file. Then you call this function from the custom functions which are called from the web page.
Thank you for your reply,
That was helpful
Hi again,
I've created a function to test writing to the SD card, but when I try to build my project I get a:
"Link Error: region program is full"
Does anyone have an idea about this kind of errors??
Thank you!
The idea is, that your linked program won't fit into flash.
Hi Alex,
Glad to hear you made progress with dynamic variable.
"Link Error: region program is full"
Did you declare any big buffers for the SD card? That might take up too much memory, or perhaps the flash is full? What are the specs (on space, memory) spit out by the compiler?