I know pasm can generate a header with the PRU code compiled in a C array. I am told it's possible to load that C array into the PRU from the host. However, I'm having a difficult time finding examples of how to do that.
I keep coming across what's termed as "old examples" that have a PRU_load function, which appears to handle loading the C array located in a *_bin.h file into the PRU. I am using what I think to be the "new examples" which use the prussdrv.h and pruss_intc_mapping.h headers. These headers do not contain the PRU_load function and all the examples show the use of the prussdrv_exec_program function, which loads a separate binary file into the PRU.
Is it possible to load a PRU program into the PRU via the C array approach? If so, can someone point me to an example using the prussdrv.h headers?