Forum Software Ferduino code Problem with SD Card on ITDB32WD

Problem with SD Card on ITDB32WD  [SOLVED]


Post Number:#1 Post Sun Apr 26, 2015 2:55 am
Posts: 16
Topics: 3
Solve rating: 0
Joined: Fri Aug 08, 2014 11:17 pm
Topics: 3
Age: 50
Location: Barranquilla
Gender: Male
National Flag:
Columbia
Hi.

I have a ITEAD ITDB32WD with SD card reader built in, I have a problem reading from this. When I run the program Sdinfo the result is

SdFat version: 20120825

type any character to start

card.init failed
SD errorCode: 0X1
SD errorData: 0X0

type any character to start

What is damage in this card reader?
best reagrds
Last edited by Fernando Garcia on Sun Apr 26, 2015 9:55 am, edited 1 time in total.
Reason: Spelling.

Post Number:#2 Post Sun Apr 26, 2015 10:01 am
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi!

Are you using an ethernet shield?

Try use an example available on forum and change the chipselect to 53 if you are not using an ethernet shield.

Best regards.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#3 Post Sun Apr 26, 2015 11:52 am
Posts: 16
Topics: 3
Solve rating: 0
Joined: Fri Aug 08, 2014 11:17 pm
Topics: 3
Age: 50
Location: Barranquilla
Gender: Male
National Flag:
Columbia
Hi!

No, I'm not using an ethernet shield, I'm using this TFT http://store.iteadstudio.com/index.php?main_page=product_info&cPath=57_58&products_id=263

I have trying with the examples changing the chipselect to 53 but nothing.

Best regards.

Post Number:#4 Post Sun Apr 26, 2015 12:01 pm
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

The card was formatted?

What's the capacity of this card?
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#5 Post Sun Apr 26, 2015 8:35 pm
Posts: 16
Topics: 3
Solve rating: 0
Joined: Fri Aug 08, 2014 11:17 pm
Topics: 3
Age: 50
Location: Barranquilla
Gender: Male
National Flag:
Columbia
Yes, the card was formatted (whith mac osx format FAT 16) and with windows pc. I used two memories: 128MB and 2GB.

Post Number:#6 Post Mon Apr 27, 2015 10:19 am
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi!

Using the card of 2 GB try change on setup:

card.init(SPI_HALF_SPEED, SelectSlave_SD);


To:

card.init(SPI_QUARTER_SPEED, SelectSlave_SD);


Or:

card.init(SPI_FULL_SPEED, SelectSlave_SD);


Best regards.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#7 Post Tue Apr 28, 2015 8:09 pm
Posts: 16
Topics: 3
Solve rating: 0
Joined: Fri Aug 08, 2014 11:17 pm
Topics: 3
Age: 50
Location: Barranquilla
Gender: Male
National Flag:
Columbia
Hi!

Using this
void loop() {
  // read any existing Serial data
  while (Serial.read() >= 0) {}
 
  // pstr stores strings in flash to save RAM
  cout << pstr("\ntype any character to start\n");
  while (Serial.read() < 0) {}

  uint32_t t = millis();
  // initialize the SD card at SPI_HALF_SPEED to avoid bus errors with
  // breadboards.  use SPI_FULL_SPEED for better performance.
  if (!card.init(SPI_FULL_SPEED, SdChipSelect)) {
    sdErrorMsg("\ncard.init failed");
    return;
  }


The result is

SdFat version: 20120825

type any character to start

card.init failed
SD errorCode: 0X1
SD errorData: 0XFF

type any character to start


That can I do?

Regards
Last edited by Fernando Garcia on Wed Apr 29, 2015 10:43 am, edited 1 time in total.
Reason: Please use tags [code][/code] to post any code here.

Post Number:#8 Post Wed Apr 29, 2015 10:45 am
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi!

As I told use the examples available on forum.

Check the soldering of your TFT shield.

Best regards.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#9 Post Fri May 01, 2015 11:39 am
Posts: 16
Topics: 3
Solve rating: 0
Joined: Fri Aug 08, 2014 11:17 pm
Topics: 3
Age: 50
Location: Barranquilla
Gender: Male
National Flag:
Columbia
Hi!

Thenk but now the arduino show this:

MemoMemoria livre: 6855
Erro: vol.init Falhou!
SD Erro: 4,FF

Post Number:#10 Post Fri May 01, 2015 1:07 pm
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi!

It should be problem with hardware.

Best regards.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#11 Post Fri May 01, 2015 10:54 pm
Posts: 16
Topics: 3
Solve rating: 0
Joined: Fri Aug 08, 2014 11:17 pm
Topics: 3
Age: 50
Location: Barranquilla
Gender: Male
National Flag:
Columbia
Hi!
Apparently it was a solder and pin.
Problem resolve.
Regards




Return to Ferduino code





Who is online

Users viewing this topic: No registered users and 1 guest