STM8 MCUs

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Normal files needed to use STM8 with STVD and Cosmic

I am working on my first STM8 project and getting used to its own flavour of quirks etc.Setting up a new project installs stm8s_interrupt_vector.c which I understand. I want to use the standard peripheral drivers so have downloaded them and added the...

BCowa by Associate II
  • 500 Views
  • 0 replies
  • 0 kudos

timer code

static void TIM1_Config(void) { CLK_PeripheralClockConfig(CLK_Peripheral_TIM1, ENABLE); TIM1_DeInit(); // 2m/ 40 TIM1_TimeBaseInit(39, TIM1_CounterMode_Down, 0xffff, 0); //timer freq = (clock CPU/16) -> 1bit = 1uS -> 92...

Cannot reach the low power consumption target

Hello,I'm starting to use the STM8L family and in particular the STM8L050 MCU. I want to start with low power so i wrote this piece of code : /* MAIN.C file * * Copyright (c) 2002-2005 STMicroelectronics */ #include <stdint.h> #include "stm8l.h" ...

Is it possible that HALT mode can brick my board ?

Hello,I'm very new with stm8. Im using a STM8L050 and it seems i have bricked my board because i have set my CPU in halt but now i cannot flash it again. Is it possible ?Best regards,Aurélien

stm8l lcd low power

mcu into active-halt mode, so i can not enable ULP?if i set ulp to 1, then the lcd blinks

0690X00000AA4uSQAT.png

how to disable RX interrupt temporarily

#if I2C_ENABLE USART_ClearITPendingBit(USART1, USART_IT_RXNE); USART_ITConfig(USART1, USART_IT_RXNE, DISABLE); p_write = (uint8_t *)&temp100; sEE_WriteBuffer(p_write, write_addr, 2); USART_ITConfig(USART1, USART_IT_RXNE, ENABLE); printf("i2c write do...

Resolved! How to disable all optimization when using COSMIC compiler?

Even though I did set optimization to "Disable for Debugging (-no)" there are certen lines of code which are removed by the compiler and are not available for setting a breakpoint and they do not get executed. This can be observed by certin results a...

EN20 by Associate
  • 913 Views
  • 3 replies
  • 0 kudos

Resolved! uint32_t problem with STVD + Cosmic FSE

Posted on August 14, 2017 at 18:04Hello, I use STM8AF52xx, STVD and cosmic FSE, when I try to use  STM8S_StdPeriph_Lib and CAN example I encounter this error:&sharperror clnk Debug\stm8af52ax.lkf:1 @svlreg missing for function f_CAN_RX_IRQHandler(I ...

0690X000006041CQAQ.jpg