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.

Program integrating UART receive function

I recently finished the Introduction to the TI-RTOS class and I'm trying to apply what I learned to incorporate a UART receive function into my program.

I'm using a TM4C1294XL (Connected Launchpad) with Code Composer Studio Version: 6.0.0.00190 and TI RTOS 2.00.01.23.

I pulled my original starter code from the "gpiointerrupt_TivaTM4C1294NCPDT" example in the tirtos_tivac_2_00_01_23_examples folder.  After integrating my GPIO interrupt changes, the software appeared to be working exactly as intended. 

More recently, I've been pulling in some code from the "uartecho_TivaTM4C1294NCPDT" example to add a UART receive function.  It is now compiling cleanly.  The first time I ran it, it performed perfectly, just as it did before I added the UART code.  I didn’t have anything attached to the UART pins, so I don’t know if it was actually communicating on the UART.  But at least the GPIO and EEPROM functions were still working well.

Then to see if the launchpad would still run on its own, I stopped CCS and pressed the launchpad's reset switch.  At that point, the launchpad's outputs were not active as normal.  So I restarted CCS, unplugged/plugged-in the launchpad, and started the debugger.  When I pressed the green-arrow start button in CCS, I immediately received some sort of HWI exception and the program terminated.  I tried this several times and it behaved the same.

Then with the launchpad still plugged in, I loaded and ran TI’s "uartecho_TivaTM4C1294NCPDT" example (the one I was pulling code from).  The launchpad started running and I didn’t get any errors.  Then I loaded my problematic software again and the launchpad worked fine until the point where I tried to run it stand-alone.

The pattern seems to be that once I unplug the launchpad so that it will run on it’s on (or exit CCS and press the launchpad’s reset button), the launchpad terminates on start-up and does not recover after repeated power cycles.  Then when I restart CCS and connect the launchpad, I continue to see the HWI exception and “Terminating execution…”  The only way I can reliably recover the launchpad is to load a different program.  Then when I reload my problematic program, the launchpad starts working fine again under the debugger with multiple debug exits and restarts.  Then it fails again at the point where I want to run the launchpad stand-alone without the debugger attached. 

I've attached my gpiointerrupt.c, EK-TM4C1294XLC.c, and gpiointerrupt.cfg file for info.  These are the only files changed with respect to TI's "gpiointerrupt" example.  I’ve commented out my code inside the UART_receive_task_Fxn in gpiointerrupt.c just to reduce UART problem exposure until I get this figured out.

6332.gpiointerrupt.c

2022.gpiointerrupt.cfg

4555.EK_TM4C1294XL.c

And here's an image of the error report.

Any ideas on what I'm doing wrong?  I’m having trouble figuring out this HWI exception that the compiler does not appear to detect.  Any help would be greatly appreciated!