Hi,
I'm currently working my way the though this launch pad workshop and I have reached an impasse. I have had no problems getting the other examples working on my board. But Lab5, which is to do with ADC12, doesn't seem to want to play ball. It compiles ok, but goes straight into the FaultISR loop when I try to run it.
This is the two lines of code where the problem occurs:
SysCtlPeripheralEnable(SYSCTL_PERIPH_ADC0); <------ this part works ok, the ADC is enabled
SysCtlADCSpeedSet(SYSCTL_ADCSPEED_250KSPS); <----this part, for some unknown reason, appears to be disabling the ADC! I have no idea why!
The next step addresses the ADC, which isn't enabled anymore, so a Hard fault is created. But why is the ADC being disabled???
Has anyone else came across this?
Any help is much appreciated.
Thanks,
Crawford.