Skip to content

amitesh-singh/i2c-slave-stm32f1

Repository files navigation

i2c slave based on stm32

This is an i2c slave based on stm32. This implements a simple math calculator for doing addition, subtraction and multiplication of given two numbers.

How to compile

Modify meson.build according to your needs.

libocm3Path - libopencm3 directory path

You need to issue ./build.sh 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.