[quote user="Robbie Valentine"]
When I comment out the
SysCtlDelay(1);
instruction and immediately hit the for loop after the GetRDAC() function CCS shows 0 for rdac in the watch window. When I have the delay in i get the valid value as expected.
[/quote]
I suspect this has more to do with the device/hardware rather than the tools, and that the SysCtlDelay, for some reason, is required before the variable gets udpated to the correct value. If you step through the assembly code in CCS it might give you a better understanding of exactly which instruction is updating the value of the variable and where in the sequence of code that is happening.
As to why the SysCtlDelay is required (if that is really the case) I think the folks in the TivaWare forum would be in a better position to answer that.