Hi, Anybody knows how to read or write to an external file on the Udoo quad? preferably on the built-in microsd-card of the quad. Please, if possible ad a working (on the quad) example. All the examples i could find are all talking about an extra sd-card on the ethernet module (which i don't have) and don't work for the internal micro-sd card. greetings, Pieter
I suppose you mean from Arduino side write to a file? Well you can't. The easiest way to get it done is to write the data with serial to the Linux side and have there a program (C, Python, Perl etc) write the data to a file on the SD card. For examples how to transfer data between Arduino and Linux see http://www.udoo.org/tutorial/udoo-serial-libraries-examples/
You can, i was just able to read and write from my sd-card, without the use of programs at the external (linux) side. If you connect your sd-card to the SPI-header of the UDOO quad as explained in the following posts: for the SPI-header of the Udoo: http://www.udoo.org/forum/threads/spi-header.74/ for the connection between the sd-card and the SPI-header: (but be aware normally they number the sdcard pinouts like 912345678 in his post the pinout is numbered 123456789) http://forum.arduino.cc/index.php?topic=138517.0 (post 7) for explanation and test code: http://forum.arduino.cc/index.php/topic,135439.msg1018776.html#msg1018776 (reply 4 and reply 15)