dear @Alice_Yang
It works, but I have another problem.
Since this is an audio application, I can't modify the system clock. Many CPU-generated signals depend on it. Therefore, I decided to write to the flash during power-off. There's a hardware interface that detects the system supply voltage. When the voltage drops below 80 volts, the CPU stops generating hardware signals and starts writing to flash memory.
Unfortunately, the
BOARD_BootClockPLL96M()
routine, which sets the clock to 96 MHz, takes too long, causing the system to power off before flash writing completes.
Could I possibly halve the system clock using the
CLOCK_SetClkDiv(kCLOCK_DivAhbClk, 2U, false)
routine, to set the clock under 100MHz ?
Thank you very much for your help and cooperation.
Best regards."