Jump to content
bluehash

SDCard Booster Pack

Recommended Posts

Newbie question. Just got the SD card booster pack last week for launchpad 2553 (version 1.5) board. I tried to run the code version 0.3 from wiki page with 1 GB microSD card using adapter. I can read successfully from the card but I couldn't get anything to the write.txt file. All terminal messages for 'fw' command looks right - I get the "Finalizing the write file". But nothing gets written to the file. Any help ?

Share this post


Link to post
Share on other sites

Petit_FS for battery-powered recording. 

 

The Petit_FS has worked great for me. I used the 43oh SD card booster pack to get me started. Step 1: MSP430G2553 on a Launch Pad. Step 2: port code to an MSP430F5529 Launch Pad with the same booster pack. Step 3: port it to our own MSP430F5529 board with a micro sd card on it. The only changes were for port assignments and clock implementations. 

 

The Petit_FS works for write, read, and multiple files.

 

To maximize battery life given the micro sd card's 100-200 ua standby current, we power it down with a FET, then reinitialize it before we write. When I used the f_lseek() function to set the file pointer before the write, I found that it can take a long time, the time being proportional to the size of the file pointer. It turns out you don't need to use the f_lseek() function. Here is how to make it work:

 

1) start up with the following:

   disk_initialize() (repeat once if unsuccessful)

   pf_mount()

   pf_open()

 

2) write data sequence:

   power up card

   disk_initialize()

   write data

   power down

 

The pf_mount() and pf_open() functions get and update the file system structure. Once you have that structure, you do not need to use fp_mount() or fp_open() again before the write. All you need is to run disk_initialize() to wake the card up. 

Edited by bluehash
[ADMIN] - Added link to the 43oh BoosterPack

Share this post


Link to post
Share on other sites

I have ordered a SD Card booster pack to work with the CC3200 Launchpad, but the connector definitions do not match.. I was able to do some board modifications and make it to work with the CC3200 LAUNCHXL Rev 3.2.

 

Here is the ECO List

 

Scratch out traces at SJ1 , SJ2, SJ3, SJ4

Blue wire the following pins

SD Card Pin No       Header Pin

2                               J2.3

5                               J2.6

7                               J2.7

 

The board looks as below now with the changes. And it works !!! :)

 

post-38089-0-03419700-1407829758_thumb.jpg

Share this post


Link to post
Share on other sites

I have ordered a SD Card booster pack to work with the CC3200 Launchpad, but the connector definitions do not match.. I was able to do some board modifications and make it to work with the CC3200 LAUNCHXL Rev 3.2.

 

Here is the ECO List

 

Scratch out traces at SJ1 , SJ2, SJ3, SJ4

Blue wire the following pins

SD Card Pin No       Header Pin

2                               J2.3

5                               J2.6

7                               J2.7

 

The board looks as below now with the changes. And it works !!! :)

 

attachicon.gifSD_Card.jpg

Thank you for sharing your changes  @@Prajay. Do you mean the definitions on the BoosterPack were incorrect? It was made for the MSP430 Launchpad.

 

Edit: This is for the CC3200 LP. Thanks!

Share this post


Link to post
Share on other sites

Thank you for your prior response. We actually have the suggested zip-file with the Fat-FS project/code. What we are wondering about is the best way to go about building/rebuilding the project in Code Composer, i.e., will the project 'automatically' un-zip to the correct directory structure ? Then, if you could suggest a sequence of steps to do the build. Thanks. 


Share this post


Link to post
Share on other sites

I got this booster pack to try out on the CC3200 Launchpad too. Performed the mods as @@Prajay listed (which are in the TI CC3200 SDHost FatFS SDK documentation).  

 

I installed the library and have tried to use the example PFatFsFileTest, but I can't even get past the FatFs.begin(cs_pin).

 

It actually looks like it's failing in in disk_init() called from begin(unsigned char cs_pin, uint8_t clkdivider).  This is using v 0.02a of PetitFatFs and the Arduino wrapper written by David Sirkin.

 

Has anyone had success with this booster pack on the CC3200 using Petit FatFs?

Share this post


Link to post
Share on other sites

I got this booster pack to try out on the CC3200 Launchpad too. Performed the mods as @@Prajay listed (which are in the TI CC3200 SDHost FatFS SDK documentation).  

 

I installed the library and have tried to use the example PFatFsFileTest, but I can't even get past the FatFs.begin(cs_pin).

 

It actually looks like it's failing in in disk_init() called from begin(unsigned char cs_pin, uint8_t clkdivider).  This is using v 0.02a of PetitFatFs and the Arduino wrapper written by David Sirkin.

 

Has anyone had success with this booster pack on the CC3200 using Petit FatFs?

@@Scotty.. the code on the wiki( server is down for now ) is for the msp430 launchpad. There isn't one for the CC3200, unless you are using the one @@Prajay has used.

Share this post


Link to post
Share on other sites

@@Scotty.. the code on the wiki( server is down for now ) is for the msp430 launchpad. There isn't one for the CC3200, unless you are using the one @@Prajay has used.

 

Not sure I understand... what in the Petit FatFs code or the wrapper code is microcontroller specific?

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...