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.

RTOS/TM4C1294NCPDT: TM4C1294NCPDT timer TI-RTOS

Part Number: TM4C1294NCPDT

Tool/software: TI-RTOS

Hi,

I am trying to set up a timer interrupt in TI-RTOS for my TIVA board. I use the following include files and code to create a timer:

#include <ti/sysbios/family/arm/m3/Timer.h>

.

.

.

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

var m3Hwi0Params = new m3Hwi.Params();
m3Hwi0Params.instance.name = "IntTimer";
Program.global.IntTimer = m3Hwi.create(39, "&task_clock", m3Hwi0Params);

I get the errors as below. This code I have attached looks the same as the one generated by .cfg GUI. Appropirate #include file could fix it? My final goal is to use .StartMode_USER mode and Timer_start() function.

I use CCS7.3, 2.16.1.14 RTOS, 3.32.0.06 XDC.

Thanks a lot.

 

  • Hello Lukasz,

    One of the errors says that a ';' is missing... if that is true, all other errors could be directly related to that. Please review your code to try and find the missing ';' and then re-compile when it's fixed. (Tip: Look just above where the red x's start showing up in the code window...)