Skip to main content
rhame.1
Associate
October 7, 2022
Question

STM8CubeMX code generation option is missing What are the other options to start with stm8s Microcontrollers. suggestions please.......

  • October 7, 2022
  • 6 replies
  • 3462 views

..

    This topic has been closed for replies.

    6 replies

    Tesla DeLorean
    Guru
    October 7, 2022

    Suppose it depends on where you're "starting" from and the skill set you bring with you?

    Learn to code in C?

    Use the example projects in the STM8 SPL ?

    https://lujji.github.io/blog/bare-metal-programming-stm8/

    https://tenbaht.github.io/sduino/developer/spl/

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    rhame.1
    rhame.1Author
    Associate
    October 9, 2022

    I am using arduino for very long time, Arduino IDE and Language is very easy as compared to the STM. I want to use STM8S001 but i am not be able to write code more than the LED BLINK. please recommend any useful links

    Piranha
    Principal III
    October 9, 2022

    I would even vote for removing the code degeneration from STM32CubeMX also...

    rhame.1
    rhame.1Author
    Associate
    October 9, 2022

    I think you don't want anyone to use STM microcontrollers, The initial settings of the stm microcontroller is very difficult ( like Clock configuration , GPIO enable etc )

    Kmax18
    Senior II
    October 18, 2022

    Hi rhame.1,​ using STM8 and STM32 devices requires

    1) the C-programming language, which is a very popular programming language for embedded systems, and

    2) studying the architecture of the STM device you are planning to use.

    For your first STM project I recommend to download the C-library for your specific device. For example, for a STM8S processor you would use the STM8S Standard Peripheral Library (SPL), which can be downloaded HERE. The SPL includes a reference manual and also many helpful code examples that demonstrate how to initialize the device and then run the application algorithm. I suggest that you buy the NUCLEO development board for your specific processor to get started.

    Good luck!

    October 22, 2022

    You have 2 ways ahead of yourself.

    1. you can start programming using standard peripheral libraries which the related link has been commented by Kmath.1
    2. try to use stm8's registers and configure any peripheral you wanna use step by step and bit by bit.

    prior to these 2 aforementioned points, you definitely need to fully understand stm8 reference manual and its structure

    after that, I really recommend you to go over example projects provided by st.com

    ALSO, I found these tutorials extremely helpful

    https://embedded-lab.com/blog/starting-stm8-microcontrollers/

    Have a go and good luck!