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

Not able to debug - gdi-error [40412] Abort command is not possible in this CPU state (halt, wfi, protected code execution)

Hello Team I am using STVD IDE with cosmic compiler for development on STM8S207 series controller.I have two configurations in project called release and debug. whenever I try to debug code in debug configuration, following attached error appears whe...

SDalv.1 by Associate II
  • 1656 Views
  • 3 replies
  • 0 kudos

Generating firmware for 1kW Traction Motor Controller with STM8 MCU

We wanted to design 1kW traction motor controller for 3 phase BLDC motor., Therefore we were referring to this document found here.We tried generating the library with e STM8 MC FW builder and it worked fine. But these were only header file and no so...

Tamojit by Associate II
  • 1568 Views
  • 4 replies
  • 1 kudos

I am getting my MV values in ADC as 268 but for my requirements it should read vge equivalent to 1.31 but I am getting only 0.8 with Vref 3.3v.Can any help me with my configuration is correct .What is my mistake here please

/* MAIN.C file *  * Copyright (c) 2002-2005 STMicroelectronics */#include "stm8s.h"#include "stm8s_clk.h"#include "stm8s_adc1.h"void Clk_Config(void);void ADC_Config(void);void ADC_Read(uint16_t *MV);main(){ unsigned short MV; Clk_Config(); ADC_Confi...

SRAM.11 by Associate III
  • 869 Views
  • 0 replies
  • 0 kudos

While creating a project and adding necessary libraries with STM8s003f I am getting error in library.c files #error cpstm8 libraries\src\stm8s_adc1.c:91(14) missing prototype #error cpstm8 libraries\src\stm8s_adc1.c:92(14) missing prototype

If I commented these lines again error is notified in Clk.c file and repeated for other.My question is, if commenting all those lines will reflect any issues in building the code

SRAM.11 by Associate III
  • 815 Views
  • 2 replies
  • 0 kudos

Resolved! STM8S003F3P6's PB4 and PB5 don't go high on custom board

Hi everybody,I'm using an STM8S003F3P6 on a custom board and a not original ST-Link V2 (which works fine), and I'm trying to set high the PB4 and PB5 pins. I don't know why, but it doesn't work as it should. I put my code down below.I also wrote anot...

Some questions about ADC in SMT8S.

Hi, everyone. I have been working with STM8S, i am did not work with this microcontroller before, i have some questions about ADC (i am using STM8S103F3). 1) The first problem that i had was about the values read, i am initialize the peripheral for w...

VPatr.2 by Associate II
  • 913 Views
  • 0 replies
  • 0 kudos