Circular buffer in flash implementation
问题 I have been working on data logger for an embedded device. The goal is to store values of a set of variables in periodic manner into the external flash memory. My idea is to create a buffer in RAM. Size of the buffer will be equal to the number of bytes in one sector in the external flash i.e. 512 B. After expiration of prescribed time I will fill the buffer with values of the variables and then I will store this record into the external flash. External flash contains several blocks reserved