GL Starterkit (GL board + STM32F4DISCOVERY) is used in this demo. You can either use STM32CUBEIDE (recommended) or compile project with Cmake.
-
Download STM32CUBEIDE last version from https://www.st.com/en/development-tools/stm32cubeide.html
-
Extract it from archive and run in terminal
$ sudo ./[extracted_file]
-
After installing please auto-update it through "Help->Check for Updates" menu.
-
In CubeIDE import xlgyro project - use ~/src/sbc-platform/src/pits/xlgyro folder.
-
Build project.
-
Connect STM32F4DISCOVERY with USB cable.
-
To flash use "Flash xlgyro" external tool configuration in menu or use flash.sh script (if it doesn't work, check path to flash utility in the script).
If you want to compile xlgyro demo with Cmake:
-
If you use 64x architecture, install
$ sudo apt-get install gcc-multilib
-
Download crosscompiler from https://launchpad.net/gcc-arm-embedded/+download
-
Untar it to your $HOME
$ tar xjf gcc-arm-none-eabi-5_4-2016q3-20160926-linux.tar.bz2
-
Add this code to ~/.bashrc:
export CROSS_COMPILE="arm-none-eabi-" PATH="$PATH:$HOME/gcc-arm-none-eabi-5_4-2016q3/bin"
-
Compile xlgyro with Cmake:
$ cd [xlgyro path] $ ./build.sh