Hello everyone,
I'm working on a project using the i.MX 8M Plus, which, like the am335x, comes with an integrated co-processor - in this case, the ARM Cortex-M7. Although I don't have direct experience with this setup, I am aware that for the am335x, it's possible to automatically reflash the PRU-ICSS co-processor through a Linux system running on the main processor. This system(special driver) monitors a specific directory for new firmware files.
My goal is to set up a similar monitoring and automatic reflashing system for the ARM Cortex-M7 co-processor on the i.MX 8M Plus platform. I am interested in configuring the Linux system so that it automatically detects new or modified firmware in a certain directory and starts the reflashing process for the co-processor. In the case of the am335x, this was done by a special driver, and there was no need to write anything myself.