KEIL5 printf
时间: 2023-09-13 11:07:07 浏览: 106
在使用KEIL C51的printf函数进行格式输出时,可以按照以下步骤进行操作:
1. 在程序中的Define处输入DEBUG_ENABLE_SEMIHOST。
2. 在需要输出的地方添加printf("Hello World\n");语句。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [KEIL C51 printf格式化输出特殊用法](https://download.csdn.net/download/weixin_38643212/12682851)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [Keil5 调试使用printf输出](https://blog.csdn.net/zhc335134701/article/details/81261070)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [keil5 重定向printf函数到串口输出](https://blog.csdn.net/dingpan119/article/details/107717838)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文