cancel
Showing results for 
Search instead for 
Did you mean: 

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

rhame.1
Associate II
 
6 REPLIES 6

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
Up vote any posts that you find helpful, it shows what's working..
Piranha
Chief II

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

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

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 )

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!

mimho
Senior

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!