Using LPCExpresso I was able to use this code to print directly to the console:
#define LIBSTUB_SYS_WRITE __write
But using MCUExpresso it cannot compile because __write seems undefined?
Normally this is caused when you disable semihosting, but its enabled now, so how to upgrade my code?