chipKIT® Development Platform

Inspired by Arduino™

modify SdFat library

Created Wed, 11 Dec 2013 10:51:23 +0000 by 19filo83


Wed, 11 Dec 2013 10:51:23 +0000

Hi to everyone. In the SdFat.h file, there is the int16_t write (const void *buf, uint16_t nbyte) function. Does anyone know if it is possible to modify this function to write a larger number of bytes (like uint32_t nbyte)? Many thanks. Filippo


Wed, 11 Dec 2013 13:25:29 +0000

I don't see why not - just change that parameter to be a uint32_t, and also in SdFile.cpp in the SdFile::write(...) function, change nToWrite to be a uint32_t as well.

Jacob Christ

Sun, 16 Feb 2014 03:09:55 +0000


Did you try this, and if so, did it work?



Sun, 16 Feb 2014 07:34:08 +0000

Jacob, I tried it. It works very well.