cancel
Showing results for 
Search instead for 
Did you mean: 

Run STM8 project on STM32 microcontroller

SSpin
Associate

Hello,

I need to port an STM8 project to an STM32 microcontroller. The current STM8 application doesn't have any operating system and doesn't have strict time requirements: it uses only some timers for PWM signal generation, two serial interface at very low baud rate and some A/D input signals.

Is it possible to "virtualize" an STM8 application into STM32 SDK?

Are some documentation available?

Thank you in advance

2 REPLIES 2

> I need to port an STM8 project to an STM32 microcontroller.

First of all: why?

> Is it possible to "virtualize" an STM8 application into STM32 SDK?

You mean, emulate?

Possible? Probably yes. Done? Probably no.

The STM32 have generally quite similar peripherals to the STM8, especially the lower-end ones which you probably may be going to use (STM32F0), so unless it's written in STM8 asm, it should be fairly straighforward to port, once clocks and other "machine dependencies" are sorted out.

JW

Ozone
Lead

If your STM8 firmware has a clean design (at least separating the hardware access from application logic), it should be easy to port.

I had worked with a STM8 once, and realized the peripherals are very similar, if not identical. I remember the UART having the exact same registers as STM32F0 types I compared it against.

> Is it possible to "virtualize" an STM8 application into STM32 SDK?

I would avoid Cube/HAL, especially in this case.