On 9/7/2016 5:18 PM, William Hermans wrote: > > I agree with Charles with one exception. I personally prefer to use DATAOUT > directly instead of using SETDATAOUT / CLEARDATAOUT.
If you write directly to DATAOUT from either the PRU or the ARM side, you risk data corruption. Example access patterns causing data corruption: 1: * PRU reads DATAOUT * ARM modifies DATAOUT * PRU writes DATAOUT * ARM Update is *LOST* 2: * ARM reads DATAOUT * PRU modifies DATAOUT * ARM writes DATAOUT * PRU update is *LOST* Both the PRU and the ARM need to use the set/clear registers for updates or some updtes can get *LOST* (which can be *REALLY* hard to debug in the RealWorld). -- Charles Steinkuehler [email protected] -- 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/c7da32a4-e33f-3c60-eafd-66fc188595f5%40steinkuehler.net. For more options, visit https://groups.google.com/d/optout.
