SD_uFAT

Sign in or create your account | Project List | Help

Issue 2: error file

Reported by anna papanastasiou, Apr 12, 2009

Hi :)
I am working on arduino using some sensors and this microSd card 
module, in order to make a weather station (with the sensors) and a 
data logger (with the Sd card). The problem I am dealing with this 
code is that no matter if I use the "hola.txt" that you 
provide or any other text I write, following your orders, I get an 
error message about the file. Unfortunately, I can not read/write or 
do anything else. Although, the code works fine and I have no 
problem with the compilation or anything else.
Thank you very much and any help would be appreciated cause I am 
tryin to graduate :)

Comment 1 by David Cuartielles, Apr 12, 2009

Let's go step by step. I need to reproduce the same error you are 
having. Provide me with:

- computer and operating system
- Arduino IDE version (0013, 0014, 0015?)

Also I would like to know which is the error message you are getting.

Comment 2 by anna papanastasiou, Apr 13, 2009

i am using toshiba's laptops and i have tested arduino both on linux 
and windows vista. I, also, have tried Arduino 0012 on linux and 
0015 on vista. The message I get is for example when i am trying to 
write something 
-[hola.txt] - init file, type text
-[hola.txt] - ..error! 
This kind of error I get if I am trying any other command.
Thanks again :)

Comment 3 by David Cuartielles, Apr 14, 2009

Ok,

you have to make sure that:

- your SD card is formatted at FAT16. This is very important, the 
programs are not supposed to be working on FAT32. You can change the 
format in windows easily. In linux you should use gparted (sudo 
apt-get install gparted) and make a low level formatting of the card

- I wrote the library using Arduino 0013, I haven't tested it for 
Arduino 0015, yet. Please downgrade and check. There are substantial 
differences between Arduino 0012 and later versions, therefore I 
doubt it will work with that version

- Also I am not sure of which version of the linux compilation tools 
for AVR chips you are having, but avr-gcc (the compiler for the 
atmega chips) has been crashing systematically for version prior to 
4.3.1. I think that -even if I don't really like windows- you should 
make your tests using windows, because we are on the safe side 
there. Windows binary files for Arduino include the right settings

- finally, are you using an Arduino with atmega 168 or 328?

/d

Comment 4 by anna papanastasiou, Apr 15, 2009

Sorry for the delay but it's easter holidays and it's hard to find 
time to work :P

Ok,

-the card is formatted at FAT16 already, cause I read it in your 
notes

-I will get version 0013 to test the results

-I found out that Linux gimme more trouble comparing to windows -and 
i find it quite strange- so I will test everything in windows and 
when it works, i will try in linux as well

-i am using arduino duemilanove which has atmega168

I will try your swuggestions and i will be back! Thanks again :)

Created: 1 year 4 months ago by anna papanastasiou

Updated: 1 year 4 months ago

Status: New

Followed by: 1 person

Labels:
Priority:Medium
Type:Defect

Commissioned by BLUSHINGBOY