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

Bug in GPIO_WriteBit() function in STM8L Library???

Posted on July 29, 2016 at 18:11I have been using the GPIO_WriteBit() function to set/reset pins, but found it not working. The same function by register worked fine.Example:GPIO_WriteBit(GPIOB, GPIO_Pin_4, RESET); // this does not work!?GPIOB->ODR ...

buzzbuxx by Associate
  • 1068 Views
  • 1 replies
  • 0 kudos

how to write option byte in compile time

Posted on October 13, 2017 at 16:23how to write option byte in compile time.Like when i compiling my code,at that time of compiling, i have to write values in option byte or set read out protection.

saran raj by Associate III
  • 476 Views
  • 1 replies
  • 0 kudos

ST-Link/V2 vs HALT mode

Posted on October 21, 2017 at 19:08Hi to all,the ST-Link / V2 tool (so SWIM interface) is not compatible with the HALT instruction.Therefore, for debugging and / or using STMStudio, I'm forced not to use this functional mode.Is there any solution to...

STM8L

Posted on October 13, 2017 at 09:25I downloaded the STM8CubeMX 1.2.0 update which also adds micro STM8S001J3 and STM8L001J3 to the library.Well, the STM8S001J3 Data Sheet exists but there is no one for the STM8L001J3. Why? Where can I find it?#stm8l...

''stm8s_uart1.c bad struct/union operand'' when build project

Posted on September 02, 2017 at 06:10Hello.I want to using uart1 with STM8S103K,i do (already work):1. write program to display 4 pieces of 7 segment. 2. define STM8S103 in STM8S.hafter add stm8s_uart1.c and stm8s_uart1.h and build project, the comp...

ekpol by Associate II
  • 631 Views
  • 1 replies
  • 0 kudos

How to stop IWDG in HALT mode on STM8S

Posted on October 26, 2016 at 08:18Hi guys,I use STM8S105K4 in our project. For power saving, it should enter in HALT mode, but IWDG will run out and reset the MCU. STM8S doesn't have the IWDG_HALT bit in OPTION bytes, anyone knows how to stop IWDG ...

wen_bing by Associate
  • 677 Views
  • 1 replies
  • 0 kudos

Option byte code for stm8 cosmic compiler

Posted on October 13, 2017 at 12:58Hi,                When i using Ride 7 with stm8 compiler , i will do this following code for option bytes only in assembly. Its working.                But when i try with stvd with stm8 cosmic compiler,the follow...

saran raj by Associate III
  • 1243 Views
  • 3 replies
  • 0 kudos