Jump to content
Amaurigb

Using Stellaris Launchpad as Data Logger with an SD Card

Recommended Posts

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:


 

Did the links in the Stellaris SD following this scheme:


 

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...