walnutcy

ltProbe 实时监测单片机里软件的变量 (原创)

0
阅读(2153)

附件.rar

ltProbe,缘由:由于uC/Probe收费太高,就抽空做了个工具来兼容他的协议,我的目标是在freertos上也实现类似的协议,这个工具是为监测freertos准备的。

使用说明:首先打开ELF文件,要与你的工程对应生成(用以得到变量列表),然后选择串口并连接,这时双击(3)列表中的变量即可在(4)中看到当前该变量的值。使用说明不多讲,下载后用用就知道了。

目前使用ucos网上提供的STM32上的移植软件已经OK,想要移植到别的芯片上也OK,前提是提供ELF文件,并实现下位机的协议。

目前只支持了Simple Read 协议,

--------------------------------------------------
++++++++++++++++0x0002 ---Simple Read ++++++++++++
--------------------------------------------------
(1) The RX format:
   (A) A 2-byte format , indicating the data segment format;
    (B) A 2-byte length , indicating the number of bytes to read;
    (C) A 4-byte address, the starting address of the data to read.
        +-------------------------+-------------------------+
          |          Format         |     Number of bytes     |
          +-------------------------+-------------------------+
          |                      Address                      |
          +-------------------------+-------------------------+
(2) The TX format:
   (A) A 2-byte format, indicating the data segment format;
    (B) A 1-byte status, indicating the status after the request;
    (C) A 1-byte modifier;
    (D) The memory data.
        +-------------------------+------------+------------+
          |          Format         |   Status   |  Modifier  |
          +-------------------------+------------+------------+
          |                        Data                       |
          |                         .                         |
          |                         .                         |
          |                         .                         |
          +---------------------------------------------------+