Build and Test Environment based on Ubuntu 14.04 LTS for the STM32F4-Discovery board.
- examples have the following status:
- build-ARM-toolchain
- freertos library
- mbed library
- mbed-project-wizard
- STM32F4-Discovery_FW_V1.1.0 library library
- test
vagrant --version
Vagrant 1.6.3 # Issues with version < 1.5.0
# Install Vagrant by following instructions at https://www.vagrantup.com/downloads.html
# Install VirtualBox (https://www.virtualbox.org/)
sudo apt-get install build-essential virtualbox virtualbox-dkms virtualbox-guest-dkms \
virtualbox-guest-utils virtualbox-guest-x11 virtualbox-qt
# Download VirtualBox extension pack (https://www.virtualbox.org/wiki/Downloads)
wget http://download.virtualbox.org/virtualbox/4.3.14/Oracle_VM_VirtualBox_Extension_Pack-4.3.14-95030.vbox-extpack
# Install the extension pack
VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.3.14-95030.vbox-extpack
An alternative is to build the image from scratch. See the Vagrantfile for details.
cd ~
vagrant init istarc/stm32
vagrant up
# Manually enable ST-Link: Devices -> USB Devices -> STMicroelectronics STM32 STLink
# Switch to VirtualBox Container
cd ~/stm32/
make clean
make -j4
# Switch to VirtualBox Container
cd ~/stm32/examples/Template.mbed
make clean
make -j4
# Manually enable ST-Link: Devices -> USB Devices -> STMicroelectronics STM32 STLink
sudo make deploy
# Switch to VirtualBox Container
cd ~/stm32bb
buildbot start master
buildslave start slave
firefox http://localhost:8010
# Login U: admin P: admin (Upper right corner)
Click: Waterfall -> test-build-local -> [Use default options] -> Force Build
# Test builds examples in /home/admin/stm32/examples
Click: Waterfall -> test-build-repo -> [Use default options] -> Force Build
# Test builds examples from the https://github.com/istarc/stm32.git repository
Check: Waterfall -> F5 to Refresh