Hi, I am trying to work with the PBIST module right now and am unable to set the PACT1 bit. I am able to set PACT0 to 1. Here is the code leading up to the call to set PACT:
/* PBIST has a max clock requirement of 82.5MHz. Divide GCLK by 4 to get
* 300M/4 = 75MHz */
SYSTEM1->MSTGCR = (SYSTEM1->MSTGCR & 0xFFFFFCFF) | 0x200;
/* Enable PBIST controller */
SYSTEM1->MSINENA = 0x1;
/* Clear MSTGENA field */
SYSTEM1->MSTGCR &= (0xFFFFFFF0U);
/* Enable self-test controller */
SYSTEM1->MSTGCR |= 0xA;
/* Wait 64 VBUS cycles for PBIST controller to initialize. VBUS is 100MHz, so 64*3 = 192 */
for(i = 0; i < 192; i++) { asm(" nop"); }
/* Enable PBIST clock and ROM clock */
PBIST->PACT = 0x3U;
Any ideas?