在cfg文件中对hwi引入勾子函数,如下:
/* Define and add two Hwi HookSets
* No
tice, no deleteFxn is provided.
*/
var Hwi = xdc.useModule('ti.sy***ios.hal.Hwi');
/* Hook Set 1 */
Hwi.addHookSet([
registerFxn: '&myRegister1',
createFxn: '&myCreate1',
beginFxn: '&myBegin1',
endFxn: '&myEnd1',
]);
/* Hook Set 2 */
Hwi.addHookSet([
registerFxn: '&myRegister2',
createFxn: '&myCreate2',
beginFxn: '&myBegin2',
endFxn: '&myEnd2',
]);
但编译之后出现如下错误:
ti.sy***ios.BIOS : Hwi Hooks are not supported when BIOS.libType == BIOS.LibType_Instrumented. Set 'BIOS.libType = BIOS.LibType_Custom' to build a custom library or update your configuration.
这是什么原因?怎么修改?求助,谢谢