I have read this post: 
Amit said "The driverlib.lib if compiled with the optimization option can create this issue. Please recompile the driverlib with optimization set to 0".
I am using TivaWare_C_Series-2.1.1.71 with Keil 5.13. Instead of adding driverlib.lib n project, I add individual peripheral files in code & then compile the entire code, which makes library files also to be compiled at higher optimization settings. Should I compile only at zero level?