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

Program the STM8 MCU(SWIM) using Nucleo-L152RE

I have Nucleo-L152RE board and I used this board to program the STM32 MCU using JTAG (CN4) connector. Now, I want to program the STM8 board using SWIM interface. So, is it possible with Nucleo-L152RE?. I already done the required changes to use Nucle...

AP_040 by Senior
  • 2431 Views
  • 6 replies
  • 0 kudos

timer counter

float get_resi(void) in https://gist.github.com/goog/bf784c5f63a199ddbde7cd49db92f73fcould you help to check the get_resi function?im not sure whether my time counter has some issue?

Normal files needed to use STM8 with STVD and Cosmic

I am working on my first STM8 project and getting used to its own flavour of quirks etc.Setting up a new project installs stm8s_interrupt_vector.c which I understand. I want to use the standard peripheral drivers so have downloaded them and added the...

BCowa by Associate II
  • 565 Views
  • 0 replies
  • 0 kudos

timer code

static void TIM1_Config(void) { CLK_PeripheralClockConfig(CLK_Peripheral_TIM1, ENABLE); TIM1_DeInit(); // 2m/ 40 TIM1_TimeBaseInit(39, TIM1_CounterMode_Down, 0xffff, 0); //timer freq = (clock CPU/16) -> 1bit = 1uS -> 92...

Cannot reach the low power consumption target

Hello,I'm starting to use the STM8L family and in particular the STM8L050 MCU. I want to start with low power so i wrote this piece of code : /* MAIN.C file * * Copyright (c) 2002-2005 STMicroelectronics */ #include <stdint.h> #include "stm8l.h" ...

Is it possible that HALT mode can brick my board ?

Hello,I'm very new with stm8. Im using a STM8L050 and it seems i have bricked my board because i have set my CPU in halt but now i cannot flash it again. Is it possible ?Best regards,Aurélien

stm8l lcd low power

mcu into active-halt mode, so i can not enable ULP?if i set ulp to 1, then the lcd blinks

0690X00000AA4uSQAT.png