STM8 MCUs

Discuss STM8 microcontrollers, including SWIM, USART configurations, RTC usage, ADC issues, and debugging.

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

stlink-v3MODs can programe and debug stm8s series MCU

CLONE of stlink V2 not supported by cubeide and cube programmer. stlinkV3 MODs i have brought recently. But studiny datasheet and TN1235 i didnot found that it is capable to programe and debug STM8S series MCU. Is it true? did any body used stlinkV3-...

BAS-BLEU by Associate II
  • 547 Views
  • 0 replies
  • 0 kudos

Addressable LED Programming in STM8

We are trying to program addressable LEDs through STM8 microcontroller. For the initial development, we use the NUCLEO-8S208RB. The architecture is as below image. Eight "IN-PI33QBTPRPGPBPW-60" LEDs connected to a data line in daisy chain.We face som...

PreethiT_0-1740717336412.png
PreethiT by Associate II
  • 827 Views
  • 3 replies
  • 0 kudos

Canbus Driver Init

Hello,I am new for the this mcu(STM8S). I want to init and run the Can driver. But I can't find any documentation or examples on the subject. I don't see any guidance on installing the driver. How should I do this? Are there any examples? I could onl...

STM8S103 I2C issue

Hi,I like to control this cute STM8S103 uC with c-code without using any library. I created many succesfully projects but now I want to write a I2C driver.I configured the uC portpins PB4/PB5 being SCL/SDA as Psuedo Open Drain and as Ouput and the I2...

sthvw by Associate III
  • 665 Views
  • 3 replies
  • 0 kudos

Resolved! STM8L051F3, TIM4, what do I miss to make it run

I'm a bit rusty on 8Bit MCU's, more used to STM32 but have to get that STM8 project done.I have a problem get TIM4 running, it might be I don't see the wood for all that trees.It gets compiled using SDCC and the header file is slightly adopted for th...

jgnoss by Associate III
  • 940 Views
  • 2 replies
  • 1 kudos

Resolved! STM8S SPI: how to use it in 3-wire (bidirectional data) mode?

Hello,I want to connect STM8S003 & ADXL345 (accelerometer) using SPI 3wire mode (lines ~CS, SCK & MOSI as single bidirectional data line).According to 'RM0016 Reference manual STM8S...', the register SPI_CR2 of STM8S has BDM (Bidirectional data mode ...

Vadim_ by Associate II
  • 1952 Views
  • 2 replies
  • 0 kudos

delay_ms not working

I have copied the delay_ms function from the standard Discovery code, but I can't get it to work. It seems that it is running precise 10x too slow, so "delay_ms(100)" gives me a 1 sec delay.Can anyone explain what is wrong?/* MAIN.C file * * Copyr...

Wassini by Associate II
  • 1624 Views
  • 1 replies
  • 0 kudos

Install STM8CubeMX Issues

Getting stuck installing STM8CubeMX on Ubuntu 23.10.Downloaded from here: https://www.st.com/en/development-tools/stm8cubemx.html From the manual found here: https://www.st.com/resource/en/user_manual/um2125-stm8-configuration-tool-stmicroelectronics...