|
|||||||||||
Technical Support Support Resources
Product Information |
µVISION DEBUGGER: PRINTF does not Print the Last CharacterInformation in this article applies to:
SYMPTOMSI have the following line of code in my program: printf("\nhello"); When I step through my code to the line after the printf and I examine the serial window I see: hell Why isn't it printing the last character? CAUSEThe debugger is accurately simulating the baudrate of the microcontroller. As you step through code you will have to step through several more lines before the required delay has elapsed and the final character has been completely transmitted. The number of lines depends on your code and the baudrate. RESOLUTIONYou can turn off accurate simulation of the serial port timing by setting VTREG S0TIME (for serial port 0) to 0. You can do this by typing the following into the Command window: S0TIME = 0 To turn it back on, set VTREG S0TIME to 1. Note:
Last Reviewed: Friday, January 8, 2021 | ||||||||||
|
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.