Hi Jason-
I just tried it out with the PRU PID Motor controller example I have running here.
Regarding this command:
echo 1 > /sys/kernel/debug/remoteproc/remoteproc2/single_step
Does this halt the PRU1 core only?
I am looking for a complete shutdown of the PRU. Go to sleep including peripherals.
I think what I am seeing is that the PRU core halts, but the PRU peripheral keeps going.
The PRU PID example uses the PWM on the PRU.
So even after issuing the above command, the PWM keeps on going!
However, I can tell the core is shut down because it no longer responds to commands to change the PID setpoint.
Then after echo 0 > single_step it starts responding to commands again. But the PWM never shut down.
I can of course change the setpoint to zero before halting the core.
I guess what I am looking for is the cleanest method of putting the core to sleep and reducing power consumption.
Also I am thinking about how to to an emergency shutdown of a mechanical device.
I'm new to embedded systems design. I think this is a reasonable requirement for the system?
Just not sure the best way to do this or status of current thinking in embedded systems design.