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

STM8AF UART Baudrate limitation in stdlib.

I've noticed that in the STM8 standard peripheral libraries, in the UART3_Init function there is an assertion checking the baud setting:assert_param(IS_UART3_BAUDRATE_OK(BaudRate)), which limits the baudrate to 625000.BUT according to the datasheet t...

NKorn.3 by Associate
  • 602 Views
  • 1 replies
  • 0 kudos

PWM does not start on TIM1

I'm trying to use TIM1 to output a PWM signal on stm8s103f3 using the standard library (patched) with sdcc compiler.The output goes high, but there's no signal.#include "stm8s.h" #include "stm8s_it.h" /* SDCC patch: required by SDCC for interrupts...

BSerb by Associate II
  • 995 Views
  • 5 replies
  • 0 kudos

I would like some doubts clarified

I've been working with STM8S chips for about 2-3 months now, and would like my doubts clarified:What is the state of the RAM in the chip after a software/watchdog reset(Not BOR or POR, obviously). I have assumed the RAM is not disturbed by the Reset,...

I have stm8l discovery and Can any one help with i2c configuration here. I am using LP55231 led driver and I do not know whether this configuration is correct.

Please go through the code and help me out in the configuration.void i2c_init(void) {  I2C1_FREQR = 0x20;// 16mHz  I2C1_CCRL = 0x50; // 160  I2C1_OARH = 0x40; // 7-bit addressing and add-mode configuration  I2C1_CR1 = 0x01; // enable peripheral}void ...

VSrin by Associate II
  • 1110 Views
  • 4 replies
  • 0 kudos

STEVAL-ISB044V1 cannot communicate with ST-Link V2

Hi all,I'm using theᅠSTEVAL-ISB044V1 evaluation board for the wireless charging test. The evaluation board is based on STWBC-EP and can be programmed with ST-LINK V2. STM8AF6166 is the core of it, so I post here. I tried to program the board, and the...

Dilemma by Associate II
  • 1889 Views
  • 4 replies
  • 0 kudos

IAR for STM8, FLASH_EraseBlock stuck in release mode

#define RAM_EXECUTION (1) configured with STM8AF52xxUse FLASH_EraseBlock in debug mode to erase normally.In release mode (medium or high optimization) use FLASH_EraseBlock to die.why?

Llai.930 by Associate II
  • 933 Views
  • 4 replies
  • 0 kudos

What is it the strange CPU instruction generated by SDCC?

Hello everyone.SLCC generated a strange instruction similar to JRF, represented as .byte 0x21 pseudo-instruction. Can anyone explain what this is? A code snippet is provided in the attachment. The compiler options are as follows: -mstm8 --out-fmt-elf...

I request sample from estore, but when i get to the shipping page, no matter how i fill out anything, the cointue button cant work and cant pass to next page,so i gave up requesting sample ,so pls st send me free sample stm8s103k3t6, thanks.

I request sample from estore, but when i get to the shipping page, no matter how i fill out anything, the cointue button cant work and cant pass to next page,so i gave up requesting sample ,so pls st send me free sample stm8s103k3t6, thanks.