This is an i2c slave based on stm32. This implements a simple math calculator for doing addition, subtraction and multiplication of given two numbers.
Modify meson.build
according to your needs.
libocm3Path
- libopencm3 directory path
You need to issue ./build.sh
for once.
$ ./build.sh
$ cd builddir
ninja - generates elf file.
$ ninja
ninja hex - generates hex file.
$ ninja hex
ninja size - gives the summary of hex file size.
$ ninja size
ninja upload - upload hex file to stm32 via stlink programmer.
$ ninja upload
Refer to my blog for more details.