- wiringPi code example for a blinky works.
- Code used in a DIO (Digital Input/Output) SIFB compiles.
- Publish/Subscribe problem currently. See next Post for details.
- Neil Higgins got a Blinky from forte working!
- See 4DIAC / FORTE on Rasperry Pi in 4DIAC Open Discussion
- Our set-ups are different, so both will be instructional.
- not using wiringPi,
- uses Gertboard
Mar.27+ Notes
- RPi Cross compile - hello world
- dev environment and cross-compiler install
- Eclipse properities set-up
- See notes at bottom of post
- communication set-up for testing (TODO)
- Blinking an LED with C
- Install of WiringPi (includes git-core)
- Install and build on RPi
- Install only on cross-compile computer
- Need for includes for compiles
- Copy the installed wiringPi from RPi to cross-compile computer (TODO)
Blinking an LED with C - cross compile with wiringPi
http://hertaville.com/2012/09/28/development-environment-raspberry-pi-cross-compiler/
see Stephan questions and answers
RPi Cross-compile: arm-linux-gnueabihf-g++
Development Environment for the Raspberry Pi using a Cross Compiling Toolchain and Eclipse Posted on September 28, 2012 by halherta
For Eclipse properties C/C++ General -> Paths and Symbols set-up I found it useful (for copy/paste) to list the files needed :
Includes
$HOME/raspberrypi/tools/arm-bcm2708/gcc-linaro-arm-gnueabihf-raspbian/
1 arm-linux-guneabihf/include
2 arm-linux-guneabihf/libc/usr/include
3 lib/arm-linux-guneabihf/4.7.2/include-fixed
4 lib/arm-linux-guneabihf/4.7.2/include
5 lib/arm-linux-guneabihf/4.7.2/finclude
Library paths
$HOME/raspberrypi/tools/arm-bcm2708/gcc-linaro-arm-gnueabihf-raspbian/
1 arm-linux-guneabihf/lib
2 arm-linux-guneabihf/libc/lib
3 arm-linux-guneabihf/libc/lib/arm-linux-guneabihf
4 lib/gcc/arm-linux-guneabihf/4.7.2
5 libexec/gcc/arm-linux-guneabihf/4.7.2
No comments:
Post a Comment