Many thanks, I just looked at it, quite a lot to digest.
Problem is I am interfacing to an existing master, and the design of that master is out of my control and cannot be modified.
I am trying to emulate a now obsolete device which acts as a slave, and using an ESP32 as a master is simply to be able to test the response of the pyboard slave to a readfrom _mem() request.