AnsweredAssumed Answered

Getting Started, MCU plays dead ?

Question asked by white.jason on Mar 5, 2012
Latest reply on Apr 4, 2012 by Clive One
Hello, I am trying to get started with STM32 microcontrollers. I have a STM32F103RBT6 on a development board and I am using the gcc toolchain (target arm-elf, flags -s -Os -mthumb -mcpu=cortex-m3).

The sample code I am using toggles 2 IO pins as fast as possible, it compiles fine. However when compiled (and optimized for size) the output is quite large (about 50k), after the elf is converted to binary its still around 50k in size and is mostly empty space (zeros). When I flash the MCU with the program it does not seem to execute it (IO pins are still in the same states). I have the IO port thats being toggled enabled in code. I'm not sure what I am doing wrong (program, compiler, etc), any help would be appreciated.

My code can be found here (in google docs)

Outcomes