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
Don't you see any issues with having two drivers perform operations on the same registers?
What if the two memory card "drivers" gets called with different baudrate?
And next thing - have you verified if the file system code initializes an interface before every use and then uninitializes it? Or if it initializes both interfaces and then leaves them initialized?
Now i'm able access two drives in same bus i done a small mistake in my spi1_drv uninit function, you can see it on my above posted code
THANK U ALL for kind advice and guidance
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.