Skip to content

KRproject-tech/binlog4mbed

Repository files navigation

Communication

Twitter

Language

BinLog4mbed

Sample code of the Fast binary data logging for mbed LPC1768.

This code is for gcc4mbed compiler: https://github.com/adamgreen/gcc4mbed

Binary file saved on local storage is read by MATLAB code in "./load binary/" or Python code on Anaconda environments in "./load binary_Py/".

Format

Data is written as short int (2 Bytes) in "DATA.LOG".

image

Usage

  • Compile mbed code

Compile source code, and generated "fwrite_test.bin" move to the local storage of mbed LPC1768.

"DATA.LOG" is generated in local storage in mbed.

  • Read binary file

Read the generated file by "./load binary/plot_data.m"

図2