I'm trying to add an SD card to my project to dump sensor data on my Diecimila board, however, it seems as if the SD library or perhaps my SD reader is causing the board to reset. I presume this is due to being out of memory - if I strip down the commands to practically nothing it can SD.begin() fine but if I add more, like opening a file, it falls over.
After a bit of searching I have found perhaps a sentence or two that seems to indicate I'm correct in my assumptions on the memory being swamped.
So I guess all this rambling boils down to a single question, is this known to anyone?
Causes restarts, barely any serial data makes it over (a few bytes) before it dies:
Do you have a 168 or a 328 chip. The 168 doesn't have enough memory. The SD library needs 512 bytes of memory just for the buffer that holds the data to be written to the file. No, you can't change that. It's defined by the write block size of the SD cards.
I have double checked all the connections, including with a multimeter - I would say it is wired correctly. I also dumped which SS pin it was using, and it was 10 which is correct for my case. Any thoughts?
Because avr-gcc complains of linkage scheme redefinition for setup() and loop() otherwise.
... But now that you mention it - during my process of figuring out this problem I updated my Arduino library from whatever version is in the default Fedora distribution to rawhide repo and it seems to have been fixed.