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.

[参考译文] TMS570LS3137:TMS570LS3137:cpuSelfTest 查询(续)

Guru**** 2587365 points
Other Parts Discussed in Thread: TMS570LS3137

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/853432/tms570ls3137-tms570ls3137-cpuselftest-query-continuation

器件型号:TMS570LS3137

大家好、

这涉及案件的继续: https://e2e.ti.com/support/microcontrollers/hercules/f/312/t/823182?tisearch=e2e-sitesearch&keymatch=%25252525252520user%2525252525253A373270

您能回答以下问题吗:

"当我配置 HCLK = 180MHz、VCLK = 90MHz、STCCLK = 90MHz、 stcREG->STCTPR = 0x8019UL (根据 TRM 为364 μ C); 在这种情况下 cpuSelfTest()失败。 为什么这会是一个良好的容差值?"

超时值为364微秒时、测试用例失败、但随着超时的增加、它可以正常工作。 它是否需要更新文档或我们的测试中缺少的内容?

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

    Sreenivasan、

    STCTPR 寄存器将超时周期配置为备用、以防 CPU 自检运行未完成。 这使您能够用超时时间复位 CPU 并处理 CPU 自检结果。 该超时不需要恰好是完整自检所需的 VCLK 周期数。

    在 TMS570LS3137上、运行全部24个 STC 间隔需要32760个累积 STC 时钟周期。 90MHz 时、这正好是364us。 您需要定义大于所需时间的超时周期。 我建议将超时周期配置为应用程序可以处理的值、以便在运行自检时 CPU 不可用。

    此致、Sunil