Other Parts Discussed in Thread: EK-TM4C123GXL, TM4C123GH6PM
- Using Windows 8 (compatibility for Win7) x64
- Using Code Composer Studio Version: 5.5.0.00077
- Using Tiva C LaunchPad EK-TM4C123GXL REV A
- Test Case/Diagnostic logs: 4670.6862.HFX219_archive.zip
Issue Summary:
The program structure is as follows: A hardware timer triggers the ADC to start a sequence of 8 samples. The ADC completion of 8 samples triggers an ADC processing interrupt. The TI-RTOS runs in the background. (The two interrupts are registered static HWIs.) When the ADC has completed 60 million samples [1MSPS*8 channels*60 seconds/(1 interrupt per 8 samples)], a semaphore triggers a task to turn the LED off. As configured, the LED should turn off after 2 minutes (timer only triggers ADC at 50% max speed). If the ADC were to run constantly then it would turn off after 1 minute.
The problem is that when I run the program in the debugger (even with no breakpoints), the ADCIntClear function only operates properly from the ADC initialization, but never from the interrupt handler. Because the interrupt flag stays on, the ADC fires immediately after exiting the ISR every time, and the LED turns off after 1 minute.
On the contrary, if after downloading the code to the device, I just reset the board and let it run the code itself, then the program works fine--the ADC only triggers at the rate of the hardware timer and the LED turns off after 2 minutes as the code dictates.
I have observed the same problem without TI-RTOS, so I don't think that it is the source of the problem. Also, I have observed the same problem on a Windows 7 machine, so I don't think Win8 is the problem.
Thanks!