Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® Software > Attempt on Creating SD Card Interface

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



Attempt on Creating SD Card Interface
Moderator:
JFMD

Post Reply
Follow this topic



Attempt on Creating SD Card Interface

victoraargote posted on 08 Mar 2011 11:41 PM PST
Top Contributor
26 Forum Posts

I had work some weeks on a SD Card interface module for PSoC 3, the module is not stable yet, i get read and write operations, read operation work always fine, but write operation sometimes corrupt the file system. In this post you can find a binary hex file to program the PSoC 3 module in the CY8CKIT-001. The firmware contains a test program for any sd card capacity, the test program list the directories and files on the root directory, no write operation is implemented in the test program to avoid cases where any sd card could be damaged. All the information is transmited using the serial port in the development kit, working at 115200bps.

To get the test program working and dont damage the SD Card the development kit MUST be working at 3.3v. The SD Card pins can be conected directly to the pins of the PSoC. The pin conection im using looks like this:

SDCard DO pin to P0(1)
SDCard SCK pin to P0(3)
SDCard DI pin to P0(4)
SDCard CS pin to P0(6)

RX to P1(6)
TX to P1(7)

Get the program running is easy, you only have to program the PSoC 3 device, plug the RS232 port to the PC open a terminal, push the reset button and the directory listing will start.

Im sorry that source code is not avaliable because a commercial project is being developed using the module im creating, i hope psoc creator comes soon with the SD Card module by default, will be nice to have a customizer for easy configuration.

 

Victor Andres




Re: Attempt on Creating SD Card Interface

victoraargote posted on 08 Mar 2011 11:44 PM PST
Top Contributor
26 Forum Posts


Re: Attempt on Creating SD Card Interface

Doug McClean posted on 16 May 2011 01:07 PM PST
Top Contributor
38 Forum Posts

I second this feature request. An library for communicating with an SD card over an SPI bus (preferably and existing one in use for other peripherals), supporting one of the FAT file systems, would be immensely useful. A bootloader example to go with it would also be very useful.



Re: Attempt on Creating SD Card Interface

victoraargote posted on 19 May 2011 02:11 PM PST
Top Contributor
26 Forum Posts

 I have this solution working if you are interested you can contact me at andrex289@hotmail.com



Re: Attempt on Creating SD Card Interface

tutrung posted on 09 Mar 2012 07:58 PM PST

1 Forum Post

 I am working PSoC Creator about reading data from SD card. But i can't data with command "SPIM_ReadRxData". Can you tell for me problem or send to me your code? My email is trungnt.sremis@gmail.com. Thank you very much.



Re: Attempt on Creating SD Card Interface

kmmankad posted on 11 Mar 2012 11:54 PM PST
Top Contributor
268 Forum Posts

PSoC® Creator™ 2.0 Component Pack 1 has the SD card interface,and it works really smoothly.

Download the update here : http://www.cypress.com/?rID=56745



Re: Attempt on Creating SD Card Interface

mamta posted on 18 Oct 2012 12:55 AM PST
Member
3 Forum Posts

 Sd-card interface with above stated condition is working fine.

But the same code for PSoC5 module won't work.

What may be the reason?

 



Re: Attempt on Creating SD Card Interface

Bob Marlowe posted on 18 Oct 2012 03:19 AM PST
Top Contributor
1768 Forum Posts

Which Creator-version are you using and which component pack? Latest are Creator 2.1 CP 4.

 

Bob



Re: Attempt on Creating SD Card Interface

PSOCR posted on 24 Jan 2013 08:56 AM PST
Member
8 Forum Posts

Interested in data acquisition with SD card.

Looked at SD card specs: seems like the highest speed version "Class 10" - does 10MB / sec - which is adequate for my needs (on 2nd thought - maybe that was "Read" speed not "Write" speed.

However - reading the .ppt presentation "Secure Digital (SD) Card Module Solution" from Cypress website shows limit like 2.2KB / sec.

Am I seeing this correct?

Why the limit?

How can it be increased?

K



Re: Attempt on Creating SD Card Interface

danaaknight posted on 24 Jan 2013 11:08 AM PST
Top Contributor
1773 Forum Posts

The presentation you are looking at is from an old attempt at doing

an SD Card desifgn. There was a kit, PSOC 1, yanked off market,

because there issues with implemenation.

 

Re: Attempt on Creating SD Card Interface

danaaknight posted on 24 Jan 2013 11:11 AM PST
Top Contributor
1773 Forum Posts

Forum SW cut my post off.

 

Basically I believe the speed because solution was done on a 4 MIPs machine, PSOC 1.

 

Regards, Dana.



Re: Attempt on Creating SD Card Interface

danaaknight posted on 24 Jan 2013 11:15 AM PST
Top Contributor
1773 Forum Posts

The obsolete kit -

 

Re: Attempt on Creating SD Card Interface

danaaknight posted on 24 Jan 2013 11:17 AM PST
Top Contributor
1773 Forum Posts

One more try, attached.

 

Regards, Dana.



Re: Attempt on Creating SD Card Interface

PSOCR posted on 29 Jan 2013 07:10 AM PST
Member
8 Forum Posts

Hello Danaaknight,

Thank you for your response. I understand the .ppt was old with with a slow processor.

Is there an update on whether PSOC n  (I'm using PSOC 5) can "keep up with" the class 10 SD card? (on SPI? other?)

Capability to write data acquisition to class 10 SD card would be amazing!

K



Re: Attempt on Creating SD Card Interface

PSOCR posted on 29 Jan 2013 09:14 AM PST
Member
8 Forum Posts

Sorry - did not see that there is now an interface for SD card (emFile). I'll review - thanks for your help!

Kevin Keegan



Re: Attempt on Creating SD Card Interface

PSOCR posted on 29 Jan 2013 09:29 AM PST
Member
8 Forum Posts

OK - so now back to my first question (after reading the emFile datasheet) - which shows (for one point) 282 KBytes / sec write speed with a 48Mhz CPU clock, 12Mhz SPI clock on PSOC 5 (for 8KB blocks). This 0.28MB / sec write speed is appx 40X lower than the class 10 SD card should handle (10MB / sec).

What is the limit?

Can the limit be removed?

 

Kevin Keegan



Re: Attempt on Creating SD Card Interface

danaaknight posted on 29 Jan 2013 01:07 PM PST
Top Contributor
1773 Forum Posts

This table in datasheet pretty much seems to say no to 10 Mbit.

 

 

You can always post a case at (and ask what they are doing regarding the faster standard) -

 

www.cypress.com

“Support”

“Technical Support”

“Create a Case”

 

Regards, Dana.



Re: Attempt on Creating SD Card Interface

PSOCR posted on 29 Jan 2013 04:25 PM PST
Member
8 Forum Posts

 Hi Dana, 

thanks for your response. I will pursue the tech support mechanism (I've use it lots).

BTW -  I think you meant 10MB not 10Mb

k

 






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: KXP; Secondary Owner: VWA; Sunset Date: 01/01/20