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

Resolved! Is it possible to print the value of variables in STM8s Discovery?

Hi there!I am new to STM8s Discovery, could someone suggests me how to print the values of variables in the program? it is more convenient if i can do this but I have no idea how to make it. Thank you very much ! Morris

MT.2 by Associate II
  • 2339 Views
  • 3 replies
  • 0 kudos

STM8s Discovery (MCU=STM8s105C6) Tim1 PWM do not work properly

Hi there! I am now using STM8s Discovery (MCU=STM8s105C6) to run an example named as TIM1_7PWM_Output. However, when I use a oscilloscope to check the 7 PWM ouputs, only Channel 2 and 4 are able to output PWM signals. The rest (Channel 1, 3 and all c...

MT.2 by Associate II
  • 416 Views
  • 0 replies
  • 0 kudos

Resolved! GPIOB not working in my stm8s003

Hey guys.Im using stm8s003f3p6 and IAR compiler and ST SPL.When i use gpio_init to make pb4 and pb5 output i dont know why the output does not get high and low?Other pins on port c ,a and etc work well.

2020 STM8 compiler comparison

This is not a question, so it doesn't really belong here, but the community forum is still broken, so there is no other place to post this.I just redid my comparison of the 4 most important STM8 C compilers (previous comparisons were in 2016 and 2018...

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
  • 592 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
  • 807 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
  • 747 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.