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.

[参考译文] AM2432:AM2432 MCU+ SDK 10.01.00.32:如何为热复位配置 WDT + ESM?

Guru**** 2988540 points

Other Parts Discussed in Thread: AM2432, SYSCONFIG

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1658163/am2432-am2432-mcu-sdk-10-01-00-32-how-to-configure-wdt-esm-for-warm-reset

器件型号: AM2432
主题: SysConfig 中讨论的其他器件

尊敬的 TI 团队:

我正在 使用 MCU+ SDK AM243x v10.01.00.32 对 AM2432 进行处理、并希望 在复位模式下实现看 门狗计时器、以便看门狗超时会触发 热复位。

我已经查看了以下 AM64x/AM243x 常见问题解答并了解概要流程:

WDT 超时→ESM 事件→SoC 复位

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1283237/faq-am64x-am62x-how-to-reset-the-soc wddt-timer-expression-in-am64x-and-am62x

但是、我无法找到 AM2432 MCU+ SDK 10.01.00.32 的完整示例。

您能否提供一个显示以下内容的参考示例或指导:

  • 如何将 WDT 和 ESM 配置为看门狗复位模式。

  • 如何在 SysConfig 中完成此配置。

  • 任何额外的步骤都需要进行看门狗驱动程序配置。

谢谢你。

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

    您好 

    该示例也附在 AM64X 的常见问题解答中,并且相同的代码应该在 AM243X R5F 内核上运行。

    此示例是很久以前创建的、因此请将最新的 SDL 示例用于您的用例。

    C:\ti\mcu_plus_sdk_am243x_xx_xx\examples\sdl\RTI


    请按照常见问题解答中提到的步骤操作、如果您需要任何进一步的帮助、请告诉我。

    此致、

    Anil.

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

    尊敬的 Anil:

    感谢您的答复。

    我的最终目标是 在应用中实现基于看门狗的恢复机制、以便如果固件卡住(例如在无限循环或死锁中)、 看门狗计时器会到期并执行 AM2432 热复位。

    根据您的建议、我尝试运行以下位置的 SDL 示例:

    C:\ti\mcu_plus_sdk_am243x_10_01_00_32\examples\sdl\rti\UC1\am243x-evm\r5fss0-0_nortos

    但是、我观察到以下行为:

    • 下电上电后、该示例首次成功运行。

    • 如果我停止调试器并在不对电路板进行下电上电的情况下启动另一个调试会话、则该示例始终失败。

    • 它仅在执行完整的下电上电后才会再次工作。

    我附上了这两个案例的日志。

    加电(工作)后首次运行:

    MAIN_Cortex_R5_0_0:
    
    MAIN_Cortex_R5_0_0: RTI Example Test Application
    
    MAIN_Cortex_R5_0_0:
    
    MAIN_Cortex_R5_0_0: RTI_Test_init: Init MCU ESM complete
    
    MAIN_Cortex_R5_0_0:
    
    MAIN_Cortex_R5_0_0: RTI Example code UC-1 started
    
    MAIN_Cortex_R5_0_0: DWWD configured to 100 percent window size
    
    MAIN_Cortex_R5_0_0: DWWD is configured for 10000 ms time-out
    
    MAIN_Cortex_R5_0_0:
    
    MAIN_Cortex_R5_0_0: RTI DWWD proper servicing test running.
    
    MAIN_Cortex_R5_0_0: Please wait for max 10000 ms.
    
    MAIN_Cortex_R5_0_0: RTI DWWD proper servicing test successful.
    
    MAIN_Cortex_R5_0_0:
    
    MAIN_Cortex_R5_0_0: RTI permanent failure test running.
    
    MAIN_Cortex_R5_0_0: DWWD will generate interrupt after 10 seconds
    
    MAIN_Cortex_R5_0_0: Wait for 10 sec for interrupt to be generated by DWWD.
    
    MAIN_Cortex_R5_0_0:
    
    MAIN_Cortex_R5_0_0: RTI Window End time violation test successful.
    
    MAIN_Cortex_R5_0_0: Test Name: RTI EXAMPLE TEST PASSED
    
    MAIN_Cortex_R5_0_0:
    
    MAIN_Cortex_R5_0_0: All tests have passed.


    第二次及后续调试在下电上电(失败)的情况下运行:

    MAIN_Cortex_R5_0_0: 
    
    MAIN_Cortex_R5_0_0: RTI Example Test Application
    
    MAIN_Cortex_R5_0_0: 
    
    MAIN_Cortex_R5_0_0: RTI_Test_init: Init MCU ESM complete 
    
    MAIN_Cortex_R5_0_0: 
    
    MAIN_Cortex_R5_0_0: RTI Example code UC-1 started
    
    MAIN_Cortex_R5_0_0: DWWD configured to 100 percent window size
    
    MAIN_Cortex_R5_0_0: DWWD is configured for 10000 ms time-out 
    
    MAIN_Cortex_R5_0_0: 
    
    MAIN_Cortex_R5_0_0: RTI DWWD proper servicing test running. 
    
    MAIN_Cortex_R5_0_0: Please wait for max 10000 ms. 
    
    MAIN_Cortex_R5_0_0: RTI DWWD proper servicing test failed. 
    
    MAIN_Cortex_R5_0_0: 
    
    MAIN_Cortex_R5_0_0: RTI permanent failure test running. 
    
    MAIN_Cortex_R5_0_0: DWWD will generate interrupt after 10 seconds
    
    MAIN_Cortex_R5_0_0: Wait for 10 sec for interrupt to be generated by DWWD.
    
    MAIN_Cortex_R5_0_0: RTI End time violation test failed. 
    
    MAIN_Cortex_R5_0_0: Test Name: RTI EXAMPLE TEST FAILED 
    
    MAIN_Cortex_R5_0_0: 
    
    MAIN_Cortex_R5_0_0: Few/all tests Failed 


    您能否说明这是否是 SDL RTI 示例的预期行为?

    此外、由于我的目标是在我的应用中实现基于看门狗的系统恢复、您是否建议使用此 SDL RTI 示例作为参考实现、或者是否有更合适的示例或方法来配置看门狗计时器以使用 MCU+ SDK 10.01.00.32 在 AM2432 上执行热复位?


    此致、
    Dhruv

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

    尊敬的 Dhruv:

    ",="" arial,="" sans-serif;="" font-size:="" 16px;="" font-weight:="" 400;="" margin:="" 12px="" 0px="" text-decoration:="" none;="" border-bottom:="" rgb(10,="" 10,="" 10);"="">请查看下面的常见问题解答、它阐明了您观察到的结果。

     【常见问题解答】AM6442:适用于所有 Sitara AM6X MPU 器件的看门狗调试和配置指南 

    ",="" arial,="" sans-serif;="" font-size:="" 16px;="" font-weight:="" 400;="" margin:="" 12px="" 0px="" text-decoration:="" none;="" border-bottom:="" rgb(10,="" 10,="" 10);"="">要在 WDT 到期后实现 SoC 复位、必须将 ESM 模块与 RTI 集成。
    ",="" arial,="" sans-serif;="" font-size:="" 16px;="" font-weight:="" 400;="" margin:="" 12px="" 0px="" text-decoration:="" none;="" border-bottom:="" rgb(10,="" 10,="" 10);"="">这些 ESM 集成示例位于 SDL 中。
    ",="" arial,="" sans-serif;="" font-size:="" 16px;="" font-weight:="" 400;="" margin:="" 12px="" 0px="" text-decoration:="" none;="" border-bottom:="" rgb(10,="" 10,="" 10);"="">请遵循以下常见问题解答、因为我们已经在其中介绍了这些具体问题。

     【常见问题解答】AM64X/AM62X:当 WDT 计时器在 AM64X 和 AM62X 到期时如何复位 SOC? 

    此致、

    Anil.

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

    尊敬的 Anil:

    我是 Dhruv 的同事 Nilesh。

    我们已经使用 WDT 示例和 RTI 计时器示例进行了尝试。 但是、我们没有取得成功。

    您是否有任何现有的固件示例可根据看门狗计时器到期来执行 SoC 复位?

    我们构建并运行 RTI 示例时、它成功构建并运行。 但是、我们无法识别 SoC 是否正在复位。 它只是运行和打印日志。

    如果可能、我们可以与您分享我们的示例代码。 请仔细查看并在结束时进行测试、并提供您的反馈。

    此致、

    Nilesh

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    ",="" arial,="" sans-serif;="" font-size:="" 16px;="" font-weight:="" 400;="" margin:="" 12px="" 0px="" text-decoration:="" none;="" border-bottom:="" rgb(10,="" 10,="" 10);"="">你好、Niles、
    ",="" arial,="" sans-serif;="" font-size:="" 16px;="" font-weight:="" 400;="" margin:="" 12px="" 0px="" text-decoration:="" none;="" border-bottom:="" rgb(10,="" 10,="" 10);"="">
    ",="" arial,="" sans-serif;="" font-size:="" 16px;="" font-weight:="" 400;="" margin:="" 12px="" 0px="" text-decoration:="" none;="" border-bottom:="" rgb(10,="" 10,="" 10);"="">上面链接的常见问题解答中提供的示例代码完全正常工作、许多客户已经成功按照这些步骤实现 SoC 复位。 您能否澄清设置时遇到的具体问题或错误? 我强烈建议再次查看整个常见问题解答文档、因为该文档包含解决此问题所需的确切步骤。
    ",="" arial,="" sans-serif;="" font-size:="" 16px;="" font-weight:="" 400;="" margin:="" 12px="" 0px="" text-decoration:="" none;="" border-bottom:="" rgb(10,="" 10,="" 10);"="">此外、能否介绍一下您的最终产品是什么? 这将帮助我们更好地了解您的应用环境。
    ",="" arial,="" sans-serif;="" font-size:="" 16px;="" font-weight:="" 400;="" margin:="" 12px="" 0px="" text-decoration:="" none;="" border-bottom:="" rgb(10,="" 10,="" 10);"="">
    ",="" arial,="" sans-serif;="" font-size:="" 16px;="" font-weight:="" 400;="" margin:="" 12px="" 0px="" text-decoration:="" none;="" border-bottom:="" rgb(10,="" 10,="" 10);"="">此致、
    ",="" arial,="" sans-serif;="" font-size:="" 16px;="" font-weight:="" 400;="" margin:="" 0px;="" text-decoration:="" none;="" border-bottom:="" 0px="" rgb(10,="" 10,="" 10);"="">Anil
    ",="" arial,="" sans-serif;="" font-size:="" 14px;="" font-weight:="" 400;="" margin:="" 0px;="" text-decoration:="" none;="" border-bottom:="" 0px="" rgb(10,="" 10,="" 10);"="">
    ",="" arial,="" sans-serif;="" font-size:="" 20px;="" font-weight:="" 600;="" margin:="" 24px="" 0px="" 12px;="" text-decoration:="" none;="" border-bottom:="" rgb(10,="" 10,="" 10);"="">
    ",="" arial,="" sans-serif;="" font-size:="" 20px;="" font-weight:="" 600;="" margin:="" 24px="" 0px="" 12px;="" text-decoration:="" none;="" border-bottom:="" rgb(10,="" 10,="" 10);"="">