I'm really trying to get my head around harnesses for embedded development.
Application code can be harnessed and tested with the right abstractions. QEMU can emulate a system architecture. But the nature of embedded seems like a complete harness isn't likely
I'm particularly interested in keeping things performant while dealing with constrained resources. Access to spiflash/i2c bus/peripherals from multiple tasks. task starvation.. timing to service interrupt signals etc
I feel like spinning a board that has two mcu's: one for the target and another 'monitor' ?
relying on debug output is largely a no-go for real final production-ready code. about 10% of bugs come from testing with debug and removing in production
Dunno!
Give the harness the ability to do it how you would, debugger access and connected hardware with all the usual flash tools and it will just use the real hardware and same tools you do. Fundamentally they work best when they can completely test everything.
I found that giving it full debug to a tablet allowed it to deploy and test Android apps down the USB cable.
I haven't yet done an ESP32 project using an agent when I do it will be given some tools for debug directly and maybe some skill steers about how to do some things so it prefers to use the hardware over trying to emulate something.