Quantcast
Channel: Intel Communities: Message List
Viewing all articles
Browse latest Browse all 18672

SD Library Function Seek() for Ring-Buffer Not Working

$
0
0

I am newbie and have been experimenting with SD library to write a data logging routine that uses a file on the SD card to create a ring buffer. Data is written to a text file and when the file size reaches a maxim size a pointer is reset causing the file to be rewritten stating at the beginning. In this way the file is always kept to a desired size and prevents it from exceeding the max size of the SD card.

 

In the process of writing code (see attached file) I have found that the SD "seek" function does not appear to be working. Using an Arduino Uno I tested my code and it works correctly, but when I load it on the Galileo it does not. The problem is that the SD seek function does not work correctly. When I try to set a write position within the file it never goes to the new position. All that happens when I print to the file is an append to the end of the file. Does anybody know if this is a known issue or how to create a work around?


Viewing all articles
Browse latest Browse all 18672

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>