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.

TMS320F28374S: System clock initialization and SysCtl_setClock() usage

Part Number: TMS320F28374S


Hi all,

I am developing an application based on F28374S and driverlib.

I have performed system clock initialization, based on C2000 Ware examples:

SysCtl_setClock(DEVICE_SETCLOCK_CFG);

ASSERT(SysCtl_getClock(DEVICE_OSCSRC_FREQ) == DEVICE_SYSCLK_FREQ)

 

Is it sufficiently safe, or is better also to check SysCtl_setClock() return value, and perform retries using SysCtl_resetMCD()?

 

Thank you,

Carlo