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 revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
windows_mios32_toolchain_core [2010/11/29 23:35] – Installation of Java is obsolete adminwindows_mios32_toolchain_core [2015/07/01 10:21] – [make version check] shuriken
Line 53: 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:\mios32_toolchain and various sub-directories containing the toolchain files. 
 + 
 +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 91: 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 120: Line 123:
 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
  
 Additional environment variables to configure the environment: Additional environment variables to configure the environment:
Line 130: 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 149: 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 171: Line 191:
 \\ \\
 \\ \\
- 
  
 ====SVN Repository==== ====SVN Repository====
Line 188: 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 195: 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.txt · Last modified: 2015/07/01 10:24 by shuriken