A novice for help! PRU __R30 GPO toggle.

77 views
Skip to first unread message

Gd chen

unread,
Feb 4, 2021, 7:56:42 AM2/4/21
to BeagleBoard
Hi,

I'm a beginner in BeagleBoard-X15. I'm using the beagleboard PRU and i want to debug the PRU gpio which using the CCS and the JTAG. I learned that PRU can directly control GPIO through __R30. I found out from the schematic diagram that the pin GPIO3_7 of P19 on Beagleboard-X15 is PR1_PRU0_GPO0. I want to output Toggle level directly through __R30 and then observe it through oscilloscope but it is doesn't work.I don't know what to do next.
Here is my code :
 
PRU.png

Mark A. Yoder

unread,
Feb 4, 2021, 10:15:16 AM2/4/21
to BeagleBoard
Have you run config-pin to make sure the pin in muxed to pruout?

Have you seen the PRU Cookbook?  It has lots of examples that could help.

--Mark

Mark Lazarewicz

unread,
Feb 4, 2021, 11:12:07 AM2/4/21
to beagl...@googlegroups.com
You have jtag and CCS supports direct register examinations 

Set a breakpoint in main get out the TRM for bit settings of mux and config registers 

Let us know what you expect them to be and what they are and what OS is running on ARM


 JTAG and a source level debugger
PRU.png

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/715ccfba-b925-4847-badd-593e6c981c9fn%40googlegroups.com.

che...@robotics-robotics.com

unread,
Feb 5, 2021, 12:51:46 AM2/5/21
to beagl...@googlegroups.com

HI Mark,

 

When I started getting boards, I had no idea what system was running in RAM right now. Then I burned the Linux kernel in, but I found that the config-pin tool output information is Beaglebone's information. I'm wondering if I didn't do a good job on the device configuration of BeagleBoard-x15.

 

Best regards,

GD

 

发件人: beagl...@googlegroups.com <beagl...@googlegroups.com> 代表 Mark A. Yoder
发送时间: 202124 23:15
收件人: BeagleBoard <beagl...@googlegroups.com>
主题: [beagleboard] Re: A novice for help! PRU __R30 GPO toggle.

 

--
For more options, visit http://beagleboard.org/discuss
---

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/7I2jSLTZmPs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/d53ca9b0-b493-485e-a0bf-6b74d125f685n%40googlegroups.com.

che...@robotics-robotics.com

unread,
Feb 5, 2021, 1:08:43 AM2/5/21
to beagl...@googlegroups.com

Hi Mark,

 

I just want to control a GPO(pr1_pru0_gpo0) of PRU0 ICSS1 and make it output a toggled level. Isn't PRU able to directly control its PIN?Or do I still need to configure it?The OS is linux kernel.

I suspect the system is hogging the resource so I can't control it directly. Then I directly mapped the corresponding register address and configured it to be part of PRU pin's mux function. The PRU finally has direct control over its output level, but I found that it can't be used directly by the PRU without other pins doing the same configuration.

I Googled some information on Bealgebone, a note on using CCS with JTAG. There are mainly two doubts. One is that functions need to be configured by config-pin tool on ARM, but I found that this tool in my ARM kernel outputs information of Beaglebone, which makes me very frustrated. The other one is whether the PRU can directly configure the corresponding resources that PRU can use without using ARM. I saw a file about bbb_startup.js that seems to achieve a similar function, but BBX15 did not find it.

 

Best regards,

GD

发件人: 'Mark Lazarewicz' via BeagleBoard <beagl...@googlegroups.com>
发送时间: 202125 0:12
收件人: beagl...@googlegroups.com
主题: Re: [beagleboard] A novice for help! PRU __R30 GPO toggle.

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/7I2jSLTZmPs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/52882370.1746810.1612455112873%40mail.yahoo.com.

image001.png

Mark Lazarewicz

unread,
Feb 5, 2021, 2:20:54 AM2/5/21
to beagl...@googlegroups.com
I think in your case Linux has configured pin. I don't use Linux. 
I'd look into Mark Y cookbook or

++The other one is whether the PRU can directly configure the corresponding resources that ++PRU can use without using ARM

You can Poke the registers using jtag and ccs thats what i was saying earlier



Mark L
Reply all
Reply to author
Forward
0 new messages