当前位置:网站首页>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 .

边栏推荐
- 并发之共享模型管程
- 02_SpingBoot 入门案例
- A big factory interview must ask: how to solve the problem of TCP reliable transmission? 8 pictures for you to learn in detail
- Research Report on research and investment prospects of China's container coating industry (2022 Edition)
- 慕思股份深交所上市:靠床垫和“洋老头”走红 市值224亿
- Construction equipment [4]
- laravel 消息队列
- Servlet
- Selection (025) - what is the output of the following code?
- Laravel study notes
猜你喜欢

Detailed explanation of online group chat and dating platform project (servlet implementation)
15 lines of code using mathematical formulas in wangeditor V5

Simulated 100 questions and online simulated examination of high voltage electrician examination in 2022

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

InnoDB, the storage engine of MySQL Architecture Principle_ Redo log and binlog

Some updates about a hand slider (6-18, JS reverse)

03_ Spingboot core profile

Record the range of data that MySQL update will lock

Super detailed cookie addition, deletion, modification and query

EPICS记录参考4--所有输入记录都有的字段和所有输出记录都有的字段
随机推荐
Concurrent shared model management
常用正则表达式
Financial management [1]
The large-scale market of graduate dormitory! Here comes the enviable graduate dormitory!
Building Survey [2]
Selection (027) - what is the output of the following code?
Dig deep into MySQL - resolve the difference between clustered and non clustered indexes
docker安装redis-简单而无坑
基本数据类型
Laravel 认证模块 auth
Sword finger offer 13 Range of motion of robot
伪原创智能改写api百度-收录良好
Laravel pagoda security configuration
Do you need to improve your code reading ability? It's a trick
03_SpingBoot 核心配置文件
How to submit the shopee opening and settlement flow?
Tech Talk 活动回顾|云原生 DevOps 的 Kubernetes 技巧
Selection (026) - what is the output of the following code?
[postgraduate entrance examination English] prepare for 2023, learn list8 words
372. 棋盘覆盖