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/AWR1843: TI RTOS HWI configurator errors

Part Number: AWR1843
Other Parts Discussed in Thread: SYSBIOS

Tool/software: TI C/C++ Compiler

Hello All,

I am facing a problem configuring an Hwi instance using TI RTOS configurator on code composer ,whenever i create a new instance it gives me an error that this ISR is already used,as shown in the attached screenshot, Can anyone advice me?

seeking your support.

Than you 

/Nada

  • Hi Nada,

    Can you attach your .cfg file? Also, what version of SYS/BIOS are you using?

    Todd

  • Hi Todd,

    Iam using SYS/BIOS version 6_73_01_01,

    I have attached the .cfg file.

    Nada

    mss_mmw.cfg

  • Nada,

    Can you edit the .cfg file as a text file and replace

    var hwi0Params = new Hwi.Params();
    hwi0Params.instance.name = "hwi0";
    hwi0Params.priority = 10;
    Program.global.hwi0 = Hwi.create(2, "&Gpt_Ch0Isr", hwi0Params);
    var hwi1Params = new Hwi.Params();
    hwi1Params.instance.name = "hwi1";
    hwi1Params.priority = 11;
    Program.global.hwi1 = Hwi.create(3, "&Gpt_Ch1Isr", hwi1Params);
    

    with this

    var hwi0Params = new ti_sysbios_family_arm_v7r_vim_Hwi.Params();
    hwi0Params.instance.name = "hwi0";
    hwi0Params.priority = 10;
    Program.global.hwi0 = ti_sysbios_family_arm_v7r_vim_Hwi.create(2, "&Gpt_Ch0Isr", hwi0Params);
    var hwi1Params = new ti_sysbios_family_arm_v7r_vim_Hwi.Params();
    hwi1Params.instance.name = "hwi1";
    hwi1Params.priority = 11;
    Program.global.hwi1 = ti_sysbios_family_arm_v7r_vim_Hwi.create(3, "&Gpt_Ch1Isr", hwi1Params);
    

    Save, do a clean and rebuild. 

    Todd

  • Hi Todd,

    I still get a similar error.

    What i am doing in my application is ,I configure timers using the Gpt MCAL module and i need to make the OS add the timer ISR to the interrupt vector table so that the ISR comes when an interrupt is triggered. That's why i am trying to define a Hardware Interrupt in the OS configurator with the same name as that of the Gpt ISR. 

    Hope this make my point more clear and easy to handle,Thanks. 

    Nada

      

  • There is another point iam not sure of it, can we configure more than one timer in the OS and more than one HWi instance?

    as it seems i cant configure two timers in the configurator.

  • Hi Nada,

    The error is saying that the interrupt number is already being used by something else. Try using some other interrupt numbers and see if that fixes the problem.

    -Kevin

  • Hi Kevin,

    I am getting this error for interrupt number 2 and 3 , How can i know where are they used? 

    I am configuring RTI timer to use 2 prescale counters using Gpt module, their interrupt numbers are 2 and 3 are for the RTI channel 0 and 1,

    this error doesnot make sense to me.

      Thank you 

    Nada

  • Like you said, the the RTI timers are using interrupt numbers 2 and 3.

    A full mapping of rti timers can be found in your bios installation under packages\ti\sysbios\timers\rti\doc-files\TimerTables.html.

    From your .cfg, It seems that you're making Hwi interrupts on the same interrupt number (2 and 3).

    If you want to keep interrupts 2 and 3 try setting the createHwi parameter to false when making your timers. it might look something like this...

    Timer_Params_init(&timerParams);
    ...
    timerParams.createHwi = FALSE;
    Timer_construct(&timer0, 0, NULL, &timerParams, &eb);

    the createHwi parameter determines whether or not the timer creates a Hwi and the default is set to true.

    -Kevin

  • Ok, That would be of great help,

    Thank You Kevin.

    Nada