2017-03-08 03:11 AM
Hi,
i have a little project working on stm32f415, with a task producer and a task consumer, between i want put a SdCard ( with fat ) like cache, because if something going wrong during trasmission or consumer is busy for some reason, i not lost the data.
Add all data at the end of file is not a problem, but it's possible take packet from start address and shift all the data in easy way ?
I can't read entire file because can be also some megabyte of space.
So i think i need to use a file on Sdcard like FIFO.
Sorry for my english
2017-03-08 05:06 AM
You won't be able to 'move' the data in any efficient way.
You could construct a FIFO using a file by managing two file pointers, and pulling in 8K or 32K blocks at a time.
You could also spool data into multi files to send later, ie store and forward.
2017-03-08 09:18 AM
Ok,
thank you !!