Content originally posted in LPCWare by robertpalmerjr on Fri Jul 11 09:04:24 MST 2014
I have recently loaded the CLEV663B examples (RC663-Classic, RC663-Polling) into LPCXpresso v7.1.1 and am seeing a bug in the semi hosting (__write() / __sys_write() ).
BUG - if the address of the string being sent to __write() / __sys_write() is ODD, it prints the string starting at the next EVEN address.
These examples, are older, and do not use the built in printf, instead they buffer the strings into a circular buffer and then call __write() / __sys_write() to actually print the data to the semi-hosting console.
If you load the RC663-Classic example and run it, the hex output will be garbled and a number of the other print strings will be missing the first character.