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

STM8S debugger changes speed of MCU !?

Posted on October 06, 2011 at 15:24Hi all, I'm use the STM8S103K MCU with COSMIC + STVD + STLINK debugger. I setup TIMER1 to generate a bitsequence (each 14ms) on an output pin during timer overflow. Everything is fine as long as the debugger is con...

Rotary potentiometer code

Posted on October 10, 2011 at 21:47Hi all, some piece of code to manage a rotary encoder potentiometer. The model I use is from the chinese market maybe by TREXON. I'll propose both interrupt and polling mode. The interrupt code has been adapted fro...

spiovan9 by Associate II
  • 764 Views
  • 0 replies
  • 0 kudos

Does the an2781(software uart) must use the tx

Posted on October 10, 2011 at 03:26I found if i disable the SWUART_TRANSMIT_USED ,it will hang in TIMERx_UPD_OVF_BRK_IRQHandler and can not run out of it. In this function: #ifdef SWUART_TRANSMIT_USED  uart_Tx_timing(); #endif  The clear_owerflow_fl...

cgh21 by Associate II
  • 751 Views
  • 3 replies
  • 0 kudos

Beginner

Posted on July 23, 2011 at 10:38Hi All, Yesterday i just got stm8s-discovery board.I don't know how to make use of it to the max since i am unaware about the compiler used with stm to build the code and other info regarding STM, till today i am fami...

TSL 2.4.0 STM8S105C6 on GPIOE not work in IAR

Posted on October 05, 2011 at 18:29if stm8_tsl_conf.h select GPIOE:#define SCKEY_P1_PORT_ADDR  (GPIOE_BaseAddress)  /**< Single channel key Port 1: GPIO base address */ IAR stopped on - ''__iar_unhandled_exception''

prc by Associate
  • 671 Views
  • 2 replies
  • 0 kudos

STM8L discovery kit ( using raisonance ) error

Posted on October 09, 2011 at 07:29Hi all , I have try to compile default code ( discovery demo ) and everything runs fine. After which i try to create my own application following the guide : UM0991 <Building, debugging and running your applicatio...

lau by Associate
  • 695 Views
  • 1 replies
  • 0 kudos

STM8 Assembler using STVD

Posted on September 18, 2011 at 19:13I use STM8 Assembler. Code: ...... CLOCK EQU 16000 TIME EQU CLOCK/1000 .... compile error Error 67: Improper Character(s) '/1000' Why? I find :) TIME EQU {CLOCK/1000} Works without errors

Problems debugging with STVD

Posted on November 13, 2010 at 07:52Hello, I am unable to debug on the STM8L-Discovery using STVD, I always get this error when trying to start a debug version: Connection error (usb://usb): swim error [30004]: comm timeout I tested STVD versions 4....

Dissassembly and memory windows always empty in STVD

Posted on September 22, 2011 at 11:20Hi, I'm working on the STM8S-Discovery board with the Cosmic compiler in STVD 4.2.1 patch 2.  When debugging and stepping through the code there is no information in the disassembly and memory windows.  I'm sure...