Hey fellas,
Board: NXP LPC1768.
Firmware: 21164
SD Module: DFRobot 513137
(http://www.dfrobot.com/index.php?route=product/product&filter_name=sd%20card%20module&product_id=163)
SD Card: PNY Premium 8GB SDHC Class 4
Developer: a true noob!
I am trying to set up an SD card for writing text. In a nutshell, nothing special, I am trying to set up my board to be able to write data and variables (strings) to the SD card, preferably to a specific file. If the file doesn't exist, I would like to create it. Likewise with directories... As for the moment, I am just trying to get something to write to SD card.
Here is my code...
/media/uploads/TheKirkwoods/sdhcfilesystem.zip
I was able to get this example, listed on DFRobot.com, working on my Arduino, but because the LPC1768 is much faster, I would like to play around with the mbed board.
The DFRobot SCCard Module is wired as such:
<<text>>
mbed LPC1768 -> DFRobot SDCard Module
pin 1 (GND) -> GND
pin 5 (mosi) -> MISO
pin 6 (miso) -> MOSI
pin 7 (sck) -> SCK
pin 8 (cs) -> SS
pin 39 (5V) -> 5V
<</text>>
When I run the program, and watch the output via serial, I get a statement which reads:
"No disk, or could not put SD card in to SPI idle state"
"init card = 0"
Can anyone help me out? I don't really know why this might be failing. Also, I'm still learning a lot about micro controllers.
Thanks in advance!
Scott
Hey fellas,
Board: NXP LPC1768. Firmware: 21164 SD Module: DFRobot 513137 (http://www.dfrobot.com/index.php?route=product/product&filter_name=sd%20card%20module&product_id=163) SD Card: PNY Premium 8GB SDHC Class 4 Developer: a true noob!
I am trying to set up an SD card for writing text. In a nutshell, nothing special, I am trying to set up my board to be able to write data and variables (strings) to the SD card, preferably to a specific file. If the file doesn't exist, I would like to create it. Likewise with directories... As for the moment, I am just trying to get something to write to SD card.
Here is my code...
/media/uploads/TheKirkwoods/sdhcfilesystem.zip
I was able to get this example, listed on DFRobot.com, working on my Arduino, but because the LPC1768 is much faster, I would like to play around with the mbed board.
The DFRobot SCCard Module is wired as such:
When I run the program, and watch the output via serial, I get a statement which reads: "No disk, or could not put SD card in to SPI idle state" "init card = 0"
Can anyone help me out? I don't really know why this might be failing. Also, I'm still learning a lot about micro controllers.
Thanks in advance!
Scott