My experience of working directly with the i2c and eqep parts of the silicon from within the PRU suggest that register access to the watchdog peripheral would be both easy and reliable. It's simply a #define and you can then access the register contents directly from within the PRU.
I will write some test code to reconfigure the watchdog and report back. On Tuesday, 4 June 2019 02:02:37 UTC+1, lazarman wrote: > > I'd ask the question are these register's accessable from the PRU my > experience is dated and I'm not a Linux guy but most OS protect Access to > certain registers I briefly looked at TRM the WDOG is enabled by default > probably during boot. To set it or change the clock source you disable it > which I doubt Linux would like from PRU side but maybe I'm wrong. I'd look > at the interconnect block diagram to see if PRU has access to the > registers. Google am335x watchdog c code I see discussion about Kernel > configuration. Typically on non Linux ARM side project TI provided quite a > bit of example code for customer boot code options that's where I always > start but that code isn't always in the public domain and in your case > isn't relavent after Linux takes over you may have to let ARM Linux side > handle it. I'd look at PRU register memory map unless someone in here has > done it from PRU. > Good luck > > Sent from Yahoo Mail on Android > <https://go.onelink.me/107872968?pid=InProduct&c=Global_Internal_YGrowth_AndroidEmailSig__AndroidUsers&af_wl=ym&af_sub1=Internal&af_sub2=Global_YGrowth&af_sub3=EmailSignature> > > On Mon, Jun 3, 2019 at 7:07 AM, Hugh Frater > <[email protected] <javascript:>> wrote: > Where does one go to tune the watchdog timer? Is it a > kernel-recompilation-required thing, or can it be done through uBoot? > > Or.... should I just use my PRU code to tune the watchdog control register > when it boots? This would be the easiest option for me, if someone can > point me at the correct area if the AM335XTRM? I had a look in there and > couldn't find the correct registers. > > I'd like it to run about 10 seconds if possible for my application. > > -- > 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 [email protected] <javascript:>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/beagleboard/2d6c30bf-484e-49e6-ab9d-582535f60a84%40googlegroups.com > > <https://groups.google.com/d/msgid/beagleboard/2d6c30bf-484e-49e6-ab9d-582535f60a84%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/aaedce6d-668e-420d-a1c1-a8f19744c236%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
