Hello TI engineer, recently debugging the IWR6843 chip and outputting MCU through N8 pin_ CLK is configured with relevant registers, but according to the oscilloscope, there is no clock output,
The following is my configuration code. Is there any error or omission?
SOC_Cfg socCfg;
/* Initialize and populate the demo MCB */
memset((void*) &gMmwMssMCB, 0, sizeof(Mmw_MCB));
/* Initialize the ESM: */
//ESM_init(0U); //dont clear errors as TI RTOS does it
gMmwMssMCB.esmHandle = ESM_init(1U);
/* Initialize the SOC confiugration: */
memset((void*) &socCfg, 0, sizeof(SOC_Cfg));
/* Populate the SOC configuration: */
socCfg.clockCfg = SOC_SysClock_INIT;
socCfg.mpuCfg = SOC_MPUCfg_CONFIG;
socCfg.dssCfg = SOC_DSSCfg_UNHALT;
/* Initialize the SOC Module: This is done a s soon as the application is started
* to ensure that the MPU is correctly configured. */
gMmwMssMCB.socHandle = SOC_init(&socCfg, &errCode);
if (gMmwMssMCB.socHandle == NULL)
{
#ifdef DEBUG
printf("Error: SOC Module Initialization failed [Error code %d]\n", errCode);
#endif
return -1;
}
Pinmux_Set_OverrideCtrl(SOC_XWR68XX_PINN8_PADAY, PINMUX_OUTEN_RETAIN_HW_CTRL, PINMUX_INPEN_RETAIN_HW_CTRL);
Pinmux_Set_FuncSel(SOC_XWR68XX_PINN8_PADAY,
SOC_XWR68XX_PINN8_PADAY_MCU_CLKOUT);
SOC_DriverMCB* ptrSOCDriverMCB;
/* Get the pointer to the SOC Driver Block: */
ptrSOCDriverMCB = (SOC_DriverMCB*)gMmwMssMCB.socHandle;
//ptrSOCDriverMCB->ptrTopRCMRegs->EXTCLKCTL = 0xD;
/* Disable the clock by gating off the clock */
ptrSOCDriverMCB->ptrTopRCMRegs->EXTCLKCTL = CSL_FINSR (ptrSOCDriverMCB->ptrTopRCMRegs->EXTCLKCTL, 7U, 0U, 0U);
ptrSOCDriverMCB->ptrTopRCMRegs->EXTCLKDIV = CSL_FINSR (ptrSOCDriverMCB->ptrTopRCMRegs->EXTCLKDIV,7U,0U, 1U);
ptrSOCDriverMCB->ptrTopRCMRegs->EXTCLKSRCSEL = CSL_FINSR (ptrSOCDriverMCB->ptrTopRCMRegs->EXTCLKSRCSEL,3U,0U, 4U);
ptrSOCDriverMCB->ptrTopRCMRegs->EXTCLKCTL = CSL_FINSR (ptrSOCDriverMCB->ptrTopRCMRegs->EXTCLKCTL, 7U, 0U, 0xAD);