Skip to main content
Nidhal Abidi
Associate II
Jan 25, 2018 1:00 AM UTC
Question

How to get started with stm32f0discovery

Posted on January 25, 2018 at 02:00

Hi I'm new with stm32, I bought an stm32f0discovery but I can't work with it I wanna get help or some tutorial please.

    This topic has been closed for replies.

    32 replies

    Andrew Neil
    Super User
    Jan 25, 2018 9:42 AM UTC
    Posted on January 25, 2018 at 10:42

    Why can't you 'work with it'? Where are you stuck? What have you tried?

    For basic getting-started tips, see:

    https://community.st.com/0D50X00009XkWm7SAF

    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
    Andrew Neil
    Super User
    Jan 25, 2018 9:43 AM UTC
    Posted on January 25, 2018 at 10:43

    Please don't put the entire question in the subject line!

    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
    Bogdan Golab
    Lead
    Jan 25, 2018 10:54 AM UTC
    Posted on January 25, 2018 at 10:54

    Maybe we should have FAQ page since many questions are asked again and again without searching the site (not sure if the searching works fine now  - it works at least for me). The basic stuff:

    -how to start

    -where the training materials are stored

    -some basic projects e.g LED blinking (*.ioc based projects) - not everybody find ST delivered examples interesting when he/she would like to start  - these examples have no ioc files what is particularly important when you want to use BSP (I shared several project for a few Discovery boards)

    -etc

    Your post is really good to be re-used here....

    Andrew Neil
    Super User
    Jan 25, 2018 11:16 AM UTC
    Posted on January 25, 2018 at 11:16

    Bogdan Golab wrote:

    many questions are asked again and again without searching

    and there's the fundamental flaw: people who don't search won't find the FAQ.

    :(

     
    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
    Nidhal Abidi
    Associate II
    Jan 25, 2018 2:28 PM UTC
    Posted on January 25, 2018 at 15:28

    Could I use arduino modules such as esp8266 for wifi or sdcard module ?

    Andrew Neil
    Super User
    Jan 25, 2018 3:36 PM UTC
    Posted on January 25, 2018 at 15:36

    Yes, it is certainly possible.

    Whether you, specifically, have the necessary skills and experience is less certain ...

    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
    fdan00
    Visitor II
    Jan 29, 2018 12:22 PM UTC
    Posted on January 29, 2018 at 13:22

    The answer to your question generally requires more information about your skills and your difficulties than you are willing to provide.

    With that said, I did a series of 'getting started with ...' On stm32 and other chips / tools. While the details vary, the gist is the same.

    Also, there is a stm32 port of the Arduino, and I had a (few) generic port of Arduino to stm32, including the f0 chip.

    I can post a link later. Or you can search 'xduino' on GitHub.

    Andrew Neil
    Super User
    Jan 29, 2018 1:36 PM UTC
    Posted on January 29, 2018 at 13:36

    Note that STM32 is now supported directly in the Arduino IDE: 

    https://community.st.com/community/stm32-community/blog/2017/07/13/stm32-cores-enabled-in-arduino-ide

     

    Previously, there were a number of  'Arduino-like' things - including

    https://www.leaflabs.com/maple/

    ,

    https://github.com/stm32duino

    , the above-mentioned '

    http://www.xduino.com/

    ', et al ...
    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
    Szymon PANECKI
    Senior III
    Jan 29, 2018 11:00 PM UTC
    Posted on January 29, 2018 at 23:00

    On the top of information provided by Andrewlet me share with you a presentation, which guides how to get started step by step with STM32 and Arduino IDE. Please find a file attached.

    Regards

    Szymon

    ________________

    Attachments :

    STM32_Arduino.pdf : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hy4s&d=%2Fa%2F0X0000000b3q%2FxG_rFACqZ0QHduA.ww2JpseEwzmlXTV9.lmllDjm8bQ&asPdf=false
    Nidhal Abidi
    Associate II
    Jan 29, 2018 9:35 PM UTC
    Posted on January 29, 2018 at 22:35

    Hey could I use the integrated st-link v2 in the stm32f0discovery to flash or to program something else or other chip. It exists 6 pins (SWD) ??? 

    Bogdan Golab
    Lead
    Jan 29, 2018 10:40 PM UTC
    Posted on January 29, 2018 at 22:40

    http://www.st.com/resource/en/user_manual/dm00050135.pdf

     

     4.2chapter  Using

    ST-LINK

    /V2 to program/d ebug an external ST M32 application
    Nidhal Abidi
    Associate II
    Jan 29, 2018 10:54 PM UTC
    Posted on January 29, 2018 at 22:54

    Thanks I did read it but how. Is it possible to flash arduino via the ' ISP header 6-pins' ??? 

    fdan00
    Visitor II
    Jan 30, 2018 1:27 PM UTC
    Posted on January 30, 2018 at 14:27

    '

    Is it possible to flash arduino via the ' ISP header 6-pins' ??? '

    yes, on any chip made by anyone so long as it follows STM's programming protocol.