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

Error:stopped on execution protection at 0x800

I used STVD for stm8s105c6 assembly coding. The program compiled and built, since it could not be programmed in STVD, I used STVP for programming, and selected file format of motorola srecord.While, the effect was not I expected. I started to debug, ...

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

Using ST Visual Developer with Cosmic-C compiler. Why do I keep getting "Invalid indirection operand" when creating a pointer?

I'm using ST Visual Developer with Cosmic-C compiler.Writing code for STM8S903K3.Making a pointer to get the value from a SPR register, ADC_DRH:uint8_t *pv;pv = *0x005404;I keep getting the errors;#error cpstm8 main.c:85(8+8) invalid indirection oper...

JKain.1 by Associate
  • 1088 Views
  • 1 replies
  • 0 kudos

Where to use .ico8 file?

I read from "STM8CubeMX configuration tools", "STM8CubeMX does not support C code generation". So my question is, where to use the .ioc8 file?In STVD ? If it could not generate C code, so the .ioc8 file could be only used in STVD for assembly ?If I ...

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

SPI Slave with NSS

Hi, I am trying to use the SPI slave with NSS enabled but I am not able to receive any data on the receive interrupt.

Compile error!

I have two files fifo.h and fifo.c:#ifndef __FIFO_H__ #define __FIFO_H__   //#include <stdint.h>   typedef uint8_t FIFO_Data_t; typedef uint8_t FIFO_Index_t;   typedef struct { FIFO_Index_t SizeMask; volatile FIFO_Index_t Head; volatil...

Hi, I am using STNRG388A to communicate with some I2C device. For now, i have picked MAX30205 temperature sensor. See Details please

I am using standard peripheral library for STLUX and using stm8 library for I2c interface. I have tried with all the examples in libraries which are using interrupt handlers. Also, i have tried the online examples for stm8 using poll methods. Nothing...

Why internal pull-up on PB7 is not working? (STM8L152R8)

I was making a basic test for GPIO ports (reading switches and turning on LEDs). After configuring PORTB (all pins) as input with internal pull-up and external interrupts disabled, PB7 seems to be always in '0'. After opening IAR-EW debugger, PB_DDR...

0690X00000DYbGkQAL.png
JLoya by Associate II
  • 1390 Views
  • 1 replies
  • 0 kudos

How to internally Restart a STM8 if we lost Program control ?

We are using STM8 as to monitor and control STMF07 controller and Quectel M66 module if they are not sending pulses in predetermined time. But no physical control or method to reset STM8, So can we restart the program control of STM8 through softwar...

sanket47 by Associate II
  • 2990 Views
  • 9 replies
  • 0 kudos