How to compile STM32f103 program on ubuntu?
<p>I've some experience with programming stm32 arm cortex m3 micro controllers on Windows using Keil. I now want to move to linux environment and use open source tools to program STM32 cortex m3 devices. </p>

<p>I've researched a bit and found that I can use OpenOCD or Texane's ST Link to flash the chip. I also found out that I'll need a cross compiler to compile the code viz. gcc-arm-none-eabi toolchain. </p>

<p>I want to know what basic source and header files are needed? Which are the core and systems file required to make a simple blink program. </p>

<p>I'm not intending to use HAL libraries as of now. I'm using stm32f103zet6 mcu (a very generic board). I went to <a href="http://regalis.com.pl/en/arm-cortex-stm32-gnulinux/" rel="nofollow">http://regalis.com.pl/en/arm-cortex-stm32-gnulinux/</a> , but couldn't exactly pinpoint the files. </p>

<p>If there is any tutorial to start stm32 programming on linux environment, please let me know. </p>

<p>Any help is appreciated. Thanks!</p>