2019-12-05 02:15 AM
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
2019-12-05 02:34 AM
> 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
2019-12-05 02:49 AM
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.