Log system based on external FRAM storage. Allow to collect float values in FRAM, and then store whole collection into file on flash.

Sample code

#include "mbed.h"
#include "FRAMLog.h"

SPI spi(p5,p6,p7);
FRAMLog flog(spi, p8, 4, 2048);
Serial pc(USBTX, USBRX);

int main() {
    for( int i=0; i<2048; i++){
        flog.log(i/4096.0);
        flog.log(i/(4096.0+1));
        flog.log(i/(4096.0+2));
        flog.log(i/(4096.0+3));
    }
    flog.save();
}

History

Upload default tip

2012-10-21, by Decimus [Sun, 21 Oct 2012 20:29:57 +0000] rev 1

Upload


Logging on internal Flash

2012-10-15, by Decimus [Mon, 15 Oct 2012 17:04:49 +0000] rev 0

Logging on internal Flash