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.

TM4C123GH6PZ: 我用keil编译他这个程序,使用自己写的串口打印程序,发现打印浮点数据会进入硬件中断

Part Number: TM4C123GH6PZ

void UART_printf(uint32_t baseAddress, const char *format,...)
{
	uint32_t length;
	va_list args;
	uint32_t i;
	char TxBuffer[128] = {0};

	va_start(args, format);
	length = vsnprintf((char*)TxBuffer, sizeof(TxBuffer), (char*)format, args);
	va_end(args);

	for(i = 0; i < length; i++)
	{
		 while(UARTBusy(baseAddress));
		 UARTCharPut(baseAddress,TxBuffer[i]);
	}
}