Part Number: TMS320F28386D
I used below code to boot CM from CPU1 with 120MHz frequency, but it seemed that CM was still working at 125MHz. How to solve this issue?
#define CM_BOOT_FREQ_125MHZ 0x7D00U
#define CM_BOOT_FREQ_120MHZ 0x7800U
void Device_bootCM(uint32_t bootmode)
{
//
// Configure the CPU1TOCMIPCBOOTMODE register
//
IPC_setBootMode(IPC_CPU1_L_CM_R,
(BOOT_KEY | CM_BOOT_FREQ_120MHZ | bootmode));
//
// Set IPC Flag 0
//
IPC_setFlagLtoR(IPC_CPU1_L_CM_R, IPC_FLAG0);
//
// Bring CM out of reset. Wait for CM to go out of reset.
//
SysCtl_controlCMReset(SYSCTL_CORE_DEACTIVE);
while(SysCtl_isCMReset() == 0x1U);
}
