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

Firmware Problem

Hello,I am somewhat new to the STM environment, but I started because I have a project where I need to implement CAN, and I happened to come across an STM8 discovery kit. This comes with an ST-Link integrated with an STM32, but I have tried to progra...

imagen_2024-10-18_013749809.png 5f45be28-5999-4340-a83f-73addd443a55.png
KalebG13 by Associate
  • 668 Views
  • 2 replies
  • 2 kudos

Resolved! BSET BRES with dynamic position

Hello, I'm successfully using BSET and BRES assembler instructions where the position is constant. However, I'm having trouble getting it to work where the position is determined at runtime.For example: bset 0x500f, 2 ; works ldw x, (0x03, sp) bset 0...

Resolved! Terminate and restart a task ?

Posted on April 03, 2018 at 11:08We have project in which FreeRTOS code is generated using CubeMx.   I see syntax is little different from documentation on FreeRTOS site. How can I terminate and restart a particular task?Main objective is  Terminat...

Resolved! STM8 RRCW instruction incorrect results

Greetings, I'm attempting to use the RRCW (Rotate Word Right Logical through Carry) instruction (op code 56), but it is giving unexpected results on bit 15.The documentation on PM0044 (pg 138/162) says: "Bit 15 of the result is a copy of the CC.C bit...

STM8L power (current) consumption problem

Posted on August 23, 2011 at 06:42 I'm developing some applications with STM8L152R8 and STM8L152M8 MCU now, and both applications are battery-used product. The problem is that, I cannot make the MCU consume micro-ampere order current.  I used every ...

jisoon by Associate II
  • 5937 Views
  • 13 replies
  • 0 kudos

Starting STM8L152 Discovery Board project

I am new to ST digital products and am working on getting the STM8L Discovery running for coding and debugging before a new serious project begins. My question is how to identify and connect the needed resources for this MPU, etc. Like, how to talk t...

IC_DOC by Associate II
  • 4612 Views
  • 7 replies
  • 0 kudos

STM8L052R8 Watchdog Timer Issue

I have configured the watchdog for the maximum duration possible, i.e, 1.7 sec. void watchdog_init(void){CLK_ICKCR |= CLK_ICKR_LSION;IWDG_KR = 0x55; IWDG_PR = 6; IWDG_RLR = 0xFF;IWDG_KR = 0xCC; }But it seems to be resetting in around 26 - 28 ms. I ha...