"Cannot Start SD" Error Code

Hello everyone,
first of all i am a complete newbie when it comes to arduino. This is my first projekt and as you can imagine, i have quiet the problem to get it get going.

So i am trying to build a digital frame as a gift. Here is the video which i used for reference:

DIY Arduino Digital Photo Frame (just type this into youtube)

This is the hardware i am using:
TFT 3.5 Screen: https://www.amazon.de/dp/B07KK4NV3V?psc=1&ref=ppx_yo2ov_dt_b_product_details
Arduino UNO Rev. 3: https://www.amazon.de/dp/B008GRTSV6?psc=1&ref=ppx_yo2ov_dt_b_product_details
SD-Card: SanDisk Extreme 32GB HC1

So i use the sketch from this library MCUFRIEND. The name of the sketch is schowBMP_kbv_Uno

Everytime i upload the code and but a picture on the sd card i get the following error message: "cannot start sd".

So after that i started some diging i first i used the library SDfat and used the sketch QuickStart. I get this message after uploading: errorCode: 0x17, errorData: 0xa

After that i used the library SD and chosed the sketch SdInfo. i also get this error message: 0x17, errorData: 0xa

And this is the point i am stucked. I also use an external power suply. So voltage shouldn't be an issue.

For SD Card formation i use the Software SDCard Formater.

Any would be appreciated :slight_smile:

The best thing you can do is post the code according to the forum guidelines. Your links have nice pictures but are missing technical information such as interface, pinout, etc. Your "UNO" tells you to use a 9V battery, this is a NONO, read this forum for many problems with them. You need to post a schematic that is properly annotated with device, pin and function labels as you have wired it. Links to technical information on all of the parts you are actually using are needed, Amazon links are missing a lot. Doing this should get you a good answer in a short time.

error descriptions found in Sd2Card.h... all but 0x17

// SD card errors
/** timeout error for command CMD0 */
uint8_t const SD_CARD_ERROR_CMD0 = 0X1;
/** CMD8 was not accepted - not a valid SD card*/
uint8_t const SD_CARD_ERROR_CMD8 = 0X2;
/** card returned an error response for CMD17 (read block) */
uint8_t const SD_CARD_ERROR_CMD17 = 0X3;
/** card returned an error response for CMD24 (write block) */
uint8_t const SD_CARD_ERROR_CMD24 = 0X4;
/**  WRITE_MULTIPLE_BLOCKS command failed */
uint8_t const SD_CARD_ERROR_CMD25 = 0X05;
/** card returned an error response for CMD58 (read OCR) */
uint8_t const SD_CARD_ERROR_CMD58 = 0X06;
/** SET_WR_BLK_ERASE_COUNT failed */
uint8_t const SD_CARD_ERROR_ACMD23 = 0X07;
/** card's ACMD41 initialization process timeout */
uint8_t const SD_CARD_ERROR_ACMD41 = 0X08;
/** card returned a bad CSR version field */
uint8_t const SD_CARD_ERROR_BAD_CSD = 0X09;
/** erase block group command failed */
uint8_t const SD_CARD_ERROR_ERASE = 0X0A;
/** card not capable of single block erase */
uint8_t const SD_CARD_ERROR_ERASE_SINGLE_BLOCK = 0X0B;
/** Erase sequence timed out */
uint8_t const SD_CARD_ERROR_ERASE_TIMEOUT = 0X0C;
/** card returned an error token instead of read data */
uint8_t const SD_CARD_ERROR_READ = 0X0D;
/** read CID or CSD failed */
uint8_t const SD_CARD_ERROR_READ_REG = 0X0E;
/** timeout while waiting for start of read data */
uint8_t const SD_CARD_ERROR_READ_TIMEOUT = 0X0F;
/** card did not accept STOP_TRAN_TOKEN */
uint8_t const SD_CARD_ERROR_STOP_TRAN = 0X10;
/** card returned an error token as a response to a write operation */
uint8_t const SD_CARD_ERROR_WRITE = 0X11;
/** attempt to write protected block zero */
uint8_t const SD_CARD_ERROR_WRITE_BLOCK_ZERO = 0X12;
/** card did not go ready for a multiple block write */
uint8_t const SD_CARD_ERROR_WRITE_MULTIPLE = 0X13;
/** card returned an error to a CMD13 status check after a write */
uint8_t const SD_CARD_ERROR_WRITE_PROGRAMMING = 0X14;
/** timeout occurred during write programming */
uint8_t const SD_CARD_ERROR_WRITE_TIMEOUT = 0X15;
/** incorrect rate selected */
uint8_t const SD_CARD_ERROR_SCK_RATE = 0X16;

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.