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

边栏推荐
- 【js】-【树】-学习笔记
- laravel 创建 service层
- Record the range of data that MySQL update will lock
- What kind of processor architecture is ARM architecture?
- laravel 验证器的使用
- 对抗训练理论分析:自适应步长快速对抗训练
- EMI的主要原因-工模电流
- Cases of addition, deletion, modification and search of C # learning for two years and C # import and export (de duplication)
- Financial management [1]
- Push markdown format information to the nailing robot
猜你喜欢

Tech Talk 活动回顾|云原生 DevOps 的 Kubernetes 技巧

01_SpingBoot 框架入门
Paddledtx v1.0 has been released, and its security and flexibility have been comprehensively improved!

Laravel pagoda security configuration
![[text data mining] Chinese named entity recognition: HMM model +bilstm_ CRF model (pytoch) [research and experimental analysis]](/img/8d/7e4bec3d8abaa647fca7462f127c40.png)
[text data mining] Chinese named entity recognition: HMM model +bilstm_ CRF model (pytoch) [research and experimental analysis]

【js】-【字符串-应用】- 学习笔记
![[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

【js】-【栈、队-应用】-学习笔记
随机推荐
The extra points and sharp tools are worthy of the trust | know that Chuangyu won the letter of thanks from the defense side of the attack and defense drill!
Selection (028) - what is the output of the following code?
golang convert map to json string
02_ Springboot starter case
Design and implementation of spark offline development framework
Listen to the markdown file and hot update next JS page
【js】-【数组应用】-学习笔记
Paddledtx v1.0 has been released, and its security and flexibility have been comprehensively improved!
【js】-【栈、队-应用】-学习笔记
记录一下MySql update会锁定哪些范围的数据
Concurrent shared model management
[laravel series 7.9] test
Laravel scheduled task
Research Report on research and investment prospects of China's container coating industry (2022 Edition)
Construction equipment [6]
03_ Spingboot core profile
Dig deep into MySQL - resolve the clustered index / secondary index / federated index of InnoDB storage engine
Selection (027) - what is the output of the following code?
监听 Markdown 文件并热更新 Next.js 页面
常用正则表达式