interfacing sdcard using qspi

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

interfacing sdcard using qspi

2,153 Views
yuvi
Contributor I
Hi,
I am using MCF52223EVB & trying to connect the sd card to QSPI bus.
But can't seem to get it working . I tried to search the forum but couldn't
get much help. Please can someone who has succesfully done this
before guide me in the right direction.
 
thanks
yuvi
Labels (1)
0 Kudos
5 Replies

642 Views
RichTestardi
Senior Contributor II
Have you seen this?
 
 
Also, can you tell us what, specifically, doesn't work and how?
 
And what software you are using?
 
If it helps to see my qspi driver, it is attached (ignore the 51jm128 code -- you want the 52221/52233 code).
 
-- Rich
 
 
0 Kudos

642 Views
stzari
Contributor III
Hi,

did you configure the GPIOs ?
Do you see any clock or data on the lines ?

stzari
0 Kudos

642 Views
yuvi
Contributor I
yes i have initialised GPIOs .
 
  MCF_GPIO_PQSPAR = ( MCF_GPIO_PQSPAR_DOUT_GPIO  
                                            | MCF_GPIO_PQSPAR_DIN_GPIO  
                                            | MCF_GPIO_PQSPAR_SCK_GPIO        
                                            | MCF_GPIO_PQSPAR_CS0_GPIO)
 
& no i can't detect any clock & data on the QSPI.
I have initialised GPIOs before setting up the QSPI registers(i believe thats the
correct ways to do it).
 
 
0 Kudos

642 Views
bkatt
Contributor IV


yuvi wrote:
yes i have initialised GPIOs .
 
  MCF_GPIO_PQSPAR = ( MCF_GPIO_PQSPAR_DOUT_GPIO  
                                            | MCF_GPIO_PQSPAR_DIN_GPIO  
                                            | MCF_GPIO_PQSPAR_SCK_GPIO        
                                            | MCF_GPIO_PQSPAR_CS0_GPIO)
 

You need something like:

      MCF_GPIO_PQSPAR = (0
        | MCF_GPIO_PQSPAR_CS3_CS3
        | MCF_GPIO_PQSPAR_CS2_CS2
        | MCF_GPIO_PQSPAR_CS1_CS1
        | MCF_GPIO_PQSPAR_CS0_CS0
        | MCF_GPIO_PQSPAR_SCK_SCK
        | MCF_GPIO_PQSPAR_DIN_DIN
        | MCF_GPIO_PQSPAR_DOUT_DOUT);

0 Kudos

642 Views
yuvi
Contributor I
Hi everyone,
thanks for your replies. i finally got it working. the problem was as indicated by bkatt the GPIO setting.
i was using qspi_cs3  for initialization which was already  configured for USB pull down. i connected
my sd card to cs0 & got it working .
but here arises a new question that all these GPIOs are mutually exclusive . what if i wish to connect 4
peripherals to qspi & also use USB then what do i need to do??
 
thnks again
0 Kudos