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.

SysCtlClockGet() go to IntDefaultHandler

there is a problem appears  in Debugging the project for the first time :
  it went to IntDefaultHandler when Calling SysCtlClockGet() 
and if reset the debugger , it was ok.

so what is the problem ?

I tried :

SysCtlClockSet(SYSCTL_SYSDIV_4|SYSCTL_USE_PLL|SYSCTL_OSC_MAIN|SYSCTL_XTAL_16MHZ);

and 

SysCtlClockSet(SYSCTL_SYSDIV_5|SYSCTL_USE_PLL|SYSCTL_OSC_MAIN|SYSCTL_XTAL_16MHZ);

  • Hello Ibrahim,

    Some additional information would be helpful. The following information would be helpful in looking into your issue:

    - what board/device are you using?
    - what compiler are you using?
    - what debugger are you using?
    - what version of TivaWare are you using?

    Having the necessary information about your use case is always beneficial to allowing us to provide a useful answer.

    With that said, when you are getting ready to debug your project for the first time, can you do a debug reset to insure the program counter is at the reset vector or, at least, the beginning of main when you start execution of your code? Perhaps there is some initialization that is being skipped if everything is not starting from the beginning of the executable code.