当前位置:网站首页>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】-【链表-应用】-学习笔记
- 23研考生注意啦!备考期间最容易中招的骗局,居然是它们?!
- laravel学习笔记
- [postgraduate entrance examination English] prepare for 2023, learn list9 words
- laravel 宝塔安全配置
- EMI的主要原因-工模电流
- The large-scale market of graduate dormitory! Here comes the enviable graduate dormitory!
- golang convert map to json string
- [postgraduate entrance examination English] prepare for 2023, learn list8 words
- Tech talk activity review kubernetes skills of cloud native Devops
猜你喜欢

Blogs personal blog test point (manual test)

EPICS记录参考4--所有输入记录都有的字段和所有输出记录都有的字段

关于某手滑块的一些更新(6-18,js逆向)

Tech talk activity review kubernetes skills of cloud native Devops

03_ Spingboot core profile

Theoretical analysis of countermeasure training: adaptive step size fast countermeasure training

研究生宿舍大盘点!令人羡慕的研究生宿舍来了!

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!

Case analysis: using "measurement" to improve enterprise R & D efficiency | ones talk

第六章 网络学习相关技巧5(超参数验证)
随机推荐
Financial management [3]
Blogs personal blog test point (manual test)
Epics record reference 4 -- fields for all input records and fields for all output records
Theoretical analysis of countermeasure training: adaptive step size fast countermeasure training
Gocolly manual
2022 simulated 100 questions and simulated examination of high-altitude installation, maintenance and demolition
Construction equipment [5]
【基础知识】~ 半加器 & 全加器
Listen to the markdown file and hot update next JS page
推送Markdown格式信息到釘釘機器人
Laravel message queue
Mycms we media CMS V3.0, resource push optimization, new free template
F29oc analysis
Selection (026) - what is the output of the following code?
RT-thread使用rt-kprintf
[ROS play with turtle turtle]
Notes for laravel model
Second IPO of Huafang group: grown up in Zanthoxylum bungeanum, trapped in Zanthoxylum bungeanum
Pousser l'information au format markdown vers le robot nail
Laravel authentication module auth