Page 2 of 2

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

Posted: Thu Apr 25, 2019 1:21 am
by ESP_igrr
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.

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

Posted: Tue Oct 08, 2019 5:07 pm
by msn444
+1

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

Posted: Sat Jan 18, 2020 2:38 pm
by Zeni241

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

Posted: Thu Dec 24, 2020 3:40 pm
by Coopdis
I haven't used this yet, but perhaps it fits the bill?

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

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

Posted: Thu Jan 06, 2022 12:52 am
by dawidk
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.