Working with microSD and the W5100 shield #39
Unanswered
pedrolopescps
asked this question in
Q&A
Replies: 1 comment
-
I read this issue (#31) and got the microSD card working... :) Thanks anyway! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Phillip, greetings from Brazil.
First I'd like to congratulate you on this huge work you have done. I've been using your ported FreeRTOS library for around 1 year now on my college works. It's great!
But I have an issue I can't seem to solve: How do I work with a microSD card?
I tried using the standard SD.h and SPI.h provided by Arduino. I can get the card initialised, but simply cannot open, write ou read any data.
Using "File arquivo = SD.open("data.txt", FILE_WRITE);", I can get the file created, but cannot write into it.
In my code, right after this line of code, I have:
// if the file is available, write to it:
if (arquivo)
{
arquivo.print(bmpTemp,1); arquivo.print(", ");
arquivo.print(tempAgua,1); arquivo.print(", ");
arquivo.print(dhtUmid,0); arquivo.print(", ");
arquivo.print(bmpPress * 0.00000986923, 6); arquivo.print(", ");
arquivo.print(velVent,6); arquivo.println("");
arquivo.close();
}
// if the file isn't open, pop up an error:
else
{
Serial.println("Erro ao abrir o arquivo.");
}
I got this fror the Arduino example "DataLogger". It simply doesn't write.
Is there any trick or way to work with microSD cards using the FreeRTOS architecture?
I've been reading some documentation at FreeRTOS pages. They say that it's included on FreeRTOS+FAT library, and that it's included on the main FreeRTOS library (I couldn't really understand).
I need to log some measurement data for my final graduation work. Just can't get it done :(.
I'm using the microSD card slot on the W5100 ethernet shield.
Beta Was this translation helpful? Give feedback.
All reactions