μC/Probe

1、添加文件

2、配置probe_com_cfg.h

2.1、选择接口

#define  PROBE_COM_CFG_RS232_EN                    DEF_ENABLED  /* Configure RS-232 communication availability.         */
#define PROBE_COM_CFG_TCPIP_EN DEF_DISABLED /* Configure TCP/IP communication availability. */
#define PROBE_COM_CFG_USB_EN DEF_DISABLED /* Configure USB communication availability. */

这里只选择RS232

2.2、通用设置

#define  PROBE_RS232_CFG_RX_BUF_SIZE  PROBE_COM_CFG_RX_MAX_SIZE
#define PROBE_RS232_CFG_TX_BUF_SIZE PROBE_COM_CFG_TX_MAX_SIZE #define PROBE_RS232_CFG_PARSE_TASK_EN DEF_ENABLED
#define PROBE_RS232_CFG_TASK_PRIO 10
#define PROBE_RS232_CFG_TASK_STK_SIZE 128 #define PROBE_RS232_UART_0 1
#define PROBE_RS232_UART_1 2
#define PROBE_RS232_UART_2 3
#define PROBE_RS232_UART_3 4
#define PROBE_RS232_UART_4 5
#define PROBE_RS232_UART_5 6
#define PROBE_RS232_UART_6 7
#define PROBE_RS232_UART_7 8
#define PROBE_RS232_UART_8 9
#define PROBE_RS232_UART_9 10
#define PROBE_RS232_UART_DBG 63
#define PROBE_RS232_CFG_COMM_SEL PROBE_RS232_UART_2

保持默认值

2.3、RS232设置

#define  PROBE_RS232_CFG_RX_BUF_SIZE  PROBE_COM_CFG_RX_MAX_SIZE
#define PROBE_RS232_CFG_TX_BUF_SIZE PROBE_COM_CFG_TX_MAX_SIZE #define PROBE_RS232_CFG_PARSE_TASK_EN DEF_ENABLED
#define PROBE_RS232_CFG_TASK_PRIO 20
#define PROBE_RS232_CFG_TASK_STK_SIZE 128 #define PROBE_RS232_UART_0 1
#define PROBE_RS232_UART_1 2
#define PROBE_RS232_UART_2 3
#define PROBE_RS232_UART_3 4
#define PROBE_RS232_UART_4 5
#define PROBE_RS232_UART_5 6
#define PROBE_RS232_UART_6 7
#define PROBE_RS232_UART_7 8
#define PROBE_RS232_UART_8 9
#define PROBE_RS232_UART_9 10
#define PROBE_RS232_UART_DBG 63
#define PROBE_RS232_CFG_COMM_SEL PROBE_RS232_UART_4

将任务优先级改为20,串口选用PROBE_RS232_UART_4

这里PROBE_RS232_CFG_PARSE_TASK_EN用于设置是否创建ParseTsk,如果禁用,则使用中断的方式。

3、移植μC/Probe

3.1、probe_rs232c.c文件

由于官方给的代码只能初始化UART1~UART3,我们需要自己写UART的初始化,ISR等函数。

3.2、probe_rs232.c文件

第129行应将#define PROBE_RS232_CHKSUM_EN设为DISABLE,因为我们使用的μC/Probe的windows程序版本低。

4、编译程序

完善app程序,编译并生成ELF文件。

注意:μC/Probe只能观察全局变量,所以切记想要观察的对象都要设置成全局变量。

5、μC/Probe Windows程序

  • 打开μC/Probe,在symbol栏里面导入上一步生成的ELF文件,这样symbol栏里就会出现所有的全局变量。除了ELF文件,还可以选择加载μC/Probe提供的主流主控(如STM32)的映射文件,这样我们还可以观察MCU的外设寄存器。
  • 设计dashboard,将所有想要观察的symbol结合提供的控件,都添加到dashboard中。如果项目使用了μC/OS III或μC/OS II 或μC/TCPIP,还可以添加专用的dashboard。
  • setting里面设置好通信接口。这里我们使用RS232接口,波特率115200.
  • 先运行嵌入式程序,然后打开μC/Probe开始按钮。

6、使用感受

界面很棒,使用方式也很方便。但是由于我使用的是RS232接口,带宽很低,dashboard刷新速度特别慢(μC/OS III需要10~15s),提供的chart绘图也慢的不能忍受。下次换用Jlink或者USB再试一试。

最新文章

  1. mac系统及xcode使用的SVN客户端安装升级
  2. C#多文档程序中如何只打开一个子窗口
  3. wireshark过滤语法总结
  4. MyEclipse 关闭鼠标悬停提示
  5. Unity多线程(Thread)和主线程(MainThread)交互使用类——Loom工具分享
  6. [Sublime Text] How to Install Sublime Text on Ubuntu
  7. jQuery 禁用退格键
  8. UIView之基础控件综合事例
  9. Got a packet bigger than 'max_allowed_packet' bytes With statement Mysql终端数据同步不成功解决办法
  10. Cocos2d-x 3.1.1 学习日志14--CocosStudio学习必看
  11. 判定生死的心跳机制 --ESFramework 4.0 快速上手(07)
  12. python编程基础知识—字典
  13. 11. 配置ZooKeeper ensemble
  14. Algorithm --> 求阶乘末尾0的个数
  15. jquery传值与判断
  16. C++ STL标准容器插入删除算法的复杂度
  17. 使用grep排除空行和注释行
  18. D8 双连通分量
  19. [Err] 1418 - This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creator【s
  20. 11月15Sprint计划会议及内容·

热门文章

  1. JAVA 创建文件和文件夹,删除文件和文件夹的实用工具
  2. redis特性,使用场景
  3. javaWeb 字体替换过滤器
  4. 移动应用调试之Inspect远程调试
  5. 基于vue的实战步骤
  6. Xenserver7.6修改root密码
  7. OO课程中IDEA相关插件的使用
  8. error: checker javascript/jshint: can’t parse version string (abnormal termination?)”
  9. cocos2d-x3.17 整体概述
  10. Shell 变量替换及测试