I'm looking on the internet and found the SdFat . I noticed that the files in this library are also inside the SD library directory.
But I could not figure out how to use , not found any examples .
Thank You.
Explore... Chat... Share...
Moderator: igrr
Arduino: 1.6.5 (Linux), Board: "NodeMCU (ESP8266 ESP-12 Module), 80 MHz, 115200"
/home/porcao/Documents/Arduino-esp8266-sdk-1.0/arduino-1.6.5/libraries/SdFat/utility/StdioStream.cpp: In member function 'size_t StdioStream::print(const __FlashStringHelper*)':
/home/porcao/Documents/Arduino-esp8266-sdk-1.0/arduino-1.6.5/libraries/SdFat/utility/StdioStream.cpp:285:39: warning: 'section' attribute does not apply to types [-Wattributes]
const char *p = (const char PROGMEM *)str;
^
/home/porcao/Documents/Arduino-esp8266-sdk-1.0/arduino-1.6.5/libraries/SdFat/utility/StdioStream.cpp:293:34: warning: 'section' attribute does not apply to types [-Wattributes]
return p - (const char PROGMEM *)str;
^
SdFat/SdFatUtil.cpp.o:(.text+0x0): undefined reference to `__brkval'
SdFat/SdFatUtil.cpp.o:(.text+0x4): undefined reference to `__bss_end'
SdFat/utility/StdioStream.cpp.o: In function `StdioStream::fillBuf()':
StdioStream.cpp:(.text+0x4d8): undefined reference to `memchr'
StdioStream.cpp:(.text+0x527): undefined reference to `memchr'
collect2: error: ld returned 1 exit status
Error compiling.
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
uint8_t *memchr2(uint8_t *ptr, uint8_t ch, size_t size)
{
for (int i = 0; i < size; i++)
if (*ptr++ == ch)
return ptr;
return NULL;
}
#ifdef __arm__
extern "C" char* sbrk(int incr);
int SdFatUtil::FreeRam() {
char top;
return &top - reinterpret_cast<char*>(sbrk(0));
}
#else // __arm__
+#ifdef ESP8266
+#else
extern char *__brkval;
extern char __bss_end;
/** Amount of free RAM
* \return The number of free bytes.
*/
int SdFatUtil::FreeRam() {
char top;
return __brkval ? &top - __brkval : &top - &__bss_end;
}
+#endif
#endif // __arm
It takes about 20-25 seconds for home assistant c[…]
I tried to upgrade tof my sonoff basic R2 with the[…]
a problem Perhaps you want to define "Probl[…]
Rebooting your router will not give you a faster I[…]
There are no other notifications from esptool.py i[…]
Using the Arduino IDE, you'll learn how to set up […]
In this project, you will post to Twitter using an[…]
In this project, we will build a water level contr[…]
I guess I'm late, but I had the same problem and f[…]
Last night I received my first D1 Minis for a lear[…]
Although I am aware that this is an old post, I fe[…]