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

How do we access and modify the value of the PB_ODR for example ?

Hello everyone, If I need to write a program in c language which prints me the value on a 7 segments display. In my program, in order to change the value that the Output Direction Register contains, do I simply do this ?: PB_ODR=ox60; (this hexadecim...

Rigoles by Associate
  • 433 Views
  • 0 replies
  • 0 kudos

How to use non - default pin mapping for STM8 micros ?

For example how can the IO pins be set for alternate function mapping to non-default pin. As per datasheet same alternate pin function is mapped to multiple pins. For example USART1_TX is shown to be available on PC3 and also PA2. By programming all ...

Prasad11 by Associate
  • 839 Views
  • 0 replies
  • 0 kudos

Not able to Debug STM8s001J3 with STVD and STVP using STLinkv2 Debugger.

As the STM8S001J3 MCU has no Reset pin, How do I connect the MCU with ST Link v2 using SWIM pin for debugging?STLink V2   :  STM8s001j3VDD        :     VDDGND        :     GNDSWIM       :    SWIMRESET       :      ?I have left the STLink V2's reset p...

SChow by Associate II
  • 812 Views
  • 0 replies
  • 0 kudos

STM8S001J3M3 ------- pb4 pin is not accessing

Hello, I am trying to access all the 5 gpio pins out of FIVE Gpio pins I am accessing 4 gpio pinss i.e (PD6/PA1 ,PA3,PC5,PC6).------->Port d and port c are accessing normally but port b is not able to access. ------->As per data sheet if we use swim ...

NRAME by Associate
  • 549 Views
  • 0 replies
  • 0 kudos

STM8S Missing Interrupt

Dear all,I am using STM8S103F2 in one of my design. I have two main missions in the code.1- Convert analog signal into digital and do some action according to voltage level.2- Catch an external interrupt in both falling and rising edges.I realized mi...

0690X000006CIrOQAW.bmp 0690X000006CIrJQAW.bmp
TA1 by Associate III
  • 555 Views
  • 2 replies
  • 0 kudos

What connections are needed in order to program a raw STM8S105K4?

Hello everyone,I recently bought a single STM8S105K4 to fiddle with. I've soldered it to a board and I'm trying to flash it using the stm8flash utility and an STLINKv2. I've made the following connections to the MCU: STLINK -- MCU RST -- PIN 6...

MMald.17 by Associate
  • 391 Views
  • 0 replies
  • 0 kudos

Issue with overflow

Hi, this is the map file just before overflow.https://dumptext.com/x6lV7kAFHow can I read this file? Someone could please give me some insight?If a just add one more equation to the code it gets an overflow.I'm using this toolhttps://www.st.com/en/ev...

mcarv by Associate
  • 448 Views
  • 0 replies
  • 0 kudos

RTC wakeup not working

Hi,I have a code that is using STM8L151C6 MCU. I'm using the RTC to wake up periodically from Halt, but for some reason when I use SPI when I'm in RUN mode , after some duration the RTC stops generating the wakeup interrupt.when I comment the SPI pro...

udilevy by Associate II
  • 557 Views
  • 0 replies
  • 0 kudos