Amaurigb 0 Posted September 10, 2013 Share Posted September 10, 2013 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. Quote Link to post Share on other sites
dlejob 0 Posted September 18, 2013 Share Posted September 18, 2013 I got my working with the reader I bought on ebay for under $2 on ebay. good luck! http://www.banggood.com/SD-Card-Module-Slot-Socket-Reader-For-Arduino-ARM-MCU-Read-Write-p-74105.html?currency=USD&utm_source=google&utm_medium=shopping&utm_content=miko_ruby&utm_campaign=Electronics&gclid=CK20nZP_1LkCFWxo7Aod-DYA0w Quote Link to post Share on other sites
mouna 0 Posted July 7, 2014 Share Posted July 7, 2014 I got my working with the reader I bought on ebay for under $2 on ebay. good luck! http://www.banggood.com/SD-Card-Module-Slot-Socket-Reader-For-Arduino-ARM-MCU-Read-Write-p-74105.html?currency=USD&utm_source=google&utm_medium=shopping&utm_content=miko_ruby&utm_campaign=Electronics&gclid=CK20nZP_1LkCFWxo7Aod-DYA0w Hi there, which library you used? I have the same SD card reader which is working fine on Arduno MEGA but with CCS or Energia on my EK-TM4c1294Xl it is a nightmare. Can you please post some example, some simple code of writing to SD card. Thank you very much, I'm, pretty stuck wright now. Petar Quote Link to post Share on other sites
Rei Vilo 695 Posted July 7, 2014 Share Posted July 7, 2014 There are many SD-card libraries posted on 43oh and Stellarisiti, PetitFat, SD, FatFS, ... Feel free to have a look at them! Quote Link to post Share on other sites
igor 163 Posted July 7, 2014 Share Posted July 7, 2014 Not exactly what you are looking for, but thought I would mention eLua It is a scripting language that runs on the Stellairs LP (among other platforms). Could try it as a way to quickly test things in a high level language before diving into a lower level access like C++. The Stellaris port is here http://forum.stellarisiti.com/topic/552-elua-for-stellaris-launchpad/?p=3543 It has support for SD cards - can treat them just like a file I/O device in eLua, give a file name to open it, do read and write operations. (eLua also has support for ADC) http://www.eluaproject.net/ http://www.eluaproject.net/doc/v0.9/en_fatfs.html bluehash 1 Quote Link to post Share on other sites
aureliokta 0 Posted August 21, 2014 Share Posted August 21, 2014 Hi, have you managed to put SD Card to work with TM4C1294XL? Do you have some tips? I´m facing a hard time trying... Hi there, which library you used? I have the same SD card reader which is working fine on Arduno MEGA but with CCS or Energia on my EK-TM4c1294Xl it is a nightmare. Can you please post some example, some simple code of writing to SD card. Thank you very much, I'm, pretty stuck wright now. Petar Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.