I am running into an intermittent issue when writing to the McASP GBLCTL register.
8 times out of 10 everything works as expected and McASP and EDMA start up correctly.
I am doing readback of GBCTL to confirm write has completed as expected. I follow the McASP setup sequence from the technical reference manual.
In the failing case writes of 0 (reset), XHCLKRST = ACTIVE then XCLKRST = ACTIVE all succeed. The write to set RSRCLR and XSRCLR ACTIVE fails. So do subsequent writes to set RSMRST and XSMRST ACTIVE and after that the write to set RFRST and XFRST ACTIVE. Any idea why 3 writes would succeed and then 3 writes fail? Also, why does the failure only happen sometimes?
Thanks, Andrew