STM8 MCUs

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
  • 379 Views
  • 1 replies
  • 0 kudos

delay_ms not working

I have copied the delay_ms function from the standard Discovery code, but I can't get it to work. It seems that it is running precise 10x too slow, so "delay_ms(100)" gives me a 1 sec delay.Can anyone explain what is wrong?/* MAIN.C file * * Copyr...

Wassini by Associate II
  • 764 Views
  • 0 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
  • 319 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
  • 419 Views
  • 1 replies
  • 1 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
  • 876 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
  • 756 Views
  • 4 replies
  • 0 kudos