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.

[参考译文] TMDSCNCD263:优先级为 0 的 DebugP_LOG 中断 ISR

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1529445/tmdscncd263-debugp_log-interrupts-isrs-with-priority-0

器件型号:TMDSCNCD263

工具/软件:

您好!

我看到 DebugP_LOG 优于配置了优先级 0 的偶数 ISR。  

在我的程序中、我只有一个由该 ISR 驱动的中断。 在主循环中、我 运行了一条周期性 DebugP_LOG 语句来显示系统的状态。

即  

```μ s

/*寄存和启用中断*/
HwiP_Params_init (&hwiPrms);
hwiPrms.intNum = CSLR_R5FSS0_CORE0_CONTROLSS_INTRXBAR0_OUT_0;
hwiPrms.priority = 0;/*设置高优先级。 可选*/
hwiPrms.callback =&App_adcISR;
状态= HwiP_Construct (&gAdcHwiObject、&hwiPrms);
DebugP_assert (status == SystemP_Success);

```μ s

即使 是 App_adcISR、也会等待运行 DebugP_LOG 行所需的周期。  

有什么想法在哪里进行配置/如何确保 ISR 中断始终运行?

谢谢!

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

    您好:

    DebugP_LOG 具有三种输出方式:CCS 控制台、UART 或存储器转储。 您可以在 example.syscfg 中的 DebugP Log 选项中对其进行更改。 对于实时环境、您希望使用存储器转储或 UART(如果 DebugP_LOG 调用频率不是过高)。 切勿使用 CCS 控制台、因为它侵入性非常高(禁用中断且速度缓慢)。

    此致、

    Sahana