STM8 MCUs

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

STM8 Manual Clock Switching Bug

Hi,I guess there is a bug in manual clock switching (file: stm8s_clk.c function:CLK_ClockSwitchConfig:( /* Wait until the target clock source is ready */ while((((CLK->SWCR & CLK_SWCR_SWIF) != 0 ) && (DownCounter != 0))) { DownCounter--; }Mus...

I am trying to develop simple spi communication between 2 stm8s. I am using same files for master and spi with main.c different. Master code compiles successfully with no errors, slave has following error inspite all syntax is proper. Any help?

Compiling main.c...cxstm8 +warn +mods0 +debug -pxp +strict -pp -ps -psa -pu -l -i"C:\Program Files (x86)\COSMIC\FSE_Compilers\Hstm8" -clDebug\ -coDebug\ main.c#error cpstm8 stm8s.h:2525(12) missing ;#error cpstm8 stm8s_gpio.h:68(18) incomplete declar...

Upate.1 by Associate II
  • 628 Views
  • 2 replies
  • 0 kudos

symbol _GPIO_Init not defined (Debug\main.o )

I tried the example code in this document - dm00405517-getting-started-with-the-stm8s001j3-microcontroller-stmicroelectronics.pdf, the code was://Recommendation for STM8S001J3 firmware AN5047 12/20 Rev 2 /* MAIN.C file */ #include "stm8s.h" #include ...

MQi.1 by Senior II
  • 829 Views
  • 1 replies
  • 0 kudos

I2C SLAVE ISSUE

i2c issuei am using stm8s207m8t6 controller i need 30 slaves and master master side code ok but issue in slave when initilize i2cI2C_Init(300000, 0X30, I2C_DUTYCYCLE_2, I2C_ACK_CURR, I2C_ADDMODE_7BIT, 16);if use 0x30 slave address slave respond. if c...

gm.1 by Associate
  • 334 Views
  • 0 replies
  • 1 kudos

Resolved! STM8 SWIM not working after firmware upgrade

I am using my stlink (chinese clone) from last one year for STM8. It was working fine till last week. But when I upgraded its Firmware( to version- 2J37S7) from CUBEIDE then it started misfunctioning for STM8 . Only sometimes it is detected by ST vis...

0693W00000BZn0dQAD.png

i2c slave issue

i2c issuei am using stm8s207m8t6 controller i need 30 slaves and master master side code ok but issue in slave when initilize i2cI2C_Init(300000, 0X30, I2C_DUTYCYCLE_2, I2C_ACK_CURR, I2C_ADDMODE_7BIT, 16);if use 0x30 slave address slave respond. if c...

gm.1 by Associate
  • 291 Views
  • 0 replies
  • 1 kudos

STM8L Touch Sensing Problem

Hello everyone,I have a problem with touch sensing on STM8L151K4, It is impossibe to increase number of touch key to 10.I have to put each key in a bank for it to work. ie my project needs 8 touch keys and consumes 8 banks.I tried my best to put mult...

Pvu.1 by Associate
  • 254 Views
  • 0 replies
  • 0 kudos