User Tools

Site Tools


windows_mios32_toolchain_core

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
windows_mios32_toolchain_core [2009/11/12 20:35]
admin
windows_mios32_toolchain_core [2015/07/01 10:24] (current)
shuriken [GCC Toolchain]
Line 32: Line 32:
 ====== Windows Utilities ====== ====== Windows Utilities ======
  
-===== Sun Java J2SE ===== 
- 
-Chances are you already have the Java runtime... I don't recommend upgrading the existing version if you do. 
-  * [[http://​www.java.com/​getjava/​|Download J2SE]] 
-  * Install with defaults or whatever meets your requirements. I recommend disabling automatic updates. 
-\\ 
-\\ 
 ===== 7zip ===== ===== 7zip =====
  
Line 51: Line 44:
 \\ \\
 ====== Required Tools ====== ====== Required Tools ======
- 
 ===== MSYS ===== ===== MSYS =====
  
 MSYS provides us with a POSIX (UNIX style) environment for our Windows PC. This packages includes tools such as make and sed and sh, which are required to correctly run gputils later on. I recommend the latest version, but v1.0.11 has tested OK. MSYS provides us with a POSIX (UNIX style) environment for our Windows PC. This packages includes tools such as make and sed and sh, which are required to correctly run gputils later on. I recommend the latest version, but v1.0.11 has tested OK.
-  * [[http://​sourceforge.net/projects/mingw/​files/​MSYS%20Base%20System/​msys-1.0.11/​MSYS-1.0.11.exe/download|Download MSYS]]+  * [[http://downloads.sourceforge.net/​mingw/​MSYS-1.0.11.exe|Download MSYS]] ​ (more info [[http://​www.mingw.org/​wiki/​MSYS|here]])
   * Install using the defaults.   * Install using the defaults.
   * When the install is almost complete, you will see a DOS console window open, and you will be prompted: "Do you wish to continue with the post install? [yn ]". Type '​y'​ (without the quotes) and hit Enter.   * When the install is almost complete, you will see a DOS console window open, and you will be prompted: "Do you wish to continue with the post install? [yn ]". Type '​y'​ (without the quotes) and hit Enter.
Line 61: Line 53:
   * Press Enter, to exit the postinstall script, and click '​Finish'​.   * Press Enter, to exit the postinstall script, and click '​Finish'​.
  
-===== CodeSourcery G++ Lite =====+===== GCC Toolchain ​=====
  
-This is the modified GNU Compiler Collection, ready for use with the ARM Cortex M3 platform. +The MIDIbox community have created a modified GNU Compiler Collection, ready for use with the ARM Cortex M3 platform. ​The toolchain contains all of the tools required to build MIOS32 applications including GCC and NEWLIB. MSYS is still currently required although may be added to later version ​of the toolchain. 
-Since the STM32 is a flavour ​of Cortex M3this is what we want to have+ 
-Lateronce Cortex support makes it into the regular ​gcc distribution,​ we can use that instead, +The Toolchain has currently been compiled for Windows (2000+)Mac OS X (Leopard or newer) and Linux x86 (built on Ubuntu). 
-but for nowwe need the CodeSourcery distribution.+ 
 +The download directory for the toolchain ​is http://www.midibox.org/​mios32_toolchain 
 + 
 +Download the latest "​windows"​ file and unzip into your favorite directoryIf you unzip into c:\ the toolchain will create c:\gcc-arm-none-eabi-4_7-2013q3-20130916-win32 and various sub-directories containing the toolchain files. Rename the directory gcc-arm-none-eabi-4_7-2013q3-20130916-win32 to mios32_toolchain. 
 + 
 +You must add the "​bin"​ directory to your windows patha temporary way is to type the following in a Windows Command Prompt window: (change c:​\mios32_toolchain to wherever you extracted your toolchain) 
 + 
 +SET PATH= %PATH%;​c:​\mios32_toolchain\bin ​  
 + 
 +If you want to make this change permanent (you probably will) follow this Microsoft KB article http://​support.microsoft.com/​kb/​310519 This article will also help you when adding ​the MIOS32 specific variables later on.
  
-  * [[http://​www.codesourcery.com/​public/​gnu_toolchain/​arm-none-eabi/​arm-2009q3-68-arm-none-eabi.exe|Download here]] 
-  * Install using the defaults. 
-  * Answer the question for adding to the PATH variable with "​yes"​ or activate the check box that enables this. 
 \\ \\
 \\ \\
Line 99: Line 97:
     * ;​C:​\MSYS\1.0\bin     * ;​C:​\MSYS\1.0\bin
  
-If you missed adding the path to the CodeSourcery compiler upon installation,​ add this one too 
-  * ;C:\Program Files\CodeSourcery\Sourcery G++ Lite\bin 
  
-It is STRONGLY recommended to put these directories ​at the BEGINNING of the PATH Variable!  +It is STRONGLY recommended to put this directory ​at the BEGINNING of the PATH Variable!  
-For users with different Windows language versions, the "​Program Files" directory may be +
-named differently and needs to be adapted.+
  
 Merge everything in notepad. Merge everything in notepad.
Line 127: Line 122:
  
 DOS: (we assume, that the repository has been downloaded to D:\) DOS: (we assume, that the repository has been downloaded to D:\)
-  set MIOS32_PATH=D:\mios32\trunk+  set MIOS32_PATH=/D/mios32/trunk
   set MIOS32_BIN_PATH=D:​\mios32\trunk\bin   set MIOS32_BIN_PATH=D:​\mios32\trunk\bin
  
Line 138: Line 133:
   set MIOS32_PROCESSOR=STM32F103RE   set MIOS32_PROCESSOR=STM32F103RE
   set MIOS32_BOARD=MBHP_CORE_STM32   set MIOS32_BOARD=MBHP_CORE_STM32
-  set MIOS32_LCD=clcd+  set MIOS32_LCD=universal 
 +   
 +MBHP_CORE_LPC17:​ 
 +  set MIOS32_GCC_PREFIX=arm-none-eabi 
 +  set MIOS32_FAMILY=LPC17xx 
 +  set MIOS32_PROCESSOR=LPC1769 
 +  set MIOS32_BOARD=MBHP_CORE_LPC17 
 +  set MIOS32_LCD=universal 
 +   
 +MBHP_CORE_STM32F4:​ 
 +  set MIOS32_GCC_PREFIX=arm-none-eabi 
 +  set MIOS32_FAMILY=STM32F4xx 
 +  set MIOS32_PROCESSOR=STM32F407VG 
 +  set MIOS32_BOARD=MBHP_CORE_STM32F4 
 +  set MIOS32_LCD=universal 
 +  ​
  
 You can set these in the Windows preferences (just like the PATH variable) by clicking "Add New" and entering the respective pairs. You can set these in the Windows preferences (just like the PATH variable) by clicking "Add New" and entering the respective pairs.
Line 157: Line 167:
   * Type "​CMD"​ (without the quotes) and hit Enter.   * Type "​CMD"​ (without the quotes) and hit Enter.
   * Paste in the following command:   * Paste in the following command:
-''​make --version''​+<​code>​ 
 +make --version 
 +</​code>​
   * Hit Enter. You should see the following output:   * Hit Enter. You should see the following output:
  
Line 179: Line 191:
 \\ \\
 \\ \\
- 
  
 ====SVN Repository==== ====SVN Repository====
Line 190: Line 201:
 If you made it this far, you've actually done enough. You can code C apps in wordpad.exe,​ run '​make'​ to create your app.\\ If you made it this far, you've actually done enough. You can code C apps in wordpad.exe,​ run '​make'​ to create your app.\\
 I'd recommend taking a look at [[http://​notepad-plus.sourceforge.net/​|Notepad++]],​ which is a real nice programming editor.\\ I'd recommend taking a look at [[http://​notepad-plus.sourceforge.net/​|Notepad++]],​ which is a real nice programming editor.\\
-You should visit [[mios_studio|The MIOS Studio Page]] for instructions on how to install MIOS Studio to upload the app.\\+You should visit [[http://​www.ucapps.de/​mios_studio.html|The MIOS Studio ​Page]] for instructions on how to install MIOS Studio to upload the app.\\
 \\ \\
 \\ \\
Line 196: Line 207:
 ====== Core Tools Complete ====== ====== Core Tools Complete ======
  
-If you'd like to have a more advanced tool set in your hands, please read on to install and configure an IDE. Currently, there is documentation for:\\ 
-[[windows_toolchain_notepadplus|NotePad++]] - An open-source tool suitable for C apps.\\ 
 You may also like to see the documents for the additional tools:\\ You may also like to see the documents for the additional tools:\\
 [[http://​www.midibox.org/​dokuwiki/​windows_toolchain_svn|TortoiseSVN]]\\ [[http://​www.midibox.org/​dokuwiki/​windows_toolchain_svn|TortoiseSVN]]\\
Line 203: Line 212:
 \\ \\
 \\  \\ 
 +
 +====== MIOS32 IDE ======
 +
 +If you'd like to have a more advanced tool set in your hands, please read on to install and configure an IDE.
 +
 +===== Notepad++ =====
 +
 +[[windows_toolchain_notepadplus|NotePad++]] - An open-source tool suitable for C apps.
 +
 +===== Eclipse =====
 +
 +[[eclipse|Eclipse]] - A popular open-source IDE.  Project configurations exist in the repository for app_skeleton and app_skeleton_cpp. ​ This IDE also supports OpenOCD integration for on-chip debugging your MIOS32 application through a JTAG interface. Setting up projects in Eclipse, as well as JTAG source level debugging is documented here. 
 +\\
 +\\
windows_mios32_toolchain_core.1258058124.txt.gz · Last modified: 2009/11/12 20:35 by admin