Skip to main content
Visitor II
March 19, 2020
Question

Is there a true emulator available for STM8?

  • March 19, 2020
  • 2 replies
  • 2215 views

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?

    This topic has been closed for replies.

    2 replies

    Visitor II
    March 21, 2020

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

    DEngl.1Author
    Visitor II
    March 23, 2020

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

    Visitor II
    October 6, 2020

    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.​