Hello,
I followed the example: [FAQ] AM64X: How to Load/Flash PRU binaries into external memory and it works great for application where PRU code doesn't need to change often.
I have an application where I need to be able to download new PRU programs and store them in the OSPI FLASH, so that I can change PRU program without rebuilding and changing the R5F program.
Here are the steps I'm working on:
1) Using R5F a new PRU binary can be downloaded over UART and then written to an unused area of external OSPI FLASH.
2) During this step the size of the PRU binary can also be written to the FLASH.
3) Then next time AM243x is rebooted or PRU is reloaded a new version of PRU code can be loaded from a dedicated section in external FLASH instead of from an array in the R5F code.
4) To do this the R5F would read the size of the PRU image which was stored in step 2 so it would know the size of the PRU image when reading it from FLASH and writing it to PRU.
Do you see an issues with the steps above, or is there a better way to do this?
Thanks,
Paul