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.

Hwi_delete doesn't seems to work

Other Parts Discussed in Thread: SYSBIOS

Hi,

I have an issue with Hwi_create (), when called for the first time it works fine. I delete using Hwi_delete() and re-create using Hwi_create. I get the following error.

"ti.sysbios.family.arm.m3.Hwi: line 90: E_alreadyDefined: Hwi already defined: intr# 7

xdc.runtime.Error.raise: terminating execution"

Could you please help me with this?

Following are the other details.

Platform : DM740

CCSV4, Bios version 6_21_01_16

Here is the code that i am using.

Hwi_Params_init(&intParams);
intParams.arg       = (UInt32)instHandle;
intParams.enableInt = TRUE;
instHandle->hwiHandle =   Hwi_create(   0x7,
                                        mainIsr,
                                        &intParams, NULL);
Hwi_delete(&(instHandle->hwiHandle));

Hwi_Params_init(&intParams);
intParams.arg       = (UInt32)instHandle;
intParams.enableInt = TRUE;
instHandle->hwiHandle =   Hwi_create(   0x7,
                                        mainIsr,
                                        &intParams, NULL);

Thanks,

Sujith