espressif / qemu

Fork of QEMU with Espressif patches. See Wiki for details.
https://github.com/espressif/esp-toolchain-docs/blob/main/qemu/README.md
Other
230 stars 61 forks source link

I2c over tcp (QEMU-97) #63

Closed knw1 closed 1 year ago

knw1 commented 1 year ago

To allow an end-user to emulate a I2C slave device which is not supported by QEMU, a new QEMU I2C slave device was created that passes I2C operations over TCP to the host where a TCP client resides which implements a logic of I2C emulated device.

Detailed description of that solution and demo emulation was provided as a part of the changes.

I2C Slave connected to esp32.i2c0 at address 0x7F.

igrr commented 1 year ago

Hi @spyro-knw, thanks for the PR for this interesting feature! Do I understand it right that this "I2C TCP slave" is not actually ESP32-specific? If it isn't, would you consider submitting this feature to upstream OpenOCD? We'd like to maintain the minimal amount of changes in this fork, preferably only the changes related to the ESP chips hardware. This does sound like a feature which could be appreciated by users of other platforms emulated by QEMU as well!