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...
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.
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...
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, ...
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...
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 ...
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.
hello, I want to know what functions there are in STM8s Standard peripheral library, like this one for STM32F2xx.sorry for my bad English.
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...