sdFat library error code need help
can me interpret second error code?
i think first means
uint8_t const sd_card_error_write = 0x13
card returned error token response write operation
this card reads fine sdfat quickstart sketch can't written sdfat or sd wrapper library. eye-fi wifi card:
http://www.eye.fi/products/prox2
reading , writing both fine on pc.
i think first means
uint8_t const sd_card_error_write = 0x13
card returned error token response write operation
code: [select]
type character start
error: opening test.txt write failed
sd errorcode: 0x13,0x8b
this card reads fine sdfat quickstart sketch can't written sdfat or sd wrapper library. eye-fi wifi card:
http://www.eye.fi/products/prox2
reading , writing both fine on pc.
the error 0x13 (from sd2card.h):
the error data, 0x8b returned token. from sd specification
0x8b crc error.
most sd cards ignore crc on data write in spi mode eye.fi cards can not made ignore crc.
the arduino has no hardware crc sdfat can software crc. you can enable crc editing sdfatconfig.h . change define:
quote
/** card returned error token response write operation */
uint8_t const sd_card_error_write = 0x13;
the error data, 0x8b returned token. from sd specification
quote
7.3.3.1 data response token
every data block written card acknowledged data response token. 1 byte long
and has following format:
7 6 5 4 3 2 1 0
x x x 0 status 1
the meaning of status bits defined follows:
'010' - data accepted.
'101' - data rejected due crc error.
'110' - data rejected due write error
0x8b crc error.
most sd cards ignore crc on data write in spi mode eye.fi cards can not made ignore crc.
the arduino has no hardware crc sdfat can software crc. you can enable crc editing sdfatconfig.h . change define:
code: [select]
//------------------------------------------------------------------------------
/**
* enable sd card crc checking set use_sd_crc nonzero.
*
* set use_sd_crc 1 use smaller slower crc-ccitt function.
*
* set use_sd_crc 2 used larger faster table driven crc-ccitt function.
*/
#define use_sd_crc 0
Arduino Forum > Using Arduino > Storage > sdFat library error code need help
arduino
Comments
Post a Comment