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.

upp sysbios driver 移植 如何hook hwi

Other Parts Discussed in Thread: SYSBIOS

我在移植 upp dspbios driver 到  sysbios,  现在有个问题是不能触发hwi 中断 upp_isr().

在sysbios的 Dsp.cfg 中我加入如下代码

//--------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 ---------

请问, 中断号和eventId对吗? 如何调试Hwi, 我没用 EventCombiner可以吧.

软件环境是 bios_6_35_04_50 and xdctools_3_25_03_72 (in mcsdk_1_01_00_02), dsp 是 OMAP-L138.

sysbios 中 upp driver loopback 能工作,我直接调用upp_isr()能读到loopback的数据. 问题是不能由dmai/q 产生Hwi/isr 中断.

thanks,

James

PS:

dspbios upp driver UPP_BIOS_Driver_Install_v10.zip  能很好的工作, 这是tcf文件,

//---------------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);

//update: the CSL_INTC_EVENTID_UPPINT is 94