Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't read data from memory card. #8

Open
Joypacharya opened this issue Jan 12, 2021 · 0 comments
Open

Can't read data from memory card. #8

Joypacharya opened this issue Jan 12, 2021 · 0 comments

Comments

@Joypacharya
Copy link

Hello !!!
I tried to interface with a memory card but could not get it.
I am using SanDisk ultra sd card with the adapter because you can't directly connect on it.
My pin connections should be,

Pin1 (CS ) ----> P1L
Pin2 (MOSI[DI]) ---> P1K
Pin3 (GND) ---> GND
Pin4 (3V) ---> 3V3
Pin5 (CLK) ---> P1I
Pin6 (GND) ---> GND
Pin7 (MISO[DO]) ---> P1J
Pin8 (NC) --->NC
Pin9 (NC) --->NC

I tried to place 10k pull up on pin2[MOSI] and pin7[MISO]. Still do not get any response.

I tested the same thing Arduino sd card module it works well.

In SDCardHostSPI.xc,

static SDHostInterface SDif[] = // LIST HERE THE PORTS USED FOR THE INTERFACES
// cs, sclk, Mosi, miso
{{XS1_CLKBLK_1, XS1_CLKBLK_2, XS1_PORT_1L, XS1_PORT_1I, XS1_PORT_1K, XS1_PORT_1J, 0, 0}}; // resources used for interface #0

changed as per defined output.

I hope anyone helps me get out this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant