Hello support team,
To evaluate AWR2944EVM board, I built, downloaded, and ran the example "mcu_plus_sdk_awr294x_08_02_00_25\examples\drivers\watchdog\watchdog_interrupt\awr294x-evm\c66ss0_nortos".
I did not touch anything. So everything is in default state. Hardware-wise, I only touched SOP[2:0].
I think mmWave SDK example seems to expect SYS_CLK to be 150MHz while it actually seems to be 200MHz.
There are two reasons why I think so.
1. Looking at the generated code,
// ti_power_clock_config.c SOC_ModuleClockFrequency gSocModulesClockFrequency[] = { { SOC_RcmPeripheralId_DSS_WDT, SOC_RcmPeripheralClockSource_SYS_CLK, 5000000 }, { SOC_RcmPeripheralId_DSS_SCIA, SOC_RcmPeripheralClockSource_SYS_CLK, 150000000 }, { SOC_MODULES_END, SOC_MODULES_END, SOC_MODULES_END }, };
It wants to set DSS_SCIA frequency to 150MHz.
If I run it, during the initialization at "SOC_rcmSetPeripheralClock",
// soc_rcm.c int32_t SOC_rcmSetPeripheralClock(SOC_RcmPeripheralId periphID, SOC_RcmPeripheralClockSource clkSource, uint32_t freqHz) { ... Finp = SOC_rcmGetPeripheralClockFrequency(clkSource); clkDivisor = SOC_rcmGetModuleClkDivVal(Finp, freqHz); ...
SOC_rcmGetPeripheralClockFrequency(clkSource) returns 200000000. Then it calls "SOC_rcmGetModuleClkDivVal" to get the divisor value to be used.
As the desired output frequency 150MHz cannot be achieved by division with the input frequency of 200MHz, the debug assert fails in "SOC_rcmGetModuleClkDivVal" and gets stuck there forever.
2. If I manually remove the UART configuration in the configuration file("example.syscfg"), then the configuration for the UART ({ SOC_RcmPeripheralId_DSS_SCIA, SOC_RcmPeripheralClockSource_SYS_CLK, 150000000 },) disappears, and the example starts to run as expected.
However, the "gClockCtrl.ticks", which is supposed to be 1ms tick, increments 1.33 time faster than expected (I clicked the debugger break after around 10 seconds, the increase was 13370, not 10000.)
I have no idea what I am doing wrong.
How does the mmWave driver figure out the frequency of the external XTAL of this board? Is there a place where users should configure the clock frequency? I don't even know where to look.
Could you give me any hints, please?
Best regards,
Hwanjoon