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

STM8-S08-DISCO SWIM error 30006

I get a swim error [30006] when trying to connect to an unmodified STM-S08-DISCO board (configured for S001J3). I viewed the SWIM signal at pin 1 of the socket and the voltage levels do not look valid. It is powered by USB and the STLINK LED does f...

Errors found on STEVAL-OET003V1 board documentation for STM8AF5288

The CANH and CANL signals are reversed on the DB9 connectors. The schematic shows CANH from the TJA1043 driver chip going to pin 7 of the DB9, and CANL going to pin 2. This is the standard for use of DB9 connector on many CAN devices. In fact, the...

DTrim by Associate
  • 542 Views
  • 0 replies
  • 0 kudos

STM8S UART Receive problem

Posted on August 02, 2016 at 13:24I have a weird condition in which the STM8S003 does not read the entire packet I'm sending using a PC serial port. For example I have sent 256 bytes using a PC software but at the end I have only read 214 bytes inst...

stm8s-discuvery timer1 channel does not working while channel 2 3 do

the function where taken from st spl main() ;   TIM1_DeInit();  GPIO_DeInit(GPIOC);  GPIO_Init(GPIOC, GPIO_PIN_1, GPIO_MODE_OUT_PP_HIGH_FAST);  //TIM1_TimeBaseInit(0, TIM1_COUNTERMODE_UP, 4095, 0);  TIM1->CCER1 = 0x77 ;  TIM1->CCER2 = 0x37 ;  TIM1->C...

Ocohe by Associate
  • 402 Views
  • 0 replies
  • 0 kudos

what's the application scenario of the CPUDIV in CLK?

We can get the information that the CPUDIV can be used to divide fMATESR for CPU. And the divide ration can up to 128:1. I wonder that when you configure CPUDIV to 128:1, can CPU works normally when access peripherals such as I2C. Or CPUDIV is just ...

l yk by Associate II
  • 485 Views
  • 0 replies
  • 0 kudos

Hello, I am trying to initialize I2C, but getting continuously high signal on both SDA and SCL pins . Can anyone suggest what can be the issue?

#include "stm8s.h"#define I2C_PORT   (GPIOB)#define SDA_pin   (GPIO_PIN_5)#define SCL_pin   (GPIO_PIN_4)#define SLAVE_ADDRESS 0x60#define I2C_OWN_ADDRESS 0x00static void CLK_Config(void);void I2C_init(void);void I2C_Write(uint8_t I2C_Slave_Address,ui...

HJada by Associate
  • 1025 Views
  • 3 replies
  • 0 kudos