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

SD card issue with Web server example on Wi Fire ver C #444

Open
alniju opened this issue Dec 23, 2018 · 4 comments
Open

SD card issue with Web server example on Wi Fire ver C #444

alniju opened this issue Dec 23, 2018 · 4 comments

Comments

@alniju
Copy link

alniju commented Dec 23, 2018

SD card cannot mount, error 3. I have changed the version of chipkit core from 2.0.6 to 1.4.3 and everything works now perfectly !

@majenkotech
Copy link
Member

You need to manually enable the internal pullup on the SDI line.

@majenkotech
Copy link
Member

Fixed in PR #450

@lstandage
Copy link
Contributor

I think there's another issue. The Board_Defs.h file for the Wi-Fire has the following line:

#define DefineDSDVOL(vol, spi) DSDVOL vol(spi, 53) // Create an DSDVOL object

However, pin 52 is the CS line for the SD card.

@majenkotech
Copy link
Member

Yes, it should be 52. The problem here is that the parameter was originally used not for the CS pin but to specify the MOSI (or maybe it was the MISO) in order to enable the internal pullup on the pin. However all the code comments and things referenced it as being the chip select pin. Since the chip select made more sense the pullup control was moved to a #define in the board definitions (or leave it to the user to enable manually, or better still, add a real pullup resistor), and the parameter was converted to be, as it should be, the chip select pin.

Not all examples were changed to reflect that it seems.

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

3 participants