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! How to configure PC0 and PC1 as ordinary pins on STM8L051F3?

Hello! I am using STM8L051F3 with Stm8 SPL headers. I am trying to configure PC0,PC1,PC4 as output with high level:CLK->PCKENR1 &= `CLK_PCKENR1_I2C1; GPIOC->DDR |= (1<<0)|(1<<1)|(1<<4); GPIOC->CR1 |= (1<<0)|(1<<1)|(1<<4); GPIOC->ODR |= (1<<0)|(1<<1)...

Zupst by Associate
  • 714 Views
  • 1 replies
  • 0 kudos

How to declare RAM variable as volatile in STM8 assembly language

Hi All,I want to know how i can declare any RAM variable as volatile in STM8 assembly language. I have one variable, which is shared between ISR and main function. It is causing issue during updates, when the software is in free run mode.Can anyone t...

HTiwa.11 by Associate II
  • 1601 Views
  • 5 replies
  • 0 kudos

STVP with STLINK-V3SET in SWIM mode, STM8L051F3 target

STVP v3.4.1. CONFIGURATION:Hardware: STLINK-V3SETProgramming mode: SWIMDevice name: STM8L051x3Port: USBJP4 and JP6 (SWIM ON) jumpers are installed. All 4 pins of CN4 are connected to the target. The target is the bare chip on a dip adapter, plugged i...

Problem CAN_ReceiveAll in standard peripheral library

I develop stm8 using cosmic compiler and v.2.3.1 standard libary.I think there is a problem with the definition of CAN_ReceiveAll.In this function I can get an address of _Data variable.But, I can not get the address in Caller side.My thoughts should...

HPARK.1 by Associate II
  • 430 Views
  • 0 replies
  • 0 kudos

STM8S103F3 programming in assembly language.

Hello,I am newbie in ST MCU.Before ST MCU i use Microchip MCU lot. I am mostely using in assebley language code because i wote code for SMPS.In microchip there is good IDE and they provide a lot example with comments to learn easy.While i get very di...

Mkuma.12 by Associate II
  • 2507 Views
  • 8 replies
  • 0 kudos