cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a true emulator available for STM8?

DEngl.1
Associate

When I first saw the description for ST-Link STM8/STM32 v2 it noted "Programmer & Emulator". But other listings call it "Programmer & Debugger". 

I have a STM8L151 and would like to be able to load my firmware (via a S19 formatted file) into an emulator to perform various tests on it prior to loading it onto the device.

Does such a thing exist?

5 REPLIES 5
Philipp Krause
Senior II

SDCC comes with an emulator, uCsim. It does support the STM8L core, and some peripherals, but support for most peripherals is still incomplete.

Philipp: Thanks for the reply! I'll explore SDCC and uCsim as you suggest.

Does it support stm8s for simulation?:rose:

Thank you.

Yes. But the problem there is the same: Only few peripherals are supported.

You can select the processor variant using the option -t, option -H lists the supported variants.

MCham.3
Associate II

I'm working on one. It's still pretty early in development and doesn't support a lot of peripherals or specific STM8 models yet. I'm not sure how it compares to ucSim.​ I've never used that.

​

https://github.com/mikechambers84/STM8-Emulator

​

Feel free to see if it fits your needs. It doesn't load S19 files yet, but it does load ELF files.​