STM8 MCUs

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Resolved! STM8 Standard Library and Cosmic produces huge code?

I'm using ST Visual develop and Cosmic to program a STM8S003K3 and I'm thought it would be nice to use the STM8 Standard Library (downloaded from ST.COM). Within a very short time I got errors telling me that I tried to put more code in the MCU than ...

Willunen by Associate III
  • 4498 Views
  • 30 replies
  • 1 kudos

STM8001J3 - Cannot communicate with the device!

I used ST Visual Programmer to check if soldering's been completed well.I didn't open any files but just clicked the programming tab (the red arrow one) but the message that it cannot communicate with the device popped up. It still didn't work when I...

JAn.1610 by Associate II
  • 390 Views
  • 0 replies
  • 0 kudos

Repeated start condition as I2C Slave in polling mode

We are currently experiencing a problem with the STM8AL3166, The I2C is set up as slave and when reading data from the STM8, first a sub-address is writtten to the STM8 whereafter a repeated start is issued. The I2C must be working in polling mode)....

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
  • 548 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
  • 866 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
  • 974 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
  • 1693 Views
  • 4 replies
  • 0 kudos