当前位置:网站首页>RT thread uses RT kprintf
RT thread uses RT kprintf
2022-06-24 23:16:00 【Struggling Xiaopeng】
One . brief introduction
be based on stm32 Hardware , Use rt-kprintf function .rtt It uses nano edition .
Welcome to WeChat official account. FPGA The journey
Two . Use
In this function , Finally, the output information is through the call rt_hw_console_output Functional 

And this function is a weak Empty function of type , You can add the output code directly here , Take the most common serial port as an example , Add the following code ok 了 .
/* empty console output */
rt_enter_critical();
while(*str != '\0')
{
HAL_UART_Transmit(&UART1_Handler,(uint8_t *)(str++),1,1000);
}
rt_exit_critical();
If you want to see the output RT Version information for , There is one thing to note , That's initialization usart The position of cannot be placed in main Function , Have to move .
Move to this position , It outputs version information first , Then we can get to main Execute in function , This is the time ,usart It's not initialized yet , So there will be no information output .Cache_Enable The function is stm32H7 Some of the types .

边栏推荐
- 2022 safety officer-a certificate examination questions and answers
- golang map clear
- 372. 棋盘覆盖
- Servlet
- Laravel study notes
- Tech Talk 活动回顾|云原生 DevOps 的 Kubernetes 技巧
- Blogs personal blog test point (manual test)
- vulnhub DC: 2
- Second IPO of Huafang group: grown up in Zanthoxylum bungeanum, trapped in Zanthoxylum bungeanum
- How to add Google maps to a project
猜你喜欢

对抗训练理论分析:自适应步长快速对抗训练

07_ Springboot for restful style

2022 safety officer-b certificate examination question bank and answers
![[ROS play with turtle turtle]](/img/94/4d1063f063d115aeef5cdf099278f8.png)
[ROS play with turtle turtle]

Dig deep into MySQL - resolve the clustered index / secondary index / federated index of InnoDB storage engine
![[postgraduate entrance examination English] prepare for 2023, learn list9 words](/img/2d/9ff691c9ff50fba2df73f726db26f2.jpg)
[postgraduate entrance examination English] prepare for 2023, learn list9 words

Push markdown format information to the nailing robot

Cases of addition, deletion, modification and search of C # learning for two years and C # import and export (de duplication)

JD 618 conference tablet ranking list announced that the new dark horse brand staff will compete for the top three, learning from Huawei, the leader of domestic products

Super detailed cookie addition, deletion, modification and query
随机推荐
Écoutez le fichier markdown et mettez à jour Hot next. Page JS
docker安装redis-简单而无坑
Second IPO of Huafang group: grown up in Zanthoxylum bungeanum, trapped in Zanthoxylum bungeanum
Docker installation MySQL simple without pit
宁德时代定增450亿:高瓴认购30亿 曾毓群仍控制23%股权
文件包含漏洞问题
Do you need to improve your code reading ability? It's a trick
Research and investment strategy report on China's bridge anticorrosive coating industry (2022 Edition)
QT to place the form in the lower right corner of the desktop
Force deduction solution summary 515- find the maximum value in each tree row
02_ Springboot starter case
【nvm】
laravel 验证器的使用
Research Report on market evaluation and investment direction of Chinese dermatology drugs (2022 Edition)
去处电脑桌面小箭头
Building Survey [3]
378. 骑士放置
【js】-【數組、棧、隊列、鏈錶基礎】-筆記
golang convert json string to map
2022 simulated 100 questions and simulated examination of high-altitude installation, maintenance and demolition