title: Ubuntu: What gcc to use when crosscompiling for the STM32 (Cortex-M3)?
body: <p>I'm trying to get started with the STM32 (Cortex-M3) and my plan is get this working from Ubuntu (9.04 / AMD64). </p>
  
  <p>To start with I got the <a href="http://olimex.com/dev/stm32-h103.html" rel="noreferrer">Olimex stm32-h103</a> header board and the <a href="http://olimex.com/dev/arm-usb-ocd.html" rel="noreferrer">Olimex ARM-USB-OCD</a> jtag, and on to of that I will probably use OpenOCD, gcc and Eclipse.</p>
  
  <p>But right now I'm looking into what version of gcc to use and how to setup that to be able to crosscompile the code.</p>
  
  <p>There seem to be some arm projects out there but I don't know what to start with, 
  can somebody push me in the right direction?</p>
  
  <p>Thanks 
  Johan</p>
  
  <hr>
  
  <p><strong>Update</strong>:
  There seems almost to be what I want from <a href="http://www.codesourcery.com/sgpp/lite/arm/portal/release830" rel="noreferrer">codesourcery</a>, 
  but they seem to focus on IA32 and not AMD64.</p>
  
  <p>However in the supported devices I find the Cortex-M3</p>
  
  <ul>
  <li>ARM EABI, ARM M-profile Simulator -mcpu=cortex-m3 -mthumb</li>
  </ul>
  
  <p><strong>Update</strong>:
  There is a possibility to install IA32 on AMD64, 
  so maybe the marked answer is obsolete already.</p>
  
  <p><strong>Update</strong>:
  Found this link about crosscompile for the Cortex-M3.</p>
  
  <ul>
  <li><a href="http://www.eluaproject.net/en_tc_cortex.html" rel="noreferrer">http://www.eluaproject.net/en_tc_cortex.html</a></li>
  <li><a href="http://fanplastic.org/gcc-for-arm-eabi/" rel="noreferrer">http://fanplastic.org/gcc-for-arm-eabi/</a></li>
  </ul>