After I load a program into flash on a STM8L152R8T6, is there a way to make it boot to that code at power-up?
Arduino sketch, cosmic compiler, USB STLink programmer
Discuss STM8 microcontrollers, including SWIM, USART configurations, RTC usage, ADC issues, and debugging.
Arduino sketch, cosmic compiler, USB STLink programmer
#include "stm8l15x.h"#include "stm8l15x_gpio.h"#include "stm8l15x_itc.h"#include "stm8l15x_exti.h"#include "stm8l15x_clk.h"#include "stm8l15x_rtc.h"#include "stm8l15x_tim2.h"#include "stm8l15x_tim1.h"#include "stm8l15x_tim3.h"#include "stm8l15x_tim4....
In documentation for timers on S103/S105/S003 it says that bit URS or register TIMx_CR1 should allow that CNTR=x or EGR |= UG update the timer counter WITHOUT setting the UIF flag: TIM2:URS: Update request source0: When enabled by the UDIS bit, the U...
I'm trying to "activate" TIM2 or TIM4 on a STM8S105C6 (discovery board) part without success for more than 4 days now... I'm getting sooo frustrated.I tried all examples I could find and not a single one works.Ended up with a basic, dummy test to sho...
I am using this code:void main(){CLK_RTCClockConfig(CLK_RTCCLKSource_LSI, CLK_RTCCLKDiv_1);CLK_PeripheralClockConfig(CLK_Peripheral_RTC, ENABLE);RTC_WakeUpClockConfig(RTC_WakeUpClock_CK_SPRE_16bits);RTC_ITConfig(RTC_IT_WUT, ENABLE); <================...
Hi,I need clarification of errata, "Interrupt service routine (ISR) executed with priority of main process".I don't understand in which cases this limitation can occur.I don't understand why the workaround used for STM8S (put a SIM instruction at the...