📄 probe_com.lst
字号:
##############################################################################
# #
# IAR ARM ANSI C/C++ Compiler V4.42A/W32 KICKSTART 26/Dec/2008 18:22:04 #
# Copyright 1999-2005 IAR Systems. All rights reserved. #
# #
# Cpu mode = thumb #
# Endian = little #
# Stack alignment = 4 #
# Source file = F:\PROJECT\STM32_UCOSII\uC-Probe\Target\Communicatio #
# n\Generic\Source\probe_com.c #
# Command line = F:\PROJECT\STM32_UCOSII\uC-Probe\Target\Communicatio #
# n\Generic\Source\probe_com.c -lCN #
# F:\PROJECT\STM32_UCOSII\EvalBoards\ST\STM3210E-EVAL\ #
# IAR\OS-Probe\Flash\List\ -o #
# F:\PROJECT\STM32_UCOSII\EvalBoards\ST\STM3210E-EVAL\ #
# IAR\OS-Probe\Flash\Obj\ -z6 --no_unroll --no_inline #
# --no_tbaa --no_scheduling --debug --cpu_mode thumb #
# --endian little --cpu cortex-M3 --stack_align 4 -e #
# --fpu None --dlib_config "E:\Program Files\IAR #
# Systems\Embedded Workbench 4.0 #
# Kickstart\arm\LIB\dl7mptnnl8n.h" -I #
# F:\PROJECT\STM32_UCOSII\EvalBoards\ST\STM3210E-EVAL\ #
# IAR\OS-Probe\ -I F:\PROJECT\STM32_UCOSII\EvalBoards\ #
# ST\STM3210E-EVAL\IAR\OS-Probe\..\BSP\ -I #
# F:\PROJECT\STM32_UCOSII\EvalBoards\ST\STM3210E-EVAL\ #
# IAR\OS-Probe\..\..\..\..\..\CPU\ST\STM32\inc\ -I #
# F:\PROJECT\STM32_UCOSII\EvalBoards\ST\STM3210E-EVAL\ #
# IAR\OS-Probe\..\..\..\..\..\uC-CPU\ -I #
# F:\PROJECT\STM32_UCOSII\EvalBoards\ST\STM3210E-EVAL\ #
# IAR\OS-Probe\..\..\..\..\..\uC-CPU\ARM-Cortex-M3\IAR #
# \ -I F:\PROJECT\STM32_UCOSII\EvalBoards\ST\STM3210E- #
# EVAL\IAR\OS-Probe\..\..\..\..\..\uC-LCD\Source\ -I #
# F:\PROJECT\STM32_UCOSII\EvalBoards\ST\STM3210E-EVAL\ #
# IAR\OS-Probe\..\..\..\..\..\uC-LIB\ -I #
# F:\PROJECT\STM32_UCOSII\EvalBoards\ST\STM3210E-EVAL\ #
# IAR\OS-Probe\..\..\..\..\..\uCOS-II\Ports\ARM-Cortex #
# -M3\Generic\IAR\ -I F:\PROJECT\STM32_UCOSII\EvalBoar #
# ds\ST\STM3210E-EVAL\IAR\OS-Probe\..\..\..\..\..\uCOS #
# -II\Source\ -I F:\PROJECT\STM32_UCOSII\EvalBoards\ST #
# \STM3210E-EVAL\IAR\OS-Probe\..\..\..\..\..\uC-Probe\ #
# Target\Communication\Generic\RS-232\Source\ -I #
# F:\PROJECT\STM32_UCOSII\EvalBoards\ST\STM3210E-EVAL\ #
# IAR\OS-Probe\..\..\..\..\..\uC-Probe\Target\Communic #
# ation\Generic\RS-232\Ports\ST\STM32\ -I #
# F:\PROJECT\STM32_UCOSII\EvalBoards\ST\STM3210E-EVAL\ #
# IAR\OS-Probe\..\..\..\..\..\uC-Probe\Target\Communic #
# ation\Generic\Source\ -I F:\PROJECT\STM32_UCOSII\Eva #
# lBoards\ST\STM3210E-EVAL\IAR\OS-Probe\..\..\..\..\.. #
# \uC-Probe\Target\Plugins\uCOS-II\ -I "E:\Program #
# Files\IAR Systems\Embedded Workbench 4.0 #
# Kickstart\arm\INC\" #
# List file = F:\PROJECT\STM32_UCOSII\EvalBoards\ST\STM3210E-EVAL\ #
# IAR\OS-Probe\Flash\List\probe_com.lst #
# Object file = F:\PROJECT\STM32_UCOSII\EvalBoards\ST\STM3210E-EVAL\ #
# IAR\OS-Probe\Flash\Obj\probe_com.r79 #
# #
# #
##############################################################################
F:\PROJECT\STM32_UCOSII\uC-Probe\Target\Communication\Generic\Source\probe_com.c
1 /*
2 *********************************************************************************************************
3 * uC/Probe Communication
4 *
5 * (c) Copyright 2007; Micrium, Inc.; Weston, FL
6 *
7 * All rights reserved. Protected by international copyright laws.
8 * Knowledge of the source code may NOT be used to develop a similar product.
9 * Please help us continue to provide the Embedded community with the finest
10 * software available. Your honesty is greatly appreciated.
11 *********************************************************************************************************
12 */
13
14 /*
15 *********************************************************************************************************
16 *
17 * uC/Probe
18 *
19 * Communication: Generic
20 *
21 * Filename : probe_com.c
22 * Version : V2.00
23 * Programmer(s) : BAN
24 * Note(s) : (1) This file contains code to respond to generic (non protocol-dependent)
25 * commands received by the target.
26 *********************************************************************************************************
27 */
28
29 /*
30 *********************************************************************************************************
31 * INCLUDE FILES
32 *********************************************************************************************************
33 */
34
35 #define PROBE_COM_MODULE
36 #include <probe_com.h>
\ In segment DATA_Z, align 4, align-sorted
\ CPU_INT32U __data ProbeCom_RxPktCtr
\ ProbeCom_RxPktCtr:
\ 00000000 DS8 4
\ CPU_INT32U __data ProbeCom_TxPktCtr
\ ProbeCom_TxPktCtr:
\ 00000004 DS8 4
\ CPU_INT32U __data ProbeCom_TxSymCtr
\ ProbeCom_TxSymCtr:
\ 00000008 DS8 4
\ CPU_INT32U __data ProbeCom_TxSymByteCtr
\ ProbeCom_TxSymByteCtr:
\ 0000000C DS8 4
\ CPU_INT32U __data ProbeCom_ErrPktCtr
\ ProbeCom_ErrPktCtr:
\ 00000010 DS8 4
\ 00000014 DS8 4
\ 00000018 DS8 4
37
38
39 /*
40 *********************************************************************************************************
41 * LOCAL DEFINES
42 *********************************************************************************************************
43 */
44
45 /*
46 *********************************************************************************************************
47 * DATA FORMATS
48 *
49 * Note(s): (1) The first word in all TX data segments is identical:
50 *
51 * (A) A 2-byte format;
52 * (B) A 1-byte status;
53 * (C) A 1-byte modifier, currently unused.
54 *
55 *
56 * (2) The first two bytes in all RX data segments is identical:
57 * (A) A 2-byte format;
58 *
59 * (3) The following data formats are currently defined:
60 *
61 * (A) PROBE_COM_FMT_?X_QUERY. The RX request queries the target about a particular setup
62 * parameter or capability.
63 *
64 * (B) PROBE_COM_FMT_?X_SIMPLE_RD. The RX request instructs the target to send data read
65 * from its memory, for a certain {memory address, data length} pair (which is given in
66 * the request).
67 *
68 * (C) PROBE_COM_FMT_?X_SIMPLE_WR. The RX request instructs the target to write certain
69 * data into its memory, for a certain {memory address, data length, data} triplet
70 * (which is given in the request).
71 *
72 * (D) PROBE_COM_FMT_?X_MULTIPLE_RD. The RX request instructs the target to send data read
73 * from its memory, for a certain set of {memory address, data length} pairs (which are
74 * given in the request).
75 *
76 * (E) PROBE_COM_FMT_?X_STR_RD. The RX request instructs the target to return a string
77 * that the user has stored in the target's string buffer.
78 **********************************************************************************************************
79 */
80
81 #define PROBE_COM_FMT_TX_ERROR 0x8000
82
83 #define PROBE_COM_FMT_RX_QUERY 0x0001
84 #define PROBE_COM_FMT_TX_QUERY 0x8001
85
86 #define PROBE_COM_FMT_RX_SIMPLE_RD 0x0002
87 #define PROBE_COM_FMT_TX_SIMPLE_RD 0x8002
88
89 #define PROBE_COM_FMT_RX_SIMPLE_WR 0x0003
90 #define PROBE_COM_FMT_TX_SIMPLE_WR 0x8003
91
92 #define PROBE_COM_FMT_RX_INFO 0x0004
93 #define PROBE_COM_FMT_TX_INFO 0x8004
94
95 #define PROBE_COM_FMT_RX_MULTIPLE_RD 0x0007
96 #define PROBE_COM_FMT_TX_MULTIPLE_RD 0x8007
97
98 #define PROBE_COM_FMT_TX_MULTIPLE_RD_LO 0x07
99 #define PROBE_COM_FMT_TX_MULTIPLE_RD_HI 0x80
100
101 #define PROBE_COM_FMT_RX_MULTIPLE_WR 0x0008
102 #define PROBE_COM_FMT_TX_MULTIPLE_WR 0x8008
103
104 #define PROBE_COM_FMT_RX_STR_RD 0x0009
105 #define PROBE_COM_FMT_TX_STR_RD 0x8009
106
107 #define PROBE_COM_FMT_RX_STR_WR 0x000A
108 #define PROBE_COM_FMT_TX_STR_WR 0x800A
109
110 /*
111 *********************************************************************************************************
112 * STATUS CONSTANTS
113 *
114 * Note(s): (1) The following status constants are currently defined:
115 *
116 * (A) PROBE_COM_STATUS_OK. The target was able to respond to the command.
117 *
118 * (B) PROBE_COM_STATUS_STR_NONE. A PROBE_COM_FMT_RX_STR_GET packet is received, but the
119 * target has no string to send.
120 *
121 * (C) PROBE_COM_STATUS_UNKNOWN_REQUEST. A request packet with an unknown type was
122 * received.
123 *
124 * (D) PROBE_COM_STATUS_QUERY_NOT_SUPPORTED. A PROBE_COM_FMT_RX_QUERY packet is received,
125 * but the query is not supported.
126 *
127 * (E) PROBE_COM_STATUS_TX_PKT_TOO_LARGE. The response to the request would be too large
128 * to fit into the target.
129 *
130 * (F) PROBE_COM_STATUS_RX_PKT_WRONG_SIZE. The request packet is not the expected size.
131 *
132 * (G) PROBE_COM_STATUS_FAIL. Another error occurred.
133 **********************************************************************************************************
134 */
135
136 #define PROBE_COM_STATUS_OK 0x01
137 #define PROBE_COM_STATUS_TELEMETRY_NONE 0xF7
138 #define PROBE_COM_STATUS_STR_NONE 0xF8
139 #define PROBE_COM_STATUS_UNKNOWN_REQUEST 0xF9
140 #define PROBE_COM_STATUS_QUERY_NOT_SUPPORTED 0xFC
141 #define PROBE_COM_STATUS_TX_PKT_TOO_LARGE 0xFD
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -