STM8 MCUs

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
  • 422 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
  • 603 Views
  • 6 replies
  • 0 kudos