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/SW-EK-TM4C129EXL: Hwi's Error

Part Number: SW-EK-TM4C129EXL


Tool/software: TI-RTOS

                         I am trying to use Hwi's to the code. A timer interrupt for certain milliseconds should trigger Hwi. When I tried to configure Hwi's I had received a strange error that I couldn't able to clear. The screenshot of the error can be as follows.

  • I am also using timer in the program. I think I have configured it correctly, but I can't find any option to provide ticks to generate periodic interrupts. Is there any option to configure the timer ticks in TI-RTOS???...
  • Naveen,

    Could you reply with your .cfg file attached (or cut-and-pasted, but attachment is preferred)?

    What version of TI-RTOS are you using?

    What part are you building for (I assume it's TM4C129EXL)?

    Are you trying to use intNum < 15?

    Regards,

    - Rob

  • Naveen Kumar29 said:
    I am also using timer in the program. I think I have configured it correctly, but I can't find any option to provide ticks to generate periodic interrupts. Is there any option to configure the timer ticks in TI-RTOS???...

    Timers don't use ticks for their period, they are generally used to *generate* ticks for the Clock module.

    A Timer's period needs to be specified.  It can be specified as either Timer.PeriodType_MICROSECS or Timer.PeriodType_COUNTS.  PeriodType_COUNTS relates directly to the value programmed in the Timer's expriation counter, and PeriodType_MICROSECS involves a calculation that ends up converting to a PeriodType_COUNTS value based on the Timer's specified frequency.

    Regards,

    - Rob

  • Hi Naveen,

    Did this get resolved?

    Todd

    [Updates: I'm marking this a TI Thinks Resolved and closing it because of inactivity from the original poster. If you feel otherwise, please post a response and the thread will be opened.]

  • This is .CFG file.... Still I have that error  intNum < 15.... What is meant by intNum... Is that the argument value or Interrupt number???
    
    /* Pull in BIOS module required by ALL BIOS applications */
    xdc.useModule('ti.sysbios.BIOS');
    /* Pull in XDC runtime System module for various APIs used */
    xdc.useModule('xdc.runtime.System');
    
    /* Get handle to Hwi module for static configuration */
    var Hwi = xdc.useModule('ti.sysbios.hal.Hwi');
    var hwiParams = new Hwi.Params;        /* Initialize hwiParams to default values */
    hwiParams.arg = 10;                               /* Set myIsr5 argument */
    hwiParams.enableInt = false;                  /* Keep interrupt 5 disabled until later */
    
    /* Create a Hwi object for interrupt number 5
     * that invokes myIsr5() with argument 10 */
    Hwi.create(5, '&myIsr5', hwiParams);
    
    
    /* Get handle to Hwi module for static configuration */
    var Hwi = xdc.useModule('ti.sysbios.hal.Hwi');
    var hwiParams = new Hwi.Params;               /* Initialize hwiParams to default values */
    hwiParams.arg = 12;                                      /* Set myIsr5 argument */
    hwiParams.enableInt = false;                         /* Keep interrupt 5 disabled until later */
    
    /* Create a Hwi object for interrupt number 5
    that invokes myIsr5() with argument 10 */
    Hwi.create(6, '&myIsr6', hwiParams);
    
    /* Add an idle thread 'myIdleFunc' that monitors interrupts. */
    var Idle = xdc.useModule('ti.sysbios.knl.Idle');
    Idle.addFunc('&myIdleFunc');
  • The error was cleared I just changed the interrupt number greater than 15.. (i.e. 16 and 17..)