Content originally posted in LPCWare by pnhnkvr on Sun Nov 29 09:09:25 MST 2015
Hey,
First of all you do not set the SysTick priority to highest with (1<<__NVIC_PRIO_BITS) - 1, actually you get the lowest priority with that.
Secondly I hope you do not use printf() from ISR (at least if it takes long, i.e. if baud rate is slow or string is long). In any case it will take some time to execute the printf -function because the UART transmission does not use interrupts, i.e. the cpu must wait until the whole string is send.
Without the your code it's difficult to say where you lose the time.