installing_gnu_on_osx
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
installing_gnu_on_osx [2009/11/03 10:03] – baptistou | installing_gnu_on_osx [2010/11/30 20:10] – philetaylor | ||
---|---|---|---|
Line 38: | Line 38: | ||
===2- install the STM32 toolchain=== | ===2- install the STM32 toolchain=== | ||
- | A nice pre-built binaries archive can be found at this page: " | + | The MIDIbox community have created a modified GNU Compiler Collection, ready for use with the ARM Cortex M3 platform. The toolchain |
- | You don't need to do everything written on this page as we won't use Circle OS and FatFryer.\\ | + | |
- | Just download the pre-built binaries in the section " | + | |
- | Expand the archive, you will then have a " | + | |
- | Check that all the files expanded properly in your /usr folder.\\ | + | |
- | The trick is that the /usr folder is hidden by the finder so if you want to open it, in the finder' | + | |
- | Personally I tried to expand the files with the terminal as said in the " | + | The Toolchain has currently been compiled for Windows (2000+), Mac OS X (Leopard or newer) |
- | You now need to set the path variable for the toolchain, see the next section about this | + | |
+ | The download | ||
+ | |||
+ | Download the latest | ||
+ | |||
+ | You now need to set the path variable for the toolchain | ||
===3- set up the paths variables=== | ===3- set up the paths variables=== | ||
Line 54: | Line 54: | ||
Your compiler also uses the shell to access to the different files involved. Thus, it has to know where to find these files. | Your compiler also uses the shell to access to the different files involved. Thus, it has to know where to find these files. | ||
- | Setting up path variables in the shell is quite easy: in a terminal window just type "export VARIABLE_NAME=something" | + | Setting up path variables in the shell is quite easy: in a terminal window just type\\ |
+ | '' | ||
and if you want to check to what the variable has been assigned, type: | and if you want to check to what the variable has been assigned, type: | ||
'' | '' | ||
Line 66: | Line 67: | ||
In our case, we need to set up the path variable for the STM32 toolchain: | In our case, we need to set up the path variable for the STM32 toolchain: | ||
type in the terminal\\ | type in the terminal\\ | ||
- | '' | + | '' |
and then we need to set up variables for mios32 itself: | and then we need to set up variables for mios32 itself: | ||
'' | '' | ||
Line 100: | Line 101: | ||
then copy and paste these lines inside the pico editor: | then copy and paste these lines inside the pico editor: | ||
- | '' | + | '' |
export MIOS32_PATH=~/ | export MIOS32_PATH=~/ | ||
export MIOS32_BIN_PATH=$MIOS32_PATH/ | export MIOS32_BIN_PATH=$MIOS32_PATH/ | ||
Line 107: | Line 108: | ||
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=clcd\\ |
+ | echo MIOS32 variables initialized.'' | ||
do " | do " | ||
do " | do " | ||
- | log off or shut down your computer\\ | + | Once you open a new terminal, the variables will be set automatically, |
- | login of start up the computer\\ | + | It isn't required to log off or shut down your computer |
- | open a terminal window and check if the variables are all set up:\\ | + | Open a terminal window and check if the variables are all set up by typing:\\ |
- | '' | + | '' |
- | if they are not, that's probably | + | If you don't see the messages (and MIOS32 variables don't exist), that's probably |
Useful info about bash and initialisation files here: | Useful info about bash and initialisation files here: | ||
[[http:// | [[http:// |
installing_gnu_on_osx.txt · Last modified: 2011/05/21 20:52 by admin