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.

[参考译文] TMS570LC4357:FLA12空闲状态奇偶校验

Guru**** 2463330 points


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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1107550/tms570lc4357-fla12-idle-state-parity-test

器件型号:TMS570LC4357

各位专家、您好!

我们实施了奇偶校验逻辑的 FLA12测试。 但是、当我们尝试测试空闲状态奇偶校验时、不会发生任何情况。
我们尝试了此处建议的操作: e2e.ti.com/.../tms570lc4357-flash-parity-override-register-how-to-set-a-port-to-idle-state PAR_OVR_KEY#

但是、即使启用了诊断模式7和测试模式、也不会发生任何情况:

我们尝试了:

volatile uint32_t flashRead;
/* Enable diagnostic mode and select diag mode 7 */
/* DIAG_BUF_SEL [10:8] [10:8] = 0 : Port A selected to flip data/ECC */
/* DIAG_BUF_SEL = 4: Port B selected to flip data/ECC */
flashWREG->FDIAGCTRL = 0x00050007U;

flashWREG->FPAR_OVR = 0x00010000U;

/* enables the parity checking on the access */
flashWREG->FPAR_OVR |= 0x00005A00U;


flashRead = *(volatile uint32_t *) 0x00000008U;

/* disable diagnostic mode */
flashWREG->FDIAGCTRL = 0x000A0007U;

(Q1)运行此代码时、不会发生任何情况。 我能不能说我们出了什么错?

谢谢、此致、
最大

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

    尊敬的 Max:

    您可以通过将0xA 写入 SCMCNTL 寄存器的 PAR DIAG EN 来执行奇偶校验诊断测试。

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

    您好 QJ、

    (Q2)我感到困惑。 为什么应该使用 CPU 互连子系统来具体测试闪存的空闲奇偶校验?

    (Q3)闪存的 FPAR_OVR 寄存器是否设计为通过设置 PAR_OVR_SEL 选择奇偶校验、然后通过设置 PAR_OVR_KEY 触发测试来执行奇偶校验测试?

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

    问题已在其他线程中得到解决。