Programming an STM32F030

Discussion in 'Embedded Systems and Microcontrollers' started by poofjunior, Nov 19, 2013.

  1. poofjunior

    Thread Starter New Member

    May 21, 2013
    9
    0
    Hi everyone,

    I just noticed that the STM32F030 bare chips are pretty cheap! (Only about $1.45 on Digikey for the TSSOP20 packaged version)
    http://www.digikey.com/product-search/en/integrated-circuits-ics/embedded-microcontrollers/2556109?k=stm32f030

    I'm a student who recently learned how to etch my own pcbs using the toner transfer method with a layout made in EAGLE. I've already had success programming two projects using a TQFP ATmega328p on their own custom boards. To program them, I just exposed the programming pins that would fit an ISP header and used AVRDUDE.

    I guess the big question for me is: how do I go about programming an STM32F030 ? Looking at the schematic for their dev board, they're using a separate chip, the STLINK, to do the programming.

    Is there any other way that I can program the STM32F030 without this chip?
    Can I use a JTAG programmer? Which pins do I expose?

    I was expecting to find this answer in the datasheet, but I didn't notice anything that related to the protocol for programming these chips.

    Thanks for helping me unravel this!

    For reference:
    the schematic files:
    http://www.st.com/web/en/catalog/tools/PF259100

    the arm assembly programming manual:
    http://www.st.com/web/en/resource/technical/document/programming_manual/DM00051352.pdf

    the datasheet:
    http://www.st.com/web/en/resource/technical/document/datasheet/DM00088500.pdf
     
  2. MrChips

    Moderator

    Oct 2, 2009
    12,446
    3,362
    The simplest solution is to get the STM32F0DISCOVERY for $10 and use the ST-LINK connection. You only need two signals, JTCK and JTMS, plus GND.
     
  3. poofjunior

    Thread Starter New Member

    May 21, 2013
    9
    0
    Thanks, MrChips,

    It looks like JTMS and JTCK are also known as SWDIO and SWCLK ? Do I also have to toggle the reset or set the BOOT pin to user flash?

    By chance, can you point me to any documents that discuss how to do this? I'd imagine that ST must have some application note on how to program these if companies are assumed to implement them in their own products.
     
  4. MrChips

    Moderator

    Oct 2, 2009
    12,446
    3,362
    Last edited: Nov 19, 2013
  5. chrisw1990

    Active Member

    Oct 22, 2011
    543
    41
    Just FYI, in terms of writing the code for ARM.. take a look at CooCox IDE, not sure if youre aware of it but i highly recommend it as its entirely unlimited and pretty good and nice to look at (if you like eclipse)
     
Loading...