Jump to content

Amaurigb

Members
  • Content Count

    1
  • Joined

  • Last visited

  1. Good afternoon, I'm doing a project and I want to write the data read from my analog input on an SD card. I made the mounting of the SD as shown in this link: http://www.instructables.com/id/Cheap-DIY-SD-card-breadboard-socket/ Did the links in the Stellaris SD following this scheme: http://www.frank-zhao.com/pics/sdcardconnections.jpg Where my MISO of SD card connected to MISO (0) of the Stellaris, SD MOSI to MOSI (0) of the Stellaris, SD in SCK (0), fed it with 3.3 V, also connected to GND and CS from SD to my Pin 14, which was determined in the CS program (cs_pin). My question is if my links are correct and how should I proceed with programming. I am beginning in C++ and I do not understand how to make this data transfer, be storing my readings in a variable and I want to write this in a .txt on my SD card, but how? Can someone show me a simple code to do this? I have already tried to run FatFs and PetitFatFs but I did not get success. At Speed Test With FatFs my Serial print "Failed with rc=3", what is it? Regards, Amauri.
×