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.

[参考译文] TMS320C6701:NMI ISR 实施指南

Guru**** 2538960 points
Other Parts Discussed in Thread: TMS320C6701

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/992848/tms320c6701-guidance-for-nmi-isr-implementation

器件型号:TMS320C6701

你(们)好  

我的客户正在尝试使用 TMS320C6701实现 NMI ISR。

我可以从下面的 C6000相关文档中找到一些代码暂存。 但我觉得没有示例就不足以让初学者完成。

  SPRU733A_TMS320C67x_DSP CPU 和指令集参考指南(第5章):
https://www.ti.com/lit/ug/spru733a/spru733a.pdf?ts=1617956266155&ref_url=https%253A%252F%252Fwww.ti.com%252Fproduct%252FTMS320C6713B%253FkeyMatch%253D%2526tisearch%253Dsearch-everything%2526usecase%253Dpartmatches

  SPRU198K_TMS320C6000编程人员指南 (第9章):   
https://www.ti.com/lit/ug/spru198k/spru198k.pdf?ts=1617883268902

  SPRA544D_TMS320C6000工具:引导程序表和引导 ROM 创建:
https://www.ti.com/lit/an/spra544d/spra544d.pdf?ts=1617962176808&ref_url=https%253A%252F%252Fwww.ti.com%252Fsitesearch%252Fdocs%252Funiversalsearch.tsp%253FsearchTerm%253DSPRA544

  在 C 中设置 TMS320 DSP 中断: (不 包括 C6000 )
https://www.ti.com/lit/an/spra036/spra036.pdf?ts=1618044211421

请告诉我如何设置 NMI 例程、包括上下文保存和恢复以及 NMI ISR 代码。

我需要知道如何创建中断矢量表、启用中断、写入上下文存储/恢复、ISR、返回主程序。 尤其是 NMI。  

请举几个例子说明 NMI 例程实现和由 asm、c 和 GUI 芯片支持库编写的指导。

谢谢。

此致、  

插孔

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

    尊敬的 Jack:

    CSL 库具有 NMI ISR 的实现方案、以及有关创建您要查找的矢量表、启用中断等的详细信息。

    请参阅以下文件夹。

    /packages/ti/csl/arch/c67x


    $ grep -NRI "NMI"
    interrupt.h:83:#define C674x_MASK_NMI 1.
    src/interrupt.c:56:#define C674x_NMI 1.
    src/interrupt.c:113://启用 NMIE 位以允许 CPU 可屏蔽中断*/
    src/interrupt.c:114:IER =(1 << C674x_NMI);
    src/interrupt.c:121:* CPU 可屏蔽中断、NMI 或的矢量表
    src/interrupt.c:124:*\param cpuINT - CPU 可屏蔽中断号(4-15)、NMI (1)、
    src/interrupt.c:141:*\param cpuINT - CPU 可屏蔽中断号(4-15)、NMI (1)、
    src/interrupt.c:598:中断空 C674x_NMI_ISR (空)
    src/intvecs.asm:14:.global _C674x_NMI_ISR
    Sc/intvecs.asm:50:vec_entry _C674x_NMI_ISR

    谢谢

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

    非常感谢。 Aravind