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.

Program comes into IntDefaultHandler when SysCltPheripheral function is called

Hi! I have a problem that when I call SysCltPheripheral function to config my UART0, the program come into IntDefaultHandler, please help me to debbug this issue. Here is my code:

void ConfigUART()
{
	SysCtlPeripheralEnable(SYSCTL_PERIPH_UART0);
	while(!(SysCtlPeripheralReady(SYSCTL_PERIPH_UART0)));
	SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOA);

	GPIOPinConfigure(GPIO_PA0_U0RX);
	GPIOPinConfigure(GPIO_PA1_U0TX);
	GPIOPinTypeUART(GPIO_PORTA_BASE, GPIO_PIN_0|GPIO_PIN_1);
	UARTStdioConfig(0, 115200, SysCtlClockGet());
	UARTEnable(UART0_BASE);
}

int main(void)
{
	ROM_SysCtlClockSet(SYSCTL_SYSDIV_2_5 | SYSCTL_USE_PLL | SYSCTL_OSC_MAIN | SYSCTL_XTAL_16MHZ);//80MHz
	ConfigI2C();
	ConfigTimer();
	ConfigUART();
	SetAccelerometerScale(BITS_FS_16G);
	SetGyroScale(BITS_FS_2000DPS);
	AK8963SensitivityAdjusment();
	bool readID = ConfigMPU9250();
	if(readID)
	{
		UARTprintf("G_x\tG_y\tG_z\tA_x\tA_y\tA_z\tM_x\tM_y\tM_z\t");
		while(1)
		{
			ReadGyro();
			ReadAccelerometer();
			readMagnetometer();
			UARTprintf("%10.3f\t%10.3f\t%10.3f\t%10.3f\t%10.3f\t%10.3f\t%10.3f\t%10.3f\t%10.3f\n",
					gyroscopeData[0],gyroscopeData[1],gyroscopeData[2],
					accelerometerData[0],accelerometerData[1],accelerometerData[2],
					magnetometerData[0],magnetometerData[1],magnetometerData[2]);
		}
	}
	else
		UARTprintf("Test fail!!!");
}