Debugging ESP32 programs on Linux using an "ESP32 Emulator Library"

ESP_igrr
Posts: 2072
Joined: Tue Dec 01, 2015 8:37 am

Re: Debugging ESP32 programs on Linux using an "ESP32 Emulator Library"

Postby ESP_igrr » Thu Apr 25, 2019 1:21 am

There hasn't been any progress on this, i'm afraid. Other things are currently having higher priority. Although some of this will become easier as a side effect of the ongoing code refactoring for multiple target support.

msn444
Posts: 9
Joined: Mon Jun 25, 2018 11:22 pm

Re: Debugging ESP32 programs on Linux using an "ESP32 Emulator Library"

Postby msn444 » Tue Oct 08, 2019 5:07 pm

+1


Coopdis
Posts: 14
Joined: Wed Jun 20, 2018 7:59 pm

Re: Debugging ESP32 programs on Linux using an "ESP32 Emulator Library"

Postby Coopdis » Thu Dec 24, 2020 3:40 pm

I haven't used this yet, but perhaps it fits the bill?

https://github.com/mireq/esp32-simulator

dawidk
Posts: 1
Joined: Thu Jan 06, 2022 12:33 am

Re: Debugging ESP32 programs on Linux using an "ESP32 Emulator Library"

Postby dawidk » Thu Jan 06, 2022 12:52 am

Reviving this thread, in case anyone is still interested:

I have implemented a simple emulator like this, along with a number of 'fake' devices (TFT displays, real-time clock modules, temperature sensors), and I have been using it quite successfully to test my sketches.

https://github.com/dejwk/roo_testing

Caveat: it only works with Arduino, although porting it to the ESP-IDF shouldn't be prohibitively hard, since most of the instrumentation is in low-level code (interacting with hardware registers or HAL).

It doesn't really emulate all the hardware; it just runs the code on Linux, much like kolban had originally requested. But it has a decent C++ interface to emulate external devices. In particular, it emulates SPI at the physical register level, and reflects bus performance rather accurately.

If anyone is interested, feel free to use, or drop a feature request. I will also more than welcome external contributions.

Who is online

Users browsing this forum: No registered users and 215 guests