Hello,
I'm trying to find a way to load and start the PRU cores from C/C++ code instead of Linux. Purpose of the software is to load the firmware into the memory of the PRUs, start/stop the application, monitor the current status of the PRUs and read data from a PRU. At the moment the PRU application is started with a shell script using remoteproc and the data exchange using shared memory.
I already found prussdrv in ti-processor-sdk-linux-rt-am57xx-evm-06.00.00.07/board-support/extra-drivers/uio-module-drv-2.2.1.0+gitAUTOINC+bda9260f22/test/prussdrv_test. Theoretically all requirements would be covered with prussdrv, but it has been replaced by remoteproc years ago? Are there any reason to not use it for this application?
https://www.kernel.org/doc/Documentation/remoteproc.txt shows API examples for remoteproc, but I can't find a way to get a valid rproc handle / device tree phandle for the PRUs. Are there any examples for using remoteproc from C/C++ to start the PRUs?
Thanks a lot!
Kind regards,
Patrick Oetken