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.

[参考译文] AM263P4:AM263Px:在 MCU+ SDK 中为 RCCCLK10M 置位配置看门狗计时器时钟源

Guru**** 2801995 points

Other Parts Discussed in Thread: AM2634, SYSCONFIG

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1611025/am263p4-am263px-configuring-watchdog-timer-clock-source-to-rccclk10m-asserts-in-mcu-sdk

器件型号: AM263P4
主题中讨论的其他器件: AM2634SysConfig

您好的团队、

虽然我可以在 SysConfig 中对 RCCCLK10M 进行配置、但 AM263Px MCU+ SDK 无法将 RCCCLK10M 作为看门狗计时器的时钟源。 这在 AM2634 上工作。 我通过 修改看门狗复位示例创建了一个最小的生产者、并将其附加在此处。

watchdog_reset_mode_am263px-cc_r5fss0-0_nortos_ti-arm-clang.zip 

运行此示例会导致以下错误:

Cortex_R5_0:断言:0.20238s:soc false/am263px/soc_rcm.c:SOC_rcmGetPeripheralClockFrequency:1775:false failed!!

根本原因在于 SOC_rcmGetPeripheralClockFrequency 函数 (source/drivers/am263px/soc_rcm.c soc) 中缺少 RCM_PLLID_RCCLK10M 的情况、该函数在 AM2634 版本中是比索。

此问题在最新的 MCU+ SDK 11.01.00.19 版本中仍然存在。