User Tools

Site Tools


linux_mios32_toolchain_core

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux_mios32_toolchain_core [2011/04/27 03:46] consumerlinux_mios32_toolchain_core [2024/05/23 19:46] (current) phatline
Line 2: Line 2:
     for MIOS32 application development on Linux     for MIOS32 application development on Linux
  
- \\ 
 ====== Preparation ====== ====== Preparation ======
 This document assumes that you have a relatively modern x86 based linux distribution. While it may work other distributions, it has only been tested on x86 Ubuntu 10.10. Many of the commands, especially "aptitude" are only available on Debian derived distributions like Ubuntu. This document assumes that you have a relatively modern x86 based linux distribution. While it may work other distributions, it has only been tested on x86 Ubuntu 10.10. Many of the commands, especially "aptitude" are only available on Debian derived distributions like Ubuntu.
Line 28: Line 27:
  
 ===== Linux build utilities ===== ===== Linux build utilities =====
-Depending upon your distribution, the command for installing the basic build tools like "make" may be different but I used the command:\\ +Terminal commands for installing basic build tools like "make":\\ 
-  * sudo aptitude install build-essential\\+*** Debian/Ubuntu/Mint:** //sudo aptitude install build-essential//\\ 
 +*** Arch Linux/Manjaro:** //sudo pacman -S base-devel//\\
  
 ===== GNU Multiple Precision Library ===== ===== GNU Multiple Precision Library =====
-If you do not already have libgmp3-dev installed, you must install it (or lib32gmp3-dev if you are using an AMD64 version of linux). For Debian/Ubuntu users, you can use the command+Terminal Commands:\\ 
-  sudo aptitude install libgmp3-dev (or lib32gmp3-dev)+*** Arch Linux/Manjaro:** //sudo pacman -S gmp//\\ 
 +*** Debian/Ubuntu/Mint:** // sudo aptitude install libgmp3-dev// (or //lib32gmp3-dev//   for AMD64Version)\\ 
 +**Ubuntu, Mint troubleshoot:** if it still doesnt build(make) it might be that you use a 64bit Computer, but the toolchain is for 32bit, so you will need additonal following commands:\\ 
 +//sudo dpkg --add-architecture i386//\\ 
 +//sudo apt-get update//\\ 
 +//sudo apt-get install libc6:i386 libstdc++6:i386 zlib1g:i386//\\ 
 +//sudo apt-get install libc6:i386//\\ 
 + 
 + 
  
 ===== MIOS32 Toolchain ===== ===== MIOS32 Toolchain =====
Line 40: Line 49:
 The Toolchain has currently been compiled for Windows (2000+), Mac OS X (Leopard or newer) and Linux x86 (built on Ubuntu 10.10).\\ The Toolchain has currently been compiled for Windows (2000+), Mac OS X (Leopard or newer) and Linux x86 (built on Ubuntu 10.10).\\
 \\ \\
-The download directory for the toolchain is ftp://ftp.lansystems.co.uk/pub/midibox\\+The download directory for the toolchain is http://www.midibox.org/mios32_toolchain\\
 \\ \\
-Download the latest "linux86" file and extract into your favorite directory, If you extract into /usr/local the toolchain will create /usr/local/mios32_toolchain and various sub-directories containing the toolchain files.\\+Download the latest "linux" file and extract into your favorite directory, If you extract into /usr/local the toolchain will create /usr/local/mios32_toolchain and various sub-directories containing the toolchain files.\\
   * cd /usr/local   * cd /usr/local
-  * sudo wget ftp://ftp.lansystems.co.uk/pub/midibox/mios32_toolchain_linux86_xxxxxxxx.tgz +  * sudo wget http://www.midibox.org/mios32_toolchain/gcc-arm-none-eabi-xxxxxx.tar.bz2 
-  * sudo tar zxvf mios32_toolchain_linux86_xxxxxxxx.tgz+  * sudo tar zxvf gcc-arm-none-eabi-xxxxxx.tar.bz2
 \\ \\
-replace xxxxxxx with the date of the latest linux toolchain in ftp://ftp.lansystems.co.uk/pub/midibox\\+replace xxxxxxx with the date of the latest linux toolchain in http://www.midibox.org/mios32_toolchain\\
 \\ \\
 You now need to set the path variable for the toolchain bin directory (/usr/local/mios32_toolchain/bin) this is covered in the next section\\ You now need to set the path variable for the toolchain bin directory (/usr/local/mios32_toolchain/bin) this is covered in the next section\\
Line 74: Line 83:
 The following commands will setup the build environment for MIOS32, you must change MIOS32_PATH to be wherever you installed the svn repository:\\ The following commands will setup the build environment for MIOS32, you must change MIOS32_PATH to be wherever you installed the svn repository:\\
  
-  * export MIOS32_PATH=~/midibox/mios32/trunk +  * export MIOS32_PATH=~/midibox/mios32/trunk\\ 
-  * export MIOS32_BIN_PATH=$MIOS32_PATH/bin +  * export MIOS32_BIN_PATH=$MIOS32_PATH/bin\\ 
-  * export MIOS32_GCC_PREFIX=arm-none-eabi +  * export MIOS32_GCC_PREFIX=arm-none-eabi\\ 
-  * export MIOS32_FAMILY=STM32F10x +  * export MIOS32_FAMILY=STM32F10x\\ 
-  * export MIOS32_PROCESSOR=STM32F103RE +  * export MIOS32_PROCESSOR=STM32F103RE\\ 
-  * export MIOS32_BOARD=MBHP_CORE_STM32 +  * export MIOS32_BOARD=MBHP_CORE_STM32\\ 
-  * export MIOS32_LCD=clcd+  * export MIOS32_LCD=universal\\
 \\ \\
 \\  \\ 
-You can add these lines to your ~/.profile file to ensure that they are always set, the editor pico (or nano) is a fairly simple text editor but you may have your favourite.+You can add these lines to your ~/.profile file to ensure that they are always set, the editor pico (or nano) is a fairly simple text editor but you may have your favourite.\\ 
 +\\ 
 +__ 
 +**If you know what you are Doing in Linux-you can do this systemwide:**__\\ 
 +open your filebrowser with sudo rights, for example type in terminal:\\ 
 +*** Linux Mint:** //sudo nemo// \\ 
 +*** Linux Arch:** //sudo thunar//\\ 
 +the filebrowser now opens with root rights, navigate to the folder "etc" open the file "environment" >>> **/etc/environment**\\ 
 +Depending on the path where your toolchain is situated, the Example Content off this file is:\\ 
 + 
 +  * PATH="/home/autark/midibox/gcc-arm-none-eabi/bin"\\ 
 +  * MIOS32_PATH=/home/autark/midibox/mios32\\ 
 +  * MIOS32_BIN_PATH=/home/autark/midibox/mios32/bin\\ 
 +  * MIOS32_BOARD=MBHP_CORE_STM32F4\\ 
 +  * MIOS32_FAMILY=STM32F4xx\\ 
 +  * MIOS32_GCC_PREFIX=arm-none-eabi\\ 
 +  * MIOS32_PROCESSOR=STM32F407VG\\ 
 +  * MIOS32_LCD=universal\\ 
 + 
 +if you cant log after reboot, then mostly you messed up your "PATH" variable, in this case, boot with Linuxbootstick, and remove the PATH - line...\\ 
 + 
 +**you can also add more folders to the PATH, they are separeted with a ":", for example:**\\ 
 +* PATH="/home/autark/midibox/gcc-arm-none-eabi/bin:/home/autark/program"\\ 
 +here we also have a folder named "program", when you put in there "Mios Studio", then you can write in Terminal "Mios Studio" and mios studio will open\\ 
 + 
 ===== Building your first application ===== ===== Building your first application =====
 Once you have completed the above steps, you should be able to build your first application. Once you have completed the above steps, you should be able to build your first application.
Line 89: Line 123:
   * make   * make
 if this works great! If not, either you made a mistake (or I did!!) if this works great! If not, either you made a mistake (or I did!!)
- 
linux_mios32_toolchain_core.1303875997.txt.gz · Last modified: 2011/04/27 03:46 by consumer