Forum Posts
stm8s_adc1 SPL files throwing compiler errors
Further to my previous message I have setup a new STVD workspace, included stm8s.h and just stm8s_adc1.c and .h, setup processor etc and get 150+ compiler errors on stm82_adc1.c just as if the header file was not specified but it is. So having reduce...
ST Visual Programmer - setting the PC register before 'RAM Exec'
Hi,There is an option of executing the code in RAM through the option 'RAM Exec' in ST Visual Programmer. I tested this feature and it looks like the code is starting from address 0.I wonder if I can change this and set different starting address.--...
STM8 CubeMX v1.4.0 - only 2 timers shown for STM8S003F3
Hi,I am pretty new to STM8 and CubeMX (have some experience in STM32).----I selected the STM8S003F3 and I can see only two timers - there should be TIM4 available but is not.Another odd thing is that the TIM1&TIM2 are not available as long as no pins...
Std Peripheral Library for ADC throws COSMIC compiler errors
My project uses the ADC on an STM8S and as it compiles using Cosmic the stm8s_adc1 module throws a huge number of compiler errors as follows:Compiling stm8s_adc1.c...cxstm8 +modsl0 +debug -pxp -no -pp -l -i"C:\Program Files (x86)\COSMIC\FSE_Compilers...
Why I fill wrong TIM2 registers when I run STM8S103 with en.stsw-stm8069 (I see in debug mode) TIM2. IDE=IAR ??
Hello everyone, I am running STM8S103F3P with IAR. I downloaded this: en.stsw-stm8069.In IAR chosed my micro STM8S103F3P. But as I see in debug mode I fill wrong register (TIM2) at init TIM2 regs. It seems setup (config) in IAR is wrong or I did som...
i need a standard pheriphral library for stm8AF5288
i looked on the en.stvd-stm8 i couldnt find support in this..can any one help??
how to use stvp to program a serial number by command line?
i have read https://community.st.com/s/question/0D50X00009XkbTYSAZ/st-link-command-line-programming?t=1568939999743but i need a way to programming flash eeprom, STVP_CmdLine.exe does not have the option
Couple of days ago, I configured the mcu (stm8l-discovery) in low power mode to see the current consumption. But if i run the same code again, I was not able to see the same results. The mcu is not entering the low power mode
#include "iostm8l.h"#include <stdint.h>#include <stdio.h>#include "defs.h"main(){ CLK_DIVR = 0x00; // Set the frequency to 16 MHz while(1) { if (PWR_CSR2 & 0x01 == 0x01) { break; } } PWR_CSR2 |= (1<<1); while (1) { halt(); }}