RT-Thread - 笔记1:使用STM32F0 官方BSP跑起来


这里使用的板子是vcc-gnd出品的小开发板,板子外形是


原理图截取如下:








查看这个debug串口,发现没有命令可用(按tab键)

msh >
RT-Thread shell commands:

打开rtconfig.h,把以下两行去掉注释即可

#define FINSH_USING_SYMTAB
#define FINSH_USING_DESCRIPTION

debug串口中,重新按tab键



msh >
RT-Thread shell commands:
version          - show RT-Thread version information
list_thread      - list thread
list_sem         - list semaphore in system
list_timer       - list timer in system
list_device      - list device in system
ps               - List threads in the system.
time             - Execute command with time.
free             - Show the memory usage in the system.
help             - RT-Thread shell help.

其中几个使用如下



msh >list_device
device   type                 ref count
-------- -------------------- ----------
uart2    Character Device     1       
uart1    Character Device     2       
msh >list_thread
 thread  pri  status      sp     stack size max used   left tick  error
-------- ---- ------- ---------- ---------- ---------- ---------- ---
wifi     0x14 suspend 0x00000084 0x00000100 0x0000009c 0x00000014 000
led      0x14 suspend 0x0000007c 0x00000100 0x0000007c 0x00000014 000
tshell   0x19 ready   0x0000008c 0x00000400 0x00000190 0x00000008 000
tidle    0x1f ready   0x00000050 0x00000100 0x00000050 0x0000001b 000
msh >ps
 thread  pri  status      sp     stack size max used   left tick  error
-------- ---- ------- ---------- ---------- ---------- ---------- ---
wifi     0x14 suspend 0x00000084 0x00000100 0x0000009c 0x00000014 000
led      0x14 suspend 0x0000007c 0x00000100 0x0000007c 0x00000014 000
tshell   0x19 ready   0x0000008c 0x00000400 0x00000190 0x00000004 000
tidle    0x1f ready   0x00000040 0x00000100 0x00000050 0x00000012 000
msh >list_sem
semaphore v   suspend thread
--------  --- --------------
shrx      000 0
heap      001 0
msh >time
msh >help
RT-Thread shell commands:
version          - show RT-Thread version information
list_thread      - list thread
list_sem         - list semaphore in system
list_timer       - list timer in system
list_device      - list device in system
ps               - List threads in the system.
time             - Execute command with time.
free             - Show the memory usage in the system.
help             - RT-Thread shell help.

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值