ZHDA142 May 2026 CC2745R10-Q1
当 SysConfig 完成无晶体模式配置后,生成的初始化代码会按顺序调用以下电源驱动 API 来激活 LFOSC 补偿。
编译工程时,以下代码会自动添加到 SysConfig 生成的 Board_init() 函数中:
/* activates the internal LFOSC and switches the low-frequency clock (LFCLK) source to the LFOSC. Dynamic switching between low-frequency clock sources is currently not supported.*/
PowerLPF3_selectLFOSC();
/* initializes the internal state of the LFOSC compensation subsystem and configures the LFCAL hardware measurement window. The default calibration measurement duration is 1500µs.. */
PowerLPF3_initLfoscCompensation();
/* supplies the compensation profile that governs how the LFCAL hardware computes the optimal calibration interval. The profile is defined by the PowerLPF3_LfoscCompensationProfile structure. */
PowerLPF3_setLfoscCompensationProfile(&configLfoscCompProfile0);
/* activates the LFCAL hardware block; the driver reads the current device temperature, computes the initial calibration interval based on the active profile, and begins the autonomous periodic calibration cycle. Temperature change notifications are registered internally to dynamically adjust the calibration interval ensuring that sleep clock accuracy remains within ±500ppm under varying thermal conditions. */
PowerLPF3)enableLfoscCompensation();
编译工程,并通过确认在长时间待机期间 BLE 连接事件保持无时序错误,来验证系统运行正常。