@dragoncoder047 wrote:
The ESP32 processors are designed with a “write XOR execute” design that makes on-the-fly machine code generation impossible
More precisely, it’s a decision taken in the design of the IDF (ESP32 IoT Development Framework):
This is caused by the memory protection of ESP-IDF: it assumes all executable code comes from the project binary, and that an attempt to re-write code or to execute data is someone maliciously trying to break into the system, and as such needs to be stopped.
It looks like the only way around it would be to recompile the ESP-IDF libraries; at this point I thought it wasn’t worth pursuing it.
See my full discussion on the ESP32 forum here: