Question
Getting Started, MCU plays dead ?
Posted on March 05, 2012 at 03:33
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 foundhttps://docs.google.com/open?id=0BwP0qhqyaTIIcktzWVcxS0JRNEM0Z1BhS0tlT0pyZw
(in google docs)