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
If you have two drivers - wouldn't that imply that both memory cards should be accessible concurrently? How would the file system know that it must wait for the end of a transfer to one card before it is possible to try a transfer to the other card?
Have you added any code to check that the two drivers aren't activated at the same time?
I'm initialized cards using finit(NUll),after that i don't got any return value from that function,when i using finit("MC0"),i got return value of 0 (initialization success) when i using finit("MC1"),the function execution goes as infinite loop without any return value.
NOTE: for all this i enabled both card devices in file configuration .c
...the function execution goes as infinite loop without any return value. In which infinite loop does it get stuck-up in? Have you checked if any fault is generated or not? (Bus Fault, memory management fault, hard fault...) Debug and check.
I didn't see you supply any answer to my question: "Have you added any code to check that the two drivers aren't activated at the same time?"
It doesn't seem like you are trying to solve your problem by trying to figure out what goes wrong.
My code get stucked for initializing two memory cards in a row,my code get stucked on finit function when i configure it for two memory cards,i checked that in finit(NULL) function it is able to only activate default drive ,i had no idea about finit function ,i hadn't added any codes to check. both memory cards are working perfectly in the same bus activated separately in file configuration, i think that hardware part has no problem.is there any limitation in memory card size? i'm using 2gb memory cards,pls guide me Thanking you sry for delay to answering ur questions
View all questions in Keil forum