Hi,
I am porting the upp dspbios driver to the sysbios, the problem is I could not get any hwi interrupt upp_isr() called till now.
in the Dsp.cfg I added as follows,
//--------add hwi to sysbios dsp.cfg----------
var Hwi = xdc.useModule('ti.sysbios.hal.Hwi');
var hwi7Params = new Hwi.Params();
hwi7Params.instance.name = "hwi7";
hwi7Params.enableInt = true;
hwi7Params.eventId = 2;
Program.global.hwi7 = Hwi.create(7, '&upp_isr', hwi7Params);
//---------end ---------
Is the interrupt number and eventId right?. how can I trace the hwi? what do i need more?
btw,I removed the EventCombiner code and the others function does the same way like dspbios.
thanks,
James
PS:
The dspbios upp driver UPP_BIOS_Driver_Install_v10.zip works fine, here is some copy from the dspbios driver ,
//---------------dspbios upp bios driver v10 upp_drv_test.tcf ---------
bios.ECM.ENABLE = 1;
bios.HWI.instance("HWI_INT7").interruptSelectNumber = 2;
//-------------dspbios upp_md.c upp_mdCreateChan() ---
ecmattrs.unmask = 1u;
ecmattrs.arg = (Arg)devp;
ECM_dispatchPlug(CSL_INTC_EVENTID_UPPINT, (ECM_Fxn)upp_isr, &ecmattrs);
ECM_enableEvent(CSL_INTC_EVENTID_UPPINT);