Target MCU is RM48L952.
I encountered the exactly same problem discussed in here: https://e2e.ti.com/support/microcontrollers/hercules/f/312/t/350726
I also get stuck here:
while((systemREG1->GBLSTAT & 0x1U) == 0U)
{
} /* Wait */
and the oscillator flag is never set.
I checked CSVSTAT too, and the oscillator is valid, even though i already set the bit 0 of CSDIS.
How can i solve this problem?? I am very confused...