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
USBD MSC - fs_ioc_get_id ("U0:") returns error
0
Keil MDK
USB
STM32
Cortex-M
Keil Middleware
160
views
1
reply
Latest
11 hours ago
by
Milorad Cvjetkovic
Not Answered
Declaring local variable causes L15 warnings, but only on optimization level 9
0
Keil C51 Dev Tools
36
views
0
replies
Started
15 hours ago
by
Niko O
Not Answered
Proper way to bit bang with KEIL
0
Microcontroller (MCU)
10569
views
18
replies
Latest
19 hours ago
by
coulte52
Suggested Answer
ULINKpro Problem with MDK 5.32
0
899
views
5
replies
Latest
1 day ago
by
Gunnar Bohlen
Answered
Driver CMSIS ESP32 and Network stack
0
RTX
wifi
Keil Middleware
CMSIS RTOS
360
views
2
replies
Latest
1 day ago
by
Guillaume Nicoud
<
>
View all questions in Keil forum