yuansco / USB-Type-C-Power-Meter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

USB-Type-C-Power-Meter

This project is a open source USB Type-C power monitor based on STM32 for USB Type-C Power Delivery related tests.

How to building a new firmware binary

Download GNU Arm cross compiler toolchain:

https://launchpad.net/gcc-arm-embedded/5.0/5-2016-q3-update/+download/gcc-arm-none-eabi-5_4-2016q3-20160926-linux.tar.bz2

Unzip toolchain and add it to PATH:

tar -vxjf gcc-arm-none-eabi-5_4-2016q3-20160926-linux.tar.bz2
echo "export PATH=$PATH:~/gcc-arm-none-eabi-5_4-2016q3/bin" >> ~/.bashrc
source ~/.bashrc
arm-none-eabi-gcc -v

Run build.sh script to compile:

./build.sh

About


Languages

Language:C 98.0%Language:Assembly 1.6%Language:Makefile 0.3%Language:C++ 0.1%Language:Shell 0.0%Language:Python 0.0%