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.

[参考译文] RTOS/PROCESSOR-SDK-K2G:在 cfg 文件中设置 ECM.eventGroupHwiNum didn't 更改默认 ECM

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/640824/rtos-processor-sdk-k2g-setting-ecm-eventgrouphwinum-in-cfg-file-didn-t-change-the-default-ecm

器件型号:PROCESSOR-SDK-K2G
主题中讨论的其他器件:EVMK2GSYSBIOS

工具/软件:TI-RTOS


BIOS_6_46_05_55
PROCESSOR_SDK_RTOS_k2g_4_01_00_06
pdk_k2g_1_0_7
Code Composer Studio 版本:7.2.0.00013

我在 EVM K2G 上构建并运行示例代码 MCSPI_SlaveMode_SlaveExample_evmK2G_c66xExampleProject。

中断组合事件的默认设置为中断向量4、5、6和7。

我将以下行添加到.cfg 文件中
ECM.eventGroupHwiNum[0]= 6;
ECM.eventGroupHwiNum[1]= 7;

ECM.eventGroupHwiNum[2]= 8;
ECM.eventGroupHwiNum[3]= 9;
将组合事件(0、1、2和3)映射到中断矢量6、7、8和9。

当在 CCS 中查看并打开 Tools->ROV->Hwi 时。  它显示了已设置的 Hwi 和 EventCombiner 的列表。
、0x874680、、、6、ti_sysbios_family_c64p_EventCombiner_Dispatch __E、0x0、0x0、0、0x40、0x40
、0x874698、、、7、ti_sysbios_family_c64p_EventCombiner_Dispatch __E、0x1、0x846696、1、0x80、0x80
、0x8746b0、、、8、ti_sysbios_family_c64p_EventCombiner_Dispatch __E、0x2、0x0、2、0x100、0x100
、0x8746c8、、、9、ti_sysbios_family_c64p_EventCombiner_Dispatch __E、0x3、0x0、3、0x200、0x200
、0x8746e0、0x875190、、14、ti_sysbios_KNL_Clock_dotick__i、0x0、0x851074、32、0x40、0x4000
、0x8021d0、、、4、ti_sysbios_family_c64p_EventCombiner_disp_E、0x0、0x0、0、0x10、0x10
、0x8021f0、、、、5、ti_sysbios_family_c64p_EventCombiner_dispation_E、0x1、0x84ab34、1、0x20、0x20

为什么中断矢量4和5仍然在 Hwi 列表中?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    我已将您的疑问转发给软件专家。 他们的反馈应发布在此处。

    BR
    Tsvetolin Shulev
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    在干净构建和重新启动 EVM 板后、问题消失。 谢谢。
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    约书亚、

    下面介绍了使用事件组合器为 KeyStone 器件进行一般中断配置:
    processors.wiki.ti.com/.../Configuring_Interrupts_on_Keystone_Devices

    请查看描述使用 SYSBIOS 设置 ECM 的部分、如果您有任何疑问、请告知我们。

    如果此问题已解决、请将该主题标记为已关闭。

    此致、
    Rahul