This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Flash fs configuring two memory card devices

I tried to connect the two memory card devices by connecting it on ssp port of lpc2148, i have access to memory cards when i enabling them one by one but i can't access memory card device 1 when i'm enabling the both devices on file configuration.c I connected both card's MOSI,MISO,SCLK on same ssp port of lpc2148,i'm using GPIO port 0.20 for ss of one memory card and GPIO port 0.07 of another memory card

I used example program for SD_file in MCB2140 ,i modified spi driver with ss pin as gpio port 0.07 for second device,for first device i'm using inbuilt spi driver

NOTE: I can access both device separately on same bus,i can't able to access them at a time

PLS give some idea

Parents
  • You really should consider initializing the slave-select lines totally outside of your file system code. However many init/uninit you do, the slave-select for each memory card should be in "idle" state at all times when you aren't doing any transfers. So you should deassert them on boot. And they should stay that way after any uninit() calls.

Reply
  • You really should consider initializing the slave-select lines totally outside of your file system code. However many init/uninit you do, the slave-select for each memory card should be in "idle" state at all times when you aren't doing any transfers. So you should deassert them on boot. And they should stay that way after any uninit() calls.

Children
No data