I have just learned few days in TM4C123G. Then there is a hard problem for me. I started with TI's code example timers(for there are some problems when creating my own projects....) and tried to add some new functions.But when I use both ADC and GPIO modules the program always runs into the FaultISR and does an infinite loop.
I checked the Program Status Register (xPSR) register, it was 0x0100000 and seemed it was caused by a hard fault.
The ADC samples the temperature and the GPIOs are used for a small oled.
When I remove the whole ADC part of the program, it runs normally.
If I save the Initialization part of the ADC, the program can run under debug state but it can't run again by a Power-on reset.
Sorry for my poor English and I really need your help!