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.

Problem when creating a Hwi

Other Parts Discussed in Thread: SYSBIOS

Hi,

i'm using BIOS to work on a 6678‘s SRIO module communicating with a FPGA. The project was imgrated from the SRIO with interrput example. I created some Hwi module dynamically using C to get the data transfered from the FPGA. To do that i used 3 GPIO and mapped them into 3 Hwi which are mapped into CPUINT 4,5,6. This works fine. Now i need another Hwi to work on the IPC interrput ,so i create another Hwi and mapped it into INT7, but the Hwi create function returned with some mistake says that the int7 has already been defined. I changed the intnum into 8,9,10... got the same error.

Was the CPUINT 7-15 dedicated for some useage in BIOS or they are used for the SRIO interrput? if so, how could change this? 

those are my Hwi creation code

Error_init(&eb);
Hwi_Params_init(&hwiparams04);
hwiparams04.arg=0;
hwiparams04.eventId=83;

Hwi04=Hwi_create(4, Hwi_isr04, &hwiparams04, &eb);


Hwi_Params_init(&hwiparams05);
hwiparams05.arg=0;
hwiparams05.eventId=82;

Hwi05=Hwi_create(5, Hwi_isr05, &hwiparams05, &eb);

Hwi_Params_init(&hwiparams06);
hwiparams06.arg=0;
hwiparams06.eventId=84;

Hwi06=Hwi_create(6, Hwi_isr06, &hwiparams06, &eb);

Hwi_Params_init(&hwiparams07);
hwiparams07.arg=0;
hwiparams07.eventId=91;

Hwi07=Hwi_create(7, Hwi_isr07, &hwiparams07, &eb);

Here are the consle out put

[C66xx_0] ti.sysbios.family.c64p.Hwi: line 159: E_alreadyDefined: Hwi already defined: intr# 7
[C66xx_0] ti.sysbios.family.c64p.Hwi: line 234: E_handleNotFound: Hwi handle not found: 0x80200c98
[C66xx_0] xdc.runtime.Error.raise: terminating execution