Content originally posted in LPCWare by lpcxpresso-support on Fri Dec 18 08:44:32 MST 2015
__sys_write() should returns number of unwritten bytes if an error occurs, otherwise 0 for a successful output of data.
But your version is always returning the number of characters being passed in. Fixing this appears to solve the problem.
Regards,
LPCXpresso Support