It looks like printf "Hello World!\n" is only appending a Line Feed character (0x0A) and not appending a Carriage Return as well (0x0D) as expected. Has anyone else noticed this?
I believe it's a normal behavior of the standard library (on unix compatible environment). If you need to send both 0x0D and 0x0A, do it by "Hello World\r\n".
Terminal apps doesn't do anything for the strings. If you use TeraTerm, you can set the application that handles the 0x0A instead of 0x0D.
But it may be nice to have "\r\n" for string outputs for people who are using the terminal with default setting.
Let's enjoy mbed!
Important Information for this Arm website
This site uses cookies to store information on your computer.
By continuing to use our site, you consent to our cookies.
If you are not happy with the use of these cookies, please review our
Cookie Policy
to learn how they can be disabled.
By disabling cookies, some features of the site will not work.
Access Warning
You do not have the correct permissions to perform this operation.
It looks like printf "Hello World!\n" is only appending a Line Feed character (0x0A) and not appending a Carriage Return as well (0x0D) as expected. Has anyone else noticed this?