PRU programming - how to initialise and upload?

135 views
Skip to first unread message

Karl Karpfen

unread,
Nov 3, 2014, 4:09:02 AM11/3/14
to beagl...@googlegroups.com
There is a lot of useful stuff regarding PRU out there, unfortunately it is not very useful for me. These examples/documentation all make use of Linux and a PRU-library doing many "magic" stuff - initialising PRU, uploading the PRU-program and starting it.

Since I'm not using Linux/PRU-library but try to program everything for my own, I have to start a bit earlier and need to understand the whole intitialisation and upload stuff.

I already tried it with AM3358 TRM which is very detailled, there I fail to understand the working principle. Means TRM tells me what registers are there and what they are doing, but it does not give me the whole picture what has to be done in which order to have it running correctly.

Next I tried it with the existing Linux-drivers and PRU-libraries but don't have been very successful with reverse-engineering of it (there are too much dependencies to understand it and to get a full picture there).

So...is there any description/getting started/cookbook out there that is helpful when one wants to program PRU from scratch and without the help of existing drivers/libraries?

Thanks!

Bas Laarhoven

unread,
Nov 3, 2014, 7:10:40 AM11/3/14
to beagl...@googlegroups.com

Hi Karl,

Have a look how I solved that problem in: https://github.com/modmaker/BeBoPr. The file pruss.c is the one you want. This code is from 'before' the PRU-library, but has proven stable since the BeagleBone white.

Cheers,
-- Bas
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Karl Karpfen

unread,
Nov 4, 2014, 5:14:43 AM11/4/14
to beagl...@googlegroups.com
Sounds great...I'll have a look at it!

You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/a72KDrDjcFA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages