Skip to main content
Frederic Cloth
Associate II
Jun 8, 2018 10:34 AM UTC
Question

Newbie loSTM in space

Posted on June 08, 2018 at 12:34

Hi,

sorry for this beginner question: I am new to developping with the STM32 platform.

I just acquired an STM32F103 evaluation board and the Atollic TrueStudio software.

This works perfectly, I could compile and execute the standard 'blinking LED' project,

so basically I have no problem with the chain of tools itself.

I see that the provided code uses some system calls such as

STM_EVAL_LEDInit()

STM_EVAL_PBInit()

STM_EVAL_LEDToggle()

RCC_GetClocksFreq()

etc

On the ST website, they apparently direct you toward 'Mbed OS' which is documented

but it seems to be different system calls than the ones used by Atollic TrueStudio, and

the code produced seems to be way more heavy (the blinking LED example compiled with

Mbed CLI is about 50k, where the one compiled with TrueStudio is about 2.5K !).

I tryed to find a reference manual for those calls provided in 'TrueStudio', but so far I have

been unlucky. I tryed to type searches such as 'reference manual STM32F103' on the ST website,

forum and google, or even some of the system calls like 'STM_EVAL_LEDInit' but no luck so far.

Could someone be kind enough to point me in the right direction ?

Thanks !

    This topic has been closed for replies.

    7 replies

    Tesla DeLorean
    Guru
    Jun 8, 2018 11:32 AM UTC
    Posted on June 08, 2018 at 13:32

    If this is using the SPL (Standard Peripheral Library) there should be a Windows Help file in the root directory, I've seen PDF versions of this too.

    Like

    STM32F1xx_StdPeriph_Lib_V3.5.0\stm32f1xx_stdperiph_lib_um.chm

    But honestly, in 2018 don't start an IoT design with an F1 part, these are a decade old, and there are new parts that work a lot better with a lot of the limitations/inflexibilites designed out.

    HAL is the current library that ST actively supports, should be PDF describing that available in/near the CubeMX/HAL downloads

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Tesla DeLorean
    Guru
    Jun 8, 2018 1:37 PM UTC
    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Bogdan Golab
    Lead
    Jun 8, 2018 11:51 AM UTC
    Posted on June 08, 2018 at 13:51

    This book is exactly about STM32F103 (particularly useful for 2USD 'blue pill' board

    https://www.apress.com/la/book/9781484236239

     
    Bogdan Golab
    Lead
    Jun 8, 2018 1:53 PM UTC
    Posted on June 08, 2018 at 13:53

    And a piece from the introductory chapter:

    0690X0000060LBvQAM.png
    Frederic Cloth
    Associate II
    Jun 8, 2018 11:33 PM UTC
    Posted on June 08, 2018 at 23:33

    Hi,

    and first of all thanks for having taken the time to answer my question.

    The libopencm3 which is cited in the introductory chapter seems quite an

    interesting ressource, and it seems

    there is a reference manual for it. Fantastic !

    I certainly will try to investigate in that direction.

    Thank you very much !

    On Fri, Jun 8, 2018 at 1:53 PM, Bogdan Golab <st-microelectronics@jiveon.com