xcore / sc_sdcard Goto Github PK
View Code? Open in Web Editor NEWSD-card component
Home Page: None
License: Other
SD-card component
Home Page: None
License: Other
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.
module FatFs is baed on FatFs R0.09. Later versions are now available. It would be good to move up to the latest version,
Both module_sdcard4bit and module_sdcardSPI hard coded enables the internal pull-up resistors on some ports. This will work fine on XS1-G devices that have pull-up resistors, but it will cause an exception on XS1-L devices because they do not have internal pull-up resistors (instead they have pull-down resistors).
Assumptions about the target device cannot be made implicitly. I propose to either fully rely on external pull-up resistors regarding the software or to pass a parameter to an initialization routine that will either do nothing or enable the internal pull-up depending on the value of the parameter.
I get a memory exception in f_read() when _FS_TINY is set to 1. Seems to work fine with _FS_TINY set to 0
The test program currently doesn't check this. I've put an improved version on https://github.com/tuck1s/sc_sdcard
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.