Hi, I've been writing a program to have the PRU on my BBB manage a switched-mode power converter.
I want to make sure that if something goes wrong in the host program the power converter is shutdown gracefully, so I have implemented a simple "watch dog timer" scheme. The idea is that the host program is constantly setting an address in shared memory to 0 in a loop. The PRU is also constantly incrementing that same address. If the host loop stops, the value at the address climbs above a maximum and the PRU knows that the host program has gone away. As I think this scheme through, I realize that there is a large likelihood that the host program and the PRU will try to operate on this shared memory address at the same time! So far my program has not appeared to suffer any ill effects, but I guess I'm just interested in how this is handled by the am335x and if I ought to aware of possible gotchas! Thanks, Bill -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.