Arm Community
Site
Search
User
Site
Search
User
Groups
Arm Research
DesignStart
Education Hub
Graphics and Gaming
High Performance Computing
Innovation
Multimedia
Open Source Software and Platforms
Physical
Processors
Security
System
Software Tools
TrustZone for Armv8-M
中文社区
Blog
Announcements
Artificial Intelligence
Automotive
Healthcare
HPC
Infrastructure
Innovation
Internet of Things
Machine Learning
Mobile
Smart Homes
Wearables
Forums
All developer forums
IP Product forums
Tool & Software forums
Pelion IoT Platform
Support
Open a support case
Documentation
Downloads
Training
Arm Approved program
Arm Design Reviews
Community Help
More
Cancel
Developer Community
Tools and Software
Software Tools
Jump...
Cancel
Software Tools
Keil forum
Problem with printf()
Tools, Software and IDEs blog
Forums
Videos & Files
Help
Jump...
Cancel
New
State
Not Answered
Replies
2 replies
Subscribers
2 subscribers
Views
1103 views
Users
0 members are here
Microcontroller (MCU)
Related
Problem with printf()
Offline
Thomas Yang
over 17 years ago
Hi,
when I use
printf("12345");
on the
serial window #1
, I can only see
1234
so I wonder
(1)
where is the character '5',
(2)
why only "1234" is printed.
(3)
Has '5' already been sent by serial port while not shown on the
serial window #1
If I add
'\n'
to the
pritf()
, I mean to use
prinf("12345\n")
, then I could see the
"12345"
on the
serial window #1
. Why?
(4)
Does it also mean that the character '\n' is not printed!
(5)
Does it mean that if we use printf() to print something, the last one character is always omitted?
Thanks for your help!
More questions in this forum
By title
By date
By reply count
By view count
By most asked
By votes
By quality
Descending
Ascending
All recent questions
Unread questions
Questions you've participated in
Questions you've asked
Unanswered questions
Answered questions
Questions with suggested answers
Questions with no replies
Not Answered
identifier undefined in rtx_lib. how to resolve this?
0
Real Time Operating Systems (RTOS)
Keil MDK
RTX
Keil
122
views
0
replies
Started
1 day ago
by
deepthia
Not Answered
fopen in simulation
0
Keil
uVision
Cortex-M4
130
views
0
replies
Started
2 days ago
by
AFR
Not Answered
Keil MDK 5.32 - project setting "Operating System" not saved
0
555
views
5
replies
Latest
2 days ago
by
Chad Clendening
Not Answered
Custom HTTP Header Content-type
0
Keil MDK Cortex-M Edition
STM32 F7
63
views
0
replies
Started
2 days ago
by
Fanny Prina
Not Answered
Examples and MAC driver for using ethernet LAN SPI MAC?
0
72
views
0
replies
Started
4 days ago
by
Hans Berger
<
>
View all questions in Keil forum