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

I2C always reports ''busy'', SR2->BERR

Posted on May 30, 2018 at 18:02I'm using an STM8L051F3 chip as slave and a STM32L476 as master, but the STM8L refuses to respond, it keeps reporting a SR2->BERR aka busy error.I know the STM32 code is ok as I had two of them working on an I2C link w...

Debug works but Program does not work

Posted on July 26, 2013 at 11:22Hello everybody,I am using a STM8S207R8T6 and I have a problem when trying to program it.I have build my application and click on ''start Debug'' in STVD.There were a previous firmware with ROP enabled, so I choose to...

contact by Associate
  • 1485 Views
  • 2 replies
  • 0 kudos

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
  • 492 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
  • 906 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
  • 880 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
  • 608 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
  • 626 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
  • 441 Views
  • 0 replies
  • 0 kudos