This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM2732: How to config the watchdog RTI clock value?

Part Number: AM2732


Hi team,

In mcu_plus_sdk_am273x_08_05_00_24, what's the default value for watchdog RTI input clock(divider default is 0X777, source = 0x222, should be 25MHz?)? 

Then I use API to change the divider, with below config, we can see the divider is set to 0xfff.

SOC_rcmSetPeripheralClock(SOC_RcmPeripheralId_MSS_WDT,SOC_RcmPeripheralClockSource_SYS_CLK,12500000);

But, I use below API to change the divider to 2MHz, with below config, we can see the divider is set to 0x333. Not matching the 2MHz.(it look likes overflow)

SOC_rcmSetPeripheralClock(SOC_RcmPeripheralId_MSS_WDT,SOC_RcmPeripheralClockSource_SYS_CLK,2000000);

Is the data range for this input clock divider 0x0-0xF? In TRM, this is a 12bit register, so need your confirm here.

Thanks,

Wesley

  • Hi Wesley,

    Yes the divider cannot be more than 0xF this is hardware requirement. Whatever the frequency you're trying to program to WDG shouldn't exceed this 0xF value, In case if it exceeds, I highly recommend to change the clock source it self so you can get lower clocks.

    Let me know if you have any queries.

    Thanks