nparafe has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
nparafe has joined #beagle
<nick12310> what does the mapping of foo and bar to memory do, in elf-test.py, does it  mean those variables now correspond to the values at those memory locations?
<zmatt> nick12310: essentially yes... they're ctypes.c_uint32 objects representing 32-bit unsigned integers at those locations in pru memory
<zmatt> so accessing foo.value will access pru memory
<zmatt> ctypes also can be used to define structures and arrays, and those can likewise be mapped using map()
<nick12310> Ok cool. I think my simple test is working.
<nick12310> So can I make a ctype string to print out troubleshooting messages from pru?
<zmatt> there are certainly ways to do that, although it requires a bit of care since strings are variable-length
<nick12310> Hm, yea. I guess a better way would be just to return a code corresponding to the message?
<zmatt> nick12310: look at fw-c/stream.cc and stream-c.py
<zmatt> note: allocating variables in shared memory like this: https://github.com/mvduin/py-uio/blob/master/pru-examples/fw-c/stream.cc#L24-L25 requires a linker script that places far data in shared memory, which the linker script in that directory (am335x.cmd) does, but I don't remember if that's standard/typical of linker scripts provided by TI
<zmatt> in this example I'm not actually reporting a message but the file name and line number where I'm halting, but obviously you could easily use the same mechanism to pass a message
<zmatt> (of course you're not _required_ to have clpru allocate stuff in shared memory for you, you can also keep doing it the manual way like you've been doing so far, but it's nice to have the linker verify your variables actually fit in shared memory and don't overlap)
set_ has quit [Remote host closed the connection]
set_ has joined #beagle
brook has quit [Remote host closed the connection]
brook has joined #beagle
starblue has quit [Ping timeout: 268 seconds]
starblue has joined #beagle
brook has quit [Remote host closed the connection]
brook has joined #beagle
Shadyman has joined #beagle
nick12310 has quit [Quit: Client closed]
brook has quit [Remote host closed the connection]
johanhenselmans has quit [Ping timeout: 260 seconds]
johanhenselmans has joined #beagle
aussetg has quit [Remote host closed the connection]
aussetg has joined #beagle
vigneshr has joined #beagle
vagrantc has joined #beagle
nick12310 has joined #beagle
<nick12310> I'm trying to test the inputs of my pru. I made a while loop for the case when one pin was tied on for it to loop endlessly, but for some reason this never stops my pru execution. I checked to make sure, and the value I'm checking is changing with the inputs, but just wondering is there another reason why this would happen?
vagrantc has quit [Quit: leaving]
ikarso has joined #beagle
nick12310 has quit [Quit: Client closed]
otisolsen70 has joined #beagle
otisolsen70 has quit [Remote host closed the connection]
otisolsen70 has joined #beagle
rob_w has joined #beagle
vitthal has joined #beagle
<vitthal> Hi,
<vitthal> i am working on kgdb  debugger tools on beagle bone
<vitthal> when i am enter bellow command its open kdb prompt our side is not happening
<vitthal> echo g > /proc/sysrq-triger
<vitthal> please help any issue
Posterdati has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
vitthal has quit [Ping timeout: 260 seconds]
Shadyman has quit [Remote host closed the connection]
ketas has quit [Ping timeout: 252 seconds]
ketas has joined #beagle
florian has joined #beagle
starblue has quit [Ping timeout: 256 seconds]
starblue has joined #beagle
zjason`` is now known as zjason
ft has quit [Quit: leaving]
brook has joined #beagle
brook has quit [Remote host closed the connection]
buzzmarshall has joined #beagle
brook has joined #beagle
rob_w has quit [Quit: Leaving]
ft has joined #beagle
jfsimon1981 has quit [Remote host closed the connection]
jfsimon1981 has joined #beagle
ikarso has quit [Quit: Connection closed for inactivity]
alan_o has quit [Quit: Leaving]
brook has quit [Remote host closed the connection]
brook has joined #beagle
ikarso has joined #beagle
florian has quit [Quit: Ex-Chat]
dKaiser has joined #beagle
vagrantc has joined #beagle
lucascastro has joined #beagle
Shadyman has joined #beagle
alan_o has joined #beagle
lucascastro has quit [Quit: Leaving]
ikarso has quit [Quit: Connection closed for inactivity]
Guest3399 has joined #beagle
Guest3399 has quit [Client Quit]
nick12310 has joined #beagle
<nick12310> Hi zmatt, I updated my py-uio for the fill(), read(), and write() methods, and now the examples fail to run. This is what I get now, https://pastebin.com/G2CG85Cz
<zmatt> huh wtf
<zmatt> how the fuck did that happen
<zmatt> a bunch of random crap managed to get included into the commit
<zmatt> fixed
<nick12310> yep, all fixed lol. Thanks!
alan_o has quit [Remote host closed the connection]
<zmatt> thanks for alerting me
otisolsen70 has quit [Quit: Leaving]
dKaiser has quit [Quit: Leaving]
nick12310 has quit [Quit: Client closed]
brook has quit [Ping timeout: 260 seconds]