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

Access to c:\....\stm8s.h was denied

I am a starter for stm8 mcus I installed STVD and COSMİC C Compiler. at first step -i can not save my project-i can not uncomment my mcu in stm8s.h header fileI get an error message "Access to C:Users\R&P\Desktop\first\inc\stms.h"Access to C:Users\R...

sözbe.1 by Associate II
  • 546 Views
  • 1 replies
  • 0 kudos

inline assembler query _asm

char shiftdata=8;shiftdata=_asm("rlc a",shiftdata).I am trying to rotate left through carry value 8, expecting output of 16. When I debug the code, I am getting shiftdata value as zero, instead of 16.Can you help me with this?

NA.5 by Associate
  • 417 Views
  • 0 replies
  • 0 kudos

Ctrl+space is not working on STVD

I am using STVD and Cosmic Compiler and after add some #include files, the "Control + space" stop working. It doesn´t find the SPL (StdPeriph_Lib) function anymore. Hope anyone to solve this problem. Thanks

DMarq.9 by Associate
  • 555 Views
  • 1 replies
  • 1 kudos

I can not uncomment line in stm8s.h error: "Please select first the target STM8S/A device used in your application (in stm8s.h file)"

hi,I installed STVD and Cosmic C mopiler. I downloaded SPL from ST website.created first project.installed SPL soruce files and include files.I will uncomment line #define STM8S003 (line49) but compiler gives error."Please select first the target ST...

sözbe.1 by Associate II
  • 1880 Views
  • 3 replies
  • 0 kudos

STM8S: TIM5-PWM frequency and duty cycle measure.

I am trying to measure the frequency and duty cycle of a PWM input on TIM5 channel 1. My frequency is being measured correctly but the duty cycle is not. GPIO_Init(GPIOD, GPIO_PIN_4, GPIO_MODE_IN_FL_NO_IT); //PWM inputI am using the 16MHz HSI clock ...

JRing.2 by Associate II
  • 1184 Views
  • 4 replies
  • 0 kudos

Resolved! Compiler error when trying to add custom source files.

Hi,I am a student who has recently started working with STM8s MCU's. Currently I am working with an STM8s207K8 Nucleo 32 development board, I am using STVD along with a cosmic toolchain to program my dev board. I am able to program the microcontrolle...

0693W00000DmtNrQAJ.png
APant.1 by Associate II
  • 1101 Views
  • 4 replies
  • 0 kudos

STM ADC SCAN MODE: ADC floating value observed on PIN.

I am using STM8S003F3. Currently my application requires sampling two ADC channels, which are interfaced with:1) Output of a resistor divider network which is routed directly to the microcontroller's ADC CH 32) Analog output of a sensor module PCB co...