I have shared the code for the problem I am facing can anyone please take a look at it and tell me where I am going wrong
/* Code snippet starts here */
SoundPlay()
{
//
// Mark both buffers as empty.
//
g_ulFlags = BUFFER_BOTTOM_EMPTY | BUFFER_TOP_EMPTY;
//
// Indicate that the application is about to start playing.
//
g_ulFlags |= BUFFER_PLAYING;
//
// Set the period which the SysTick will trigger the SysTickIntHandler().
// For higher sampling frequencies, a more periodic interrupt is required.
// Ex: /100 will suffice for 11.025kHz Fs
// /1000 will suffice for 44.100kHz Fs
//
SysTickPeriodSet(SysCtlClockGet()/1000);
SysTickIntEnable();
SysTickEnable();
IntMasterEnable();
}
/* Code snippet ends here */
The problem I am facing is that after IntMasterEnable() I end up at the IntDefaultHandler as mentioned below. I searched and got to know that this is supposed to help me debug my issue but I don't know how.
/* Code Snippet starts here*/
IntDefaultHandler
B IntDefaultHandler
/* Code snippet ends here */
/* Code Snippet starts here*/
tBoolean
IntMasterEnable(void)
{
//
// Enable processor interrupts.
//
return(CPUcpsie());
}
CPUcpsie(void)
{
//
// Read PRIMASK and enable interrupts.
//
mrs r0, PRIMASK;
cpsie i;
bx lr
}
/* Code snippet ends here */
Another point to note is that SysTickIntHandler() is not defined anywhere. Neither in the static libraries (that come with the firmware package) nor anywhere in my code. SysTickIntEnable() will enable the interrupt for SysTick while SysTickEnable() will just start the SysTick counter I presume. Is my program crashing since I don't have a SysTickIntHandler() or will this interrupt be handled by SysTickHandler().
FYI I am running this application via Keil MDK.
Any pointers to the above would be much appreciated.
Thanks in advance.