Part Number: SK-AM64
Hi,
I wrote my own PRU program using CCS. I load the program using CCS through the debug OR load button and everthing works fine.
Now I need to make it autmatically load the PRU code at boot.
I even wrote my own SBL.
I knew the following wouldnt work, but still gave it a shot. I copied the .out file that CCS generates after the PRU code is compiled on to a SD card. Then I made the SBL to load the .out fle form SD card into a buffer. Then initialized everthing including the PRUs and then I used the PRUICSS_writeMemory function load the buffer into IRAM of PRU. Obviously it didnt work. I debugged the PRU using load symbols and the c code dosent match the instructions that the debugger is reading.
I assume .out is the incorrect file to load. What is the correct file format and to generate / convert to it?
Also are the any other steps to make the PRU firmware run at boot?
I am using the following functions in order:
PRUICSS_open(CONFIG_PRU_ICSS1); PRUICSS_resetCore(gPruicssHandle, PRUICSS_PRU1); PRUICSS_disableCore(gPruicssHandle, PRUICSS_PRU1); PRUICSS_writeMemory(gPruicssHandle,PRUICSS_IRAM_PRU(1),0,(uint32_t *) gAppImageBuf,fileSize); PRUICSS_enableCore(gPruicssHandle, PRUICSS_PRU1);
As there any additional steps required? Or are these enough
The documentation is non-existent on how to use PRU, please help.


