Skip to content

Latest commit

 

History

History
94 lines (66 loc) · 1.58 KB

chibios.org

File metadata and controls

94 lines (66 loc) · 1.58 KB

dev

  • irc: webchat.oftc.net/?channels=vhs

chibios general

ChibiOS-RT git:

https://github.com/ChibiOS/ChibiOS-RT

ST-Link:

git clone https://github.com/texane/stlink.git
cd stlink
./autogen.sh
./configure
make
sudo ln -s ~/projects/chib/stlink/st-util /usr/bin/st-util
sudo st-util -p 4242

Run ST link to connect to your board:

gcc for chromebook

Had trouble with the native gcc and so began building a:

arm-unknown-eabi-gcc

by downloading the latest from:

http://crosstool-ng.org/download/crosstool-ng/

bzip2 -d crosstool-ng-1.19.0.tar.bz2
tar xvf crosstool-ng-1.19.0.tar
cd crosstool-ng-1.19.0
./bootstrap
sudo pacman -S gperf
./configure
make
sudo make install
ct-ng
ct-ng list-samples
ct-ng arm-unknown-eabi
ct-ng menuconfig
time ct-ng build

gcc compiler on intel laptop

sudo pacman -S arm-none-eabi-gcc arm-none-eabi-binutils arm-none-eabi-gdb 

401 board

https://github.com/tdwebste/ChibiOS-RT/tree/tdwebste_STM401_addtimers

cd ChibiOS-RT/demos/ARMCM4-STM32F401-DISCOVERY
make clean; make
arm-none-eabi-gdb build/ch.elf
target extended-remote :4242
load
run

alternative to gdb:

ddd --debugger arm-none-eabi-gdb ./build/ch.elf
target extended-remote :4242
load
run

MEMS accelerometer work

get this code:

http://forum.chibios.org/phpbb/viewtopic.php?f=16&t=1161&start=10

these are the drivers

read this page:

http://marks-space.com/2013/04/18/success-with-a-balancing-robot-using-a-raspberry-pi/

usage code