Other Parts Discussed in Thread: EK-TM4C1294XL
Hi there,
I'm using TI-RTOS 2.16.0.08 + XDCtools 3.32.2.25_core with CCS9.1/9.2 to do development on the lauchpad EK-TM4C1294XL.
I'm having issue with the setting priority of 3 Hardware Interrupts. The following is the section where I dynamically setting up the HWI interrupts
I attempt to set interrupt number for event1 and event3 to 2 and interrupt number for event2 to 3 but got aborted during run time.
If I have the priority number to -1 for all of the 3 interrupts, then things work fine but not to what I intented for my aplicaction.
Hwi_Params hwiEvent1Params;
Hwi_Params_init(&hwiEvent1Params);
hwiEvent1Params.arg = 0;
hwiEvent1Params.priority = 2; //priority 2.
hwi_event1 = Hwi_create(21, (Hwi_FuncPtr)Event1_ISR, &hwiEvent1Params,NULL); //use number in the vector number column from datasheet
Hwi_Params hwiEvent2Params;
Hwi_Params_init(&hwiEvent2Params);
hwiEvent2Params.arg = 0;
hwiEvent2Params.priority = 3; //priority: higher than Event1 and Event3. .
hwi_event2 = Hwi_create(68, (Hwi_FuncPtr)Event2_ISR, &hwiEvent2Params,NULL); //K3
Hwi_Params hwiEvent3Params;
Hwi_Params_init(&hwiEvent3Params);
hwiEvent3Params.arg = 0;
hwiEvent3Params.priority = 2; //priority setting: lower than Event2. .
hwi_event3 = Hwi_create(95, (Hwi_FuncPtr)Event3_ISR, &hwiEvent3Params,NULL);
I also tried to setup the interrupts using the GUI, but got the same issue: that is I can't set to a different priority number other than -1.
Please tell me what I could have done wrong here.
Thanks in advance.
-CD