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

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/692745/tms570ls3137-tms570ls3137

器件型号:TMS570LS3137
主题中讨论的其他器件:HALCOGEN

您好!

我有一个 TMS570LS31x Hercules 套件。 我想让一个简单的代码持续运行在 main 中、用于检查 CPU 寄存器、锁步和 RAM (用一些模式填充)、以查看是否发生任何翻转、然后通过 printf 报告此错误。 对于简单的代码检查、设置建议和代码示例、是否有任何建议?

请提供详细步骤。

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

    否、我们没有用于此目的的示例代码。 您可以使用 HALCoGen 生成驱动程序来执行这些类型的作业。

    在 HALCoGen 中、您可以启用:CPU 自检、CCM 自检和 SRAM ECC 检查、然后生成自检代码。

    对于填充 SRAM 并读回数据、它是非常直接的。 例如:

    void fill_sam_32位(unsigned int Start_Address、
    unsigned int No_of _words、
    unsigned int 模式)

    unsigned int *地址=(unsigned int *) Start_Address;
    while (No_of _words > 0){
    *Addr++=模式;
    NO_NO_ON_TO_CES--;



    unsigned int check_sam_32位(unsigned int Start_Address、
    unsigned int No_of _words、
    unsigned int 模式)

    unsigned int ReadPattern;
    unsigned int *地址=(unsigned int *) Start_Address;
    while (NO_Of _words > 0)

    ReadPattern =*地址++;
    if (ReadPattern!= Pattern){
    返回(unsigned int) Addr);

    NO_NO_ON_TO_CES--;

    返回(0);