Notification

Icon
Error

SD Card Implementation. Advice requested
James Carter
#1 Posted : Monday, April 23, 2012 3:06:32 PM(UTC)
James Carter

Rank: Tinkerer

Joined: 7/22/2011(UTC)
Posts: 1

Hello NETMF Guys,


 


  I am attempting to add SD Card support to my LPC1788 Cortex-M3 port. I am having difficulty in seeing where abouts to inject my low level SD Card code support.


 


  I can see I have included FS_config_stubs.cpp in my PAL. However this seems to want to mount volumes when the device initializes, whereas I wish to support hot swapping SD cards.


 


  I would appreciate any pointers on how to get the RemovableMedia events working. How do I post to these events from my driver, and should I implement a volume in 'FS_MountRemovableVolumes'?


 


  I could not find a port with this implemented in the PAL for me to take a look at. Rather - I can see other examples of using BlockStorage on internal FLASH to mount a 'Volume' but I was not able to see any 'RemoveableVolumes'. Perhaps I shall try to mount my FLASH as a volume first.


 


Many Thanks,
James Carter

Lorenzo Tessiore
#2 Posted : Monday, April 23, 2012 11:27:21 PM(UTC)
Lorenzo Tessiore

Rank: Tinkerer

Joined: 2/1/2010(UTC)
Posts: 36

Both teh SAM9261_EK and the iMXS solution implement Sd card insert/eject.


check those solutions configuration code under teh respective DeviceCode directory and the SD_BL_Config.cpp driver


 


 


Regards


Lorenzo Tessiore

James Carter
#3 Posted : Tuesday, April 24, 2012 6:04:34 AM(UTC)
James Carter

Rank: Tinkerer

Joined: 7/22/2011(UTC)
Posts: 1

Hello Lorenzo
Thank you, I shall check those solutions and hopefully glean some useful information regarding implementation.
Kind Regards,
James Carter
James Carter
#4 Posted : Wednesday, April 25, 2012 1:27:41 PM(UTC)
James Carter

Rank: Tinkerer

Joined: 7/22/2011(UTC)
Posts: 1

Hello Lorenzo,

It appears that both of these examples only include standard Volumes (such as their internal or external Flash) and not removable SD Cards.

Am I missing something here?

James
Lorenzo Tessiore
#5 Posted : Wednesday, April 25, 2012 4:00:09 PM(UTC)
Lorenzo Tessiore

Rank: Tinkerer

Joined: 2/1/2010(UTC)
Posts: 36

this is what I see in my PK:


 


E:\src\client_v4_3_xbox\Solutions\SAM9261_EK\DeviceCode\Blockstorage>dir /ad
 Volume in drive E is Data
 Volume Serial Number is A2BF-6F8C


 Directory of E:\src\client_v4_3_xbox\Solutions\SAM9261_EK\DeviceCode\Blockstorage


11/18/2011  12:17 PM    <DIR>          .
11/18/2011  12:17 PM    <DIR>          ..
11/18/2011  12:17 PM    <DIR>          addDevices
11/18/2011  12:17 PM    <DIR>          K9F2G_8_BS
11/18/2011  12:17 PM    <DIR>          SD
               0 File(s)              0 bytes
               5 Dir(s)  406,836,940,800 bytes free


 


 


do you have that too?


 


 


Lorenzo

James Carter
#6 Posted : Monday, April 30, 2012 7:23:27 AM(UTC)
James Carter

Rank: Tinkerer

Joined: 7/22/2011(UTC)
Posts: 1

Hi Lorenzo,

I understand a bit more now - I had not realised the SD Cards were treated as Blockstorage devices...

Thanks,
James

Rss Feed  Atom Feed
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.075 seconds.