This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM3358: PRU firmware load from RTOS

Part Number: AM3358

Hey everyone,

i tried to use the PRU of the beaglebone in order to react very fast on an external event. I read the chapter about the PRU-ICSS in the technical reference manual of the AM335x and the additional assembly documentation. Now i wat to write an assembly-program for the PRU which is loaded in runtime by my C code (could be a starterware or RTOS project). For that i need an C array with the binary instructions to load it in the PRU program RAM.

Now i have absolutely no idea to do that. As far as i understand there are two assembly-compilers for the PRU: the PRU code generation tools and the PASM.

How to work with the PASM is described here http://processors.wiki.ti.com/index.php/PASM_Tool but in the pru package there is no .exe file or similar which i coud execute to convert my assembly .p file into the h file with the C array.  There are some source files which could be probably used to create an .exe file but this doent work. Is there something like an already compiled exe file which dos that job or how does that work? I cannot find anything like a step by step guide.

In the PRU code generation tools there are a lot of .exe files but i cannot find any documentation if any of them does what i want (i want to write the program in assembly - not in C!) Can comeone explain me how to work with this package?

If none of that works i also think about writing the program completely in binary because my program will not be very big (maybe 30 to 40 instructions). Is there any documentation how the instruction set od the PRU looks in binary?

I dont want to use C because i have very tight timing constraints.

I hope somebody can help me with this.

Best regards,

Christian