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.

Compiler/EK-TM4C1294XL: Hwi definition in .cfg file unable to resolve an interrupt service routine handle when in a .cpp file

Part Number: EK-TM4C1294XL
Other Parts Discussed in Thread: SYSBIOS

Tool/software: TI C/C++ Compiler

Hi All,

I am experiencing an issue when trying to direct a Hwi handle to service a CAN0 interrupt in TI-RTOS compiling in C++. The error I receive is that the symbol of the handle is undefined (so a linker issue). The handle in question is written in a .cpp file. When the handle is written in a .c file there are no issues with the Hwi being initialized. Using a .c file is however not an option as this project is written in c++. Has anyone else encountered this issue using c++ with TI-RTOS and know of a solution?

My .cfg code to enable the Hwi is;

var Hwi = xdc.useModule('ti.sysbios.family.arm.m3.Hwi');

var TIRTOS = xdc.useModule('ti.tirtos.TIRTOS');

var hwi0Params = new Hwi.Params();
hwi0Params.instance.name = "CAN_INT_HANDLE";
hwi0Params.enableInt = false;
hwi0Params.maskSetting = xdc.module("ti.sysbios.interfaces.IHwi").MaskingOption_BITMASK;
hwi0Params.arg = 14;
Program.global.CAN_INT_HANDLE = Hwi.create(54, '&CANIntHandler', hwi0Params);//pg 117 vector number

Cheers Tom.