项目作者: amitesh-singh

项目描述 :
i2c slave example based on stm32f103
高级语言: C++
项目地址: git://github.com/amitesh-singh/i2c-slave-stm32f1.git
创建时间: 2018-01-07T11:19:20Z
项目社区:https://github.com/amitesh-singh/i2c-slave-stm32f1

开源协议:

下载


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.

  1. $ ./build.sh
  2. $ cd builddir

ninja - generates elf file.

  1. $ ninja

ninja hex - generates hex file.

  1. $ ninja hex

ninja size - gives the summary of hex file size.

  1. $ ninja size

ninja upload - upload hex file to stm32 via stlink programmer.

  1. $ ninja upload

Refer to my blog for more details.