Re: [beagleboard] Re: Beaglebone Black PRU Troubles

2016-12-05 Thread Zach B
s occuring. Zach On Monday, December 5, 2016 at 9:05:36 AM UTC-5, laurel.a.watts wrote: > > Hi Zach, > > Are you compiling with the -V3 switch? This should enable the scratch pad > correctly. I've had not problems with it this way. > > Laurel > > On Sun, Dec 4,

Re: [beagleboard] Re: Beaglebone Black PRU Troubles

2016-12-04 Thread Zach B
Thanks Jason, those were two great examples. Has anyone had any trouble with the scratch pad between PRUs? I'm using it to pass values between the two systems and it doesn't appear to be working at all. I even created a test script that has a PRU load a value into bank 0 and then read it back o

Re: [beagleboard] Re: Beaglebone Black PRU Troubles

2016-12-04 Thread Zach B
Thanks Jason, those were two great examples. Has anyone had any trouble with the scratch pad between PRUs? I'm using it to pass values between the two systems and it doesn't appear to be working at all. I even created a test script that has a PRU load a value into bank 0 and then read it back o

Re: [beagleboard] Re: Beaglebone Black PRU Troubles

2016-11-28 Thread Zach B
Greg, Thanks for the info. That linker primer helped a bit with what is exactly going on inside of the linker, at least to the level that I can understand. I'm still working through getting a single assembly file to work but for now I figured out a workaround with an empty c file. What is asmpr

Re: [beagleboard] Re: Beaglebone Black PRU Troubles

2016-11-27 Thread Zach B
s the answer yet. I'm still working my way through "PRU Optimizing C/C++ User Guide". On Sunday, November 27, 2016 at 5:36:15 PM UTC-5, Zach B wrote: > > Has anyone compiled a straight assembly file for the PRU? I know you can > program in C but I can't accurately pre

Re: [beagleboard] Re: Beaglebone Black PRU Troubles

2016-11-27 Thread Zach B
ake sure > no other board file is left uncommitted after this line. Otherwise it may > load at boot instead. > > Once that is done, you should be able to configure the pin via config-pin > to mux the pin for mode 5, or 6 depending on whether you want GPI, or GPO > through the

Re: [beagleboard] Re: Beaglebone Black PRU Troubles

2016-11-21 Thread Zach B
d stop the PRUs. I ended up not having to mess around with any custom device trees. Hopefully that information helps someone else struggling with the same thing I was. On Sunday, November 20, 2016 at 7:25:06 PM UTC-5, William Hermans wrote: > > On Sun, Nov 20, 2016 at 4:31 PM, Zach B > &

Re: [beagleboard] Re: Beaglebone Black PRU Troubles

2016-11-21 Thread Zach B
red devices are there to start and stop the PRUs. I ended up not having to mess around with any custom device trees. Hopefully that information helps someone else struggling with the same thing I was. On Sunday, November 20, 2016 at 7:25:06 PM UTC-5, William Hermans wrote: > > On Sun, Nov

[beagleboard] Re: Beaglebone Black PRU Troubles

2016-11-20 Thread Zach B
ore complex > than anything I have seen so far. > I wonder if it represents something close to the upper limit of how much > code you can jam in a single PRU? I'll get it to github, hopefully pretty > soon. > > On Saturday, November 19, 2016 at 9:27:38 PM UTC-5, Zach B wrote:

[beagleboard] Re: Beaglebone Black PRU Troubles

2016-11-19 Thread Zach B
I think if you work through this, you will have > a good introduction to Linux embedded system design. Be warned that it > can really eat up hours and hours of your time! > > On Friday, November 18, 2016 at 10:39:06 AM UTC-5, Zach B wrote: >> >> h that's my prob

[beagleboard] Re: Beaglebone Black PRU Troubles

2016-11-18 Thread Zach B
code in the firmwares, and if it is not > there, nothing will happen. > > On Friday, November 18, 2016 at 10:06:07 AM UTC-5, Zach B wrote: >> >> In trying to test my code for the PRUs is there a good way to check and >> see if binary is being loaded into the PRU prop

[beagleboard] Re: Beaglebone Black PRU Troubles

2016-11-18 Thread Zach B
DELAY2, r0, 0 ; loop until r0 == 0 (delay) SUB r1, r1, 1 QBNE BLINK, r1, 0 ; loop until r1 = 0 (blink counter) MOV r31.b0, 32 + 3 HALT Zach (Deleted the old one because I forgot to include the error messages) On Friday, November 18, 2016 at 8:56:36 AM UTC-5, Zach B wrote: > >

[beagleboard] Re: Beaglebone Black PRU Troubles

2016-11-18 Thread Zach B
pru_rproc running and the devices showing up as they should I still sometimes get "no such device" when I try to bind pru0, have you ever run into this issue? Zach On Friday, November 18, 2016 at 8:56:36 AM UTC-5, Zach B wrote: > > Greg, > > Thanks for the link I to t

[beagleboard] Re: Beaglebone Black PRU Troubles

2016-11-18 Thread Zach B
Greg, Thanks for the link I to the motor controller. I actually ended up figuring out late last night what was preventing remote_proc from running properly. I had the line dtb=am335x-boneblack-overlay.dtb uncommented in my "uEnv.txt" file. I guess that device overlay prevented the remote_proc f

[beagleboard] Re: Beaglebone Black PRU Troubles

2016-11-17 Thread Zach B
You could switch the pin mode > to pruout after the firmware is running and the pruout is deterministically > set to LOW. Might work, easy enough to try. > > On Tuesday, November 15, 2016 at 1:16:43 PM UTC-5, Zach B wrote: >> >> I understand that bringing up GPIOs low is g

[beagleboard] Re: Beaglebone Black PRU Troubles

2016-11-15 Thread Zach B
overlaps some of the labs. Good stuff in there, > you can dig into the C code and see how to get things done. > > A good start is the usual LED blinker, this will show how to manipulate > the __R30 register to make the header pins go HIGH and LOW programatically > from the PRU

[beagleboard] Re: Beaglebone Black PRU Troubles

2016-11-15 Thread Zach B
g the above image, don't touch device tree files (except > one very trivial change to activate Remoteproc) and use config-pin to > change pin modes to PRU. All ready to go on this image. > Get Remoteproc activated and see if you can get the Remoteproc related > kernel modul

[beagleboard] Re: Beaglebone Black PRU Troubles

2016-11-14 Thread Zach B
ipt to run the PRU but I keep getting the error pruss/prussdrv.h: no such file or directory. Are the pruss files something that needs to be included on my LIBRARY path or LD_LIBRARY path or is it an extra package I need to download? On Tuesday, November 8, 2016 at 11:42:25 AM UTC-5, Zach B wrote:

Re: [beagleboard] Re: Beaglebone Black PRU Troubles

2016-11-11 Thread Zach B
> On Fri, Nov 11, 2016 at 2:14 PM, Zach B > > wrote: > > Thanks Robert! That solved the problem I have been having. The overlay > > loaded and everything looks to be working. One follow up question I do > have > > is what is the proper way to load a custom overlay

Re: [beagleboard] Re: Beaglebone Black PRU Troubles

2016-11-11 Thread Zach B
Thanks Robert! That solved the problem I have been having. The overlay loaded and everything looks to be working. One follow up question I do have is what is the proper way to load a custom overlay on startup? Is there a way to enable multiple overlays as long as they don't try to use the same

Re: [beagleboard] Re: Beaglebone Black PRU Troubles

2016-11-11 Thread Zach B
11, 2016 at 1:53:16 PM UTC-5, Zach B wrote: > > wow that is incredible useful, I didn't even realize that is what dmesg > did. Here is the output I got: > [ 2117.571792] bone_capemgr bone_capemgr: part_number 'PRU-GPIO-BLINK', > version 'N/A' > [ 2117.

Re: [beagleboard] Re: Beaglebone Black PRU Troubles

2016-11-11 Thread Zach B
27; in my dts file. On Friday, November 11, 2016 at 1:44:22 PM UTC-5, RobertCNelson wrote: > > On Fri, Nov 11, 2016 at 12:42 PM, Zach B > > wrote: > > I wanted to add on to this that when I switch the Device Tree Blob file > > extension to ".dtbo" instead of &q

[beagleboard] Re: Beaglebone Black PRU Troubles

2016-11-11 Thread Zach B
I wanted to add on to this that when I switch the Device Tree Blob file extension to ".dtbo" instead of ".dtb" I get the error: -bash: echo: write error: File exists instead of the file not found error I was getting previously. On Friday, November 11, 2016 at 1:27:22 PM

[beagleboard] Re: Beaglebone Black PRU Troubles

2016-11-11 Thread Zach B
/syslog"? Zach On Thursday, November 10, 2016 at 9:27:47 AM UTC-5, Greg wrote: > > Once you get everything solid, please take a look at dmesg after boot. > I'm curious to see if you get successful PRU firmware start-up. > > Greg > > On Thursday, November 10, 2016

[beagleboard] Re: Beaglebone Black PRU Troubles

2016-11-10 Thread Zach B
ecause it's easier and less error prone than > doing it manually. > > For reference because it's not especially easy to find, the pinmux > register bits are defined in the AM335x TRM section 9.2.2, page 1356. My > version is dated Feb. 2015, TI doc # SPRUH73L. > > On

Re: [beagleboard] Beaglebone Black PRU Troubles

2016-11-08 Thread Zach B
On Tuesday, November 8, 2016 at 11:50:35 AM UTC-5, RobertCNelson wrote: > > On Tue, Nov 8, 2016 at 10:39 AM, Zach B > > wrote: > > I have spent a solid 12 hours trying to get the PRU's on the beaglebone > to > > work. So far I seem to be completely stuck at the get

[beagleboard] Beaglebone Black PRU Troubles

2016-11-08 Thread Zach B
I have spent a solid 12 hours trying to get the PRU's on the beaglebone to work. So far I seem to be completely stuck at the getting the device overlay to work as well as enabling the remoteproc. I have tried to piece together all of the information I have found on the internet but it is either