Build, flash, execute separately microTVM AOT and zephyr

Hi, I am executing microTVM AOT + zephyr using below sample code: https://tvm.apache.org/docs/v0.10.0/how_to/work_with_microtvm/micro_aot.html The code executes successfully on Nucleo board. Now i want to separate below process which are happening inside the script : micro_aot.py

  1. Building
  2. Flashing
  3. Execution

For example i want to create 3 scripts to separate these processes:

  1. micro_aot_build.py
  2. micro_aot_flash.py
  3. micro_aot_exec.py

But the script has dependency of ‘project’ object. Could you please suggest how to separate these process for deploying real applications?

Thanks in advance

Very good point. I would appreciate to have such steps separated, too.

@areusch Is there any guideline?