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/AM5728:Hwi 挂起

Guru**** 2551110 points


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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/677504/rtos-am5728-hwi-hangs

器件型号:AM5728

工具/软件:TI-RTOS

我正在开发 AM5728IDK 上 DSP 和 PRU 之间的邮箱通信。 理论上、PRU 程序是 mailbox2的 user1、配置 mailbox2并向 mailbox2的 queue0发送消息。 DSP 程序是 mailbox2的 user0、接收中断并从 mailbox2的 queue0读取消息。 但是当 DSP 程序接收到一个中断时、它在 Hwi_unPluggedInterrupt()中挂起

有 DSP 程序片段:

int main()
{
Task_Handle 任务;
ERROR_Block EB;
Hwi_Params 参数;

intXbar_connectIRQ (43、237);


EventCombiner_dispatchPlug (43、&myEvent43Fxn、43、true);

EventCombiner_enableEvent (43);

Hwi_Params_init (params);

params.EventID = 43/32;

params.arg = params.EventID;

params.maskSetting = Hwi_MaskingOption_self;

params.enableInt = true;

Hwi_create (7、mailbox_ISR、&params、&EB);


system_printf ("dsp:enter main()\n");
system_flush();

ERROR_INIT (&EB);
任务= Task_create (taskFxn、NULL、&EB);
if (task =NULL){
System_printf ("Task_create() failed!\n");
BIOS_exit (0);
}

BIOS_start();/*不返回*/
return (0);
}


void mailbox_isr (UArg arg)
{

gMsgStatus = MailboxGetMessage (mailbox_base_address、mailbox_queue_0、
(uint32_t *)&gMsg);

MailboxClrNewMsgStatus (mailbox_base_address、mailbox_user、mailbox_queue_0);
}

void taskFxn (UArg0、UArg1)
{
system_printf ("dsp:enter taskFxn ()\n"\});
system_flush();

int i = 0;

Hwi_enableInterrupt (7);

Hwi_enable();

Hwi_startup();


。}


环境:
CCS 6.2
TI-RTOS:ti-processor-sdk-rtos-am57xx-evm-04.00.00.04

我不知道如何调试 Hwi 和中断。 请给我一些指南。

谢谢你。