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

How to implement micros() function on stm8s003?

I need to decode ASK/OOK signal, for this aim I need to know the period in microseconds between several edges. I decided to use TIM1 for this purpose, here is my code // Set fCPU = 16MHz CLK_CKDIVR = 0; CLK_PCKENR1 = 0xFF; CLK_PCKENR2 ...

STM8S/A standard lib source code can't meet MISRA C 2004 rules

Hello, I use STM8AF as MCU, and the project is ASIL B level with functional safety. I downloader the STM8S/A standard driver, I apply MISRA C 2004 as rule to check the project. Oh, I forget to told the IDE, we use IAR for STM8. And we build the pro...

CGang.1 by Associate
  • 480 Views
  • 0 replies
  • 0 kudos

Cosmic compiler producing wrong asm

I couldn't find a forum for the cosmic compiler. If anyone knows of one let me know and I'll ask there instead.I have code that is compiling wrong. A function has a u16 parameter and that param is being referenced as u8. This is the declaration of...

mchahn by Senior
  • 703 Views
  • 6 replies
  • 0 kudos

ST Visual Develop -> Requires size details of text, data, global variables ,bss segment in decimal and hex after build.

Hi Team,I am using STVD version 4.3.12. I am newbie to this.... i wish to know about project information like how much the project size consume after build.like this....(Example shown below)text    data     bss     dec     hex filename6036     ...

I want to display counter values from stm8s to 3 digit seven segment display via 74hc595, but was .unable to do so.Any suggestion will be appreciated .

In my project i have interfaced stm8s003f3 with3 digit 7 segment display via 74hc595d in order to reduce the used pin count in stm8s. From the Stm8s 3 pin are to 74hc595d (sh_cp,st_cp,ds) and three pin to digits pin of 7 segment display. I atta...

Dshar.1 by Associate II
  • 696 Views
  • 0 replies
  • 0 kudos