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

Resolved! Downloading Cosmic C compiler

Hello,I am trying to start a new project on a STM8s003K3 discovery kit, i have downloaded and installed STVD without a problem but I can't download Cosmic C Compiler. The download link in the Cosmic site is not working, I have tried anything I can th...

enis_isik by Associate II
  • 3873 Views
  • 6 replies
  • 0 kudos

STM8AF528 flashing issue

Hi there,If I am flashing the .s19 file using st visual programmer I have observed that there is a flash memory corruption. But If I am flashing this with visual developer I am not facing any issue.Can anyone tell me is there any alternate SW tool fo...

vignesh_st3_0-1745411639058.png

Resolved! STLUX adc trigger

I am trying to configure an STLUX285 SMED to trigger an ADC measurement but am unable to find the documentation of the registers required to do this.RM0380 claims "SMED as ADC trigger source" in section 21.16."AFR_IOMXP2" is supposed to have a bit ca...

mschn.17 by Associate II
  • 204 Views
  • 1 replies
  • 0 kudos

How To get internal RTC time using STM8L050J3

Hi All,  We are using the STM8L050J3 chip and trying to get time using an internal RTC with LSI. We are getting some responses but are not sure what it is. Here is our result (TIME: 3108:4877:2644) and code. We are using the cosmic compiler. Could an...

Cpg2 by Associate II
  • 290 Views
  • 3 replies
  • 0 kudos

Resolved! STM8L050J3: SWIM and USART TX on same pin?

Hi. I am designing Schematic for STM8L050J3 chip. In that, pin1( first pin) , in datasheet they mentioned as SWIM in port A0 of pin1 and USART TX in port A2 of pin1. I want to use this pin as SWIM for programming as well as USART for data transmissio...

Cpg2 by Associate II
  • 601 Views
  • 7 replies
  • 0 kudos

Resolved! PWM on STM8L15

Hello, I have a problem with setting up PWM on the general purpose timer. I tried setting PWM on timers 2 and 3 using different channels, but I didn't see a PWM signal at the output. I also tried setting up PWM from timer 1 and it worked, but I only ...

BamaN by Associate
  • 488 Views
  • 2 replies
  • 1 kudos

Resolved! STM8 assembler directives reference

Hi, I have look Extensively THREE different times now to find an assembler reference.  NOT the instruction set, the assembler directives.  Data types declared, conditional assembly (if avail), Everything the Assembler uses to generate machine code. I...