The MAX32660's printf() function does not work like a typical printf() function. The MAX32660 will not print any characters until it comes across a newline character, \n. Each time the printf() function is called, data is transferred to a transmit buffer. The newline character triggers a transmission. Because of this, it is recommended to include a newline character at the end of each print statement. Take a look at the examples below to see how this works:
Example 1:
printf("Hello World!\n");
This line of code will print: Hello World!
Example 2:
printf("Hello World!");
This line of code will print nothing.
Example 3:
printf("Hello\nWorld!");
This line of code will print: Hello