RT-Thread - 笔记1:使用STM32F0 官方BSP跑起来
2017-02-09 22:45
375 查看
这里使用的板子是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.
原理图截取如下:
查看这个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.
相关文章推荐
- RT-Thread 串口DMA使用笔记--STM32F207
- 优先级反转实验,使用信号量实现【RT-Thread学习笔记 5】
- 优先级反转实验,使用信号量实现【RT-Thread学习笔记 5】
- 【RT-Thread学习笔记 5】优先级反转实验,使用信号量实现
- RT_Thread 学习笔记 之 Env使用环境安装
- RT-Thread Env工具的使用方法
- node.js学习笔记——学生信息管理的实现(把功能模块化)使用官方提供的http模块实现
- RT-Thread-学习笔记2 添加串口设备
- RT-Thread_manual 学习笔记(二)--线程调度与管理
- RT-Thread_manual 学习笔记(四)--任务间同步及通信
- RT-Thread_manual 学习笔记(五)--内存管理
- RT-Thread_manual 学习笔记(六)--I/O 设备管理
- RT-THREAD在IAR环境下使用finsh返回 Null node的解决办法
- RT-Thread LwIP的使用
- RabbitMQ官方文档使用指南阅读笔记
- 【RT-Thread学习笔记 1】熟悉RT-Thread的软硬件环境
- 【RT-Thread学习笔记 2】RT-Thread的线程(任务)处理
- 【RT-Thread学习笔记 3】线程优先级抢占实验
- 【RT-Thread学习笔记 4】线程让出实验
- 【RT-Thread学习笔记 6】RT-Thread下的串口驱动程序分析