STM8 MCUs

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Possible BUG: Always writing 0xFF to TIM2->SR in stm8s_tim2.c

I just downloaded the latest StdPeriph_Driver library a few days ago.The line ...TIM2->SR2 = (uint8_t)(~((uint8_t)((uint8_t)TIM2_FLAG >> 8)));... produces a warning. The value written to TIM2->SR2 will always be 0xFF.It's unclear to me what the desir...

pacman by Associate III
  • 445 Views
  • 0 replies
  • 0 kudos

can not read out high level

at line 140 , the key io level is 3.2v , it is release status, so it keeps high.but the read pin function can not read the set value out , why?hope you could give me some hand!

0690X00000AqUdgQAF.png

long press problem

void main(void) { /* Infinite loop */ CLK_SYSCLKDivConfig(CLK_SYSCLKDiv_8); GPIO_Init(GPIOE, GPIO_Pin_7, GPIO_Mode_In_PU_IT); EXTI_setup();   halt(); // first active #if 0 while(1) { halt(); ...

long pressing can not wakeup stm8l152

/** ****************************************************************************** * @file Project/STM8L15x_StdPeriph_Template/main.c * @author MCD Application Team * @version V1.6.1 * @date 30-September-2014 * @brief Main progra...

Resolved! Why does the stvd gets closed when I click on programmer

I am new to stm8s. I have recently installed stvd on windows 7 32 bit. I have written proper code. Their is no compilation error and build is also successfull. But as soon as I click on programmer a window appears that shows stvd has stopped working....

SBadd by Associate II
  • 1038 Views
  • 5 replies
  • 2 kudos

CAN (SAE j1939) library

hai every one , i need can j1939 library file, for stm32 or stm8 series. please share ,thanks in advance .

KG.277 by Associate
  • 236 Views
  • 0 replies
  • 1 kudos