Hi Team,
There's an issue from the customer need your help:
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]); } }
stuck at here:
send integer is ok but float will stuck, my program is that if the serial port receives the character a, then the timer interrupt interval is sent to the computer in the form of floating point data. If floating-point data is sent, it will be stuck in the FaultIsR interrupt after a few times. But if I process the timer interrupt interval into integer data and send it to the computer in the form of integer data, there will be no problem.
opened FPU but still will stuck.
Could you help check this case?
Thanks & Regards,
Ben