请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:SK-AM62P-LP 主题中讨论的其他器件: AM62P
工具与软件:
专家、您好!
董事会:SK-AM62P-LP
操作系统: Processor SDK Linux RT AM62P Debian Trixie -版本: 10.00.07.04.
MCU+SDK:版本:10.00.07.04
我们正在监控 MCU_DDC1的时钟、以跟踪 MCU_SPI 外设时钟的频率、该时钟频率源自 MCU_PLL0_HISTDIVE 6。 我修改了提供的示例代码并尝试了错误注入 CLOCKSRC1 . 不过、当注入错误时、没有按预期触发错误中断。
为了捕获错误、我在中启用了第36个错误事件 WAKEUP_ESM0 . 下面是供您参考的相关代码片段:
SDL_ESM_config DCC_Test_esmInitConfig_Inst =
{
/**< All high priority events to error pin */
.esmErrorConfig = {1u, 8u}, /* Self test error config */
.enableBitmap = {0x00000000u, 0x00000007bu, 0x00000000u, 0x00003000u,
0x00000000u, 0x00000380u,
},
/**< All events enable: except clkstop events for unused clocks
* and PCIE events */
.priorityBitmap = {0x00000000u, 0x00000007bu, 0x0000000u, 0x00003000u,
0x00000000u, 0x00000380u,
},
/**< All events high priority: except clkstop events for unused clocks
* and PCIE events */
.errorpinBitmap = {0x00000000u, 0x00000007bu, 0x00000000u, 0x00003000u,
0x00000000u, 0x00000380u,
},
/**< All events high priority: except clkstop for unused clocks
* and PCIE events */
};
SDL_ESM_config DCC_Test_esmInitConfig_Main =
{
/**< All high priority events to error pin */
.esmErrorConfig = {1u, 8u}, /* Self test error config */
.enableBitmap = {0x00000000u, 0x000000078u, 0x00008000u,0x003f3000u,
0x00000000u, 0x00000380u,
},
/**< All events enable: except clkstop events for unused clocks
* and PCIE events */
.priorityBitmap = {0x00000000u, 0x000000078u, 0x00008000u,0x003f3000u,
0x00000000u, 0x00000380u,
},
/**< All events high priority: except clkstop events for unused clocks
* and PCIE events */
.errorpinBitmap = {0x00000000u, 0x000000078u, 0x00008000u,0x003f3000u,
0x00000000u, 0x00000380u,
},
/**< All events high priority: except clkstop for unused clocks
* and PCIE events */
};
由于我不使用任何单个短模式、因此我不必注册任何完成中断(如果没有错误)。
下面是 DCC 配置数组。
{
"HFOSC0",
"MCU_SPI (0/1) /MCUPLL0_HSDIV6",
SDL_DCC_INST_MCU_DCC1,
SDL_DCC_CLK0_SRC_CLOCK0_0,
25000, /* 25 MHz for HFOSC0 */
SDL_DCC_CLK1_SRC_CLOCKSRC1,
400000, /* 400 MHz for SYSCLK0 */
SDL_DCC_MODE_CONTINUOUS,
0x0,
0xffff,
IS_ERR
},
谢谢、此致、
Raj。