📄 probe_com.lst
字号:
##############################################################################
# #
# IAR ARM ANSI C/C++ Compiler V4.42A/W32 KICKSTART 13/Mar/2009 16:01:05 #
# Copyright 1999-2005 IAR Systems. All rights reserved. #
# #
# Cpu mode = thumb #
# Endian = little #
# Stack alignment = 4 #
# Source file = E:\UC_OS\Micrium\Software\uC-Probe\Target\Communicat #
# ion\Generic\Source\probe_com.c #
# Command line = E:\UC_OS\Micrium\Software\uC-Probe\Target\Communicat #
# ion\Generic\Source\probe_com.c -lCN #
# E:\UC_OS\Micrium\Software\EvalBoards\ST\STM3210B-EVA #
# L\IAR\OS-Probe\Flash\List\ -o #
# E:\UC_OS\Micrium\Software\EvalBoards\ST\STM3210B-EVA #
# L\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 #
# "C:\Program Files\IAR Systems\Embedded Workbench #
# 4.0 Kickstart\arm\LIB\dl7mptnnl8n.h" -I #
# E:\UC_OS\Micrium\Software\EvalBoards\ST\STM3210B-EVA #
# L\IAR\OS-Probe\ -I E:\UC_OS\Micrium\Software\EvalBoa #
# rds\ST\STM3210B-EVAL\IAR\OS-Probe\..\..\..\..\..\uco #
# s-ii\ports\arm-cortex-m3\generic\iar\ -I #
# E:\UC_OS\Micrium\Software\EvalBoards\ST\STM3210B-EVA #
# L\IAR\OS-Probe\..\..\..\..\..\ucos-ii\source\ -I #
# E:\UC_OS\Micrium\Software\EvalBoards\ST\STM3210B-EVA #
# L\IAR\OS-Probe\..\..\..\..\..\uc-lib\ -I #
# E:\UC_OS\Micrium\Software\EvalBoards\ST\STM3210B-EVA #
# L\IAR\OS-Probe\..\..\..\..\..\uc-cpu\ -I #
# E:\UC_OS\Micrium\Software\EvalBoards\ST\STM3210B-EVA #
# L\IAR\OS-Probe\..\..\..\..\..\uc-cpu\ARM-Cortex-M3\I #
# AR\ -I E:\UC_OS\Micrium\Software\EvalBoards\ST\STM32 #
# 10B-EVAL\IAR\OS-Probe\..\..\..\..\..\cpu\st\stm32\in #
# c\ -I E:\UC_OS\Micrium\Software\EvalBoards\ST\STM321 #
# 0B-EVAL\IAR\OS-Probe\..\BSP\ -I #
# E:\UC_OS\Micrium\Software\EvalBoards\ST\STM3210B-EVA #
# L\IAR\OS-Probe\..\..\..\..\..\uC-Probe\Target\Commun #
# ication\Generic\RS-232\Source\ -I #
# E:\UC_OS\Micrium\Software\EvalBoards\ST\STM3210B-EVA #
# L\IAR\OS-Probe\..\..\..\..\..\uC-Probe\Target\Commun #
# ication\Generic\RS-232\Ports\ST\STM32\ -I #
# E:\UC_OS\Micrium\Software\EvalBoards\ST\STM3210B-EVA #
# L\IAR\OS-Probe\..\..\..\..\..\uC-Probe\Target\Commun #
# ication\Generic\Source\ -I #
# E:\UC_OS\Micrium\Software\EvalBoards\ST\STM3210B-EVA #
# L\IAR\OS-Probe\..\..\..\..\..\uC-Probe\Target\Plugin #
# s\uCOS-II\ -I "C:\Program Files\IAR #
# Systems\Embedded Workbench 4.0 Kickstart\arm\INC\" #
# List file = E:\UC_OS\Micrium\Software\EvalBoards\ST\STM3210B-EVA #
# L\IAR\OS-Probe\Flash\List\probe_com.lst #
# Object file = E:\UC_OS\Micrium\Software\EvalBoards\ST\STM3210B-EVA #
# L\IAR\OS-Probe\Flash\Obj\probe_com.r79 #
# #
# #
##############################################################################
E:\UC_OS\Micrium\Software\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 : V1.20
23 * Programmer(s) : Brian Nagel
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_GLOBALS
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
\ CPU_INT32U __data ProbeCom_TxStrCtr
\ ProbeCom_TxStrCtr:
\ 00000014 DS8 4
\ 00000018 DS8 4
\ 0000001C DS8 4
\ 00000020 DS8 128
37
38
39
40 /*
41 *********************************************************************************************************
42 * LOCAL DEFINES
43 *********************************************************************************************************
44 */
45
46 /*
47 *********************************************************************************************************
48 * DATA FORMATS
49 *
50 * Note(s): (1) The first word in all TX data segments is identical:
51 *
52 * (A) A 2-byte format;
53 * (B) A 1-byte status;
54 * (C) A 1-byte modifier, currently unused.
55 *
56 *
57 * (2) The first two bytes in all RX data segments is identical:
58 * (A) A 2-byte format;
59 *
60 * (3) The following data formats are currently defined:
61 *
62 * (A) PROBE_COM_FMT_?X_QUERY. The RX request queries the target about a particular
63 * setup parameter or capability.
64 *
65 * (B) PROBE_COM_FMT_?X_SIMPLE_RD. The RX request instructs the target to send
66 * data read from its memory, for a certain {memory address, data length} pair
67 * (which is given in the request).
68 *
69 * (C) PROBE_COM_FMT_?X_SIMPLE_WR. The RX request instructs the target to
70 * write certain data into its memory, for a certain {memory address, data length,
71 * data} triplet (which is given in the request).
72 *
73 * (D) PROBE_COM_FMT_?X_MULTIPLE_RD. The RX request instructs the target to send
74 * data read from its memory, for a certain set of {memory address, data length}
75 * pairs (which are given in the request).
76 *
77 * (E) PROBE_COM_FMT_?X_STR_GET. The RX request instructs the target to
78 * return a string that the user has stored in the target's string buffer.
79 *
80 **********************************************************************************************************
81 */
82
83 #define PROBE_COM_FMT_TX_ERROR 0x8000
84
85 #define PROBE_COM_FMT_RX_QUERY 0x0001
86 #define PROBE_COM_FMT_TX_QUERY 0x8001
87
88 #define PROBE_COM_FMT_RX_SIMPLE_RD 0x0002
89 #define PROBE_COM_FMT_TX_SIMPLE_RD 0x8002
90
91 #define PROBE_COM_FMT_RX_SIMPLE_WR 0x0003
92 #define PROBE_COM_FMT_TX_SIMPLE_WR 0x8003
93
94 #define PROBE_COM_FMT_RX_MULTIPLE_RD 0x0007
95 #define PROBE_COM_FMT_TX_MULTIPLE_RD 0x8007
96
97 #define PROBE_COM_FMT_TX_MULTIPLE_RD_LO 0x07
98 #define PROBE_COM_FMT_TX_MULTIPLE_RD_HI 0x80
99
100 #define PROBE_COM_FMT_RX_STR_GET 0x0009
101 #define PROBE_COM_FMT_TX_STR_GET 0x8009
102
103 /*
104 *********************************************************************************************************
105 * STATUS CONSTANTS
106 *
107 * Note(s): (1) The following status constants are currently defined:
108 *
109 * (A) PROBE_COM_STATUS_OK. The target was able to respond to the command.
110 *
111 * (B) PROBE_COM_STATUS_STR_NONE. A PROBE_COM_FMT_RX_STR_GET packet is received,
112 * but the target has no string to send.
113 *
114 * (C) PROBE_COM_STATUS_QUERY_NOT_SUPPORTED. A PROBE_COM_FMT_RX_QUERY packet is
115 * received, but the query is not supported.
116 *
117 * (D) PROBE_COM_STATUS_TX_PKT_TOO_LARGE. The response to the request would be too
118 * large to fit into the target.
119 *
120 * (E) PROBE_COM_STATUS_RX_PKT_WRONG_SIZE. The request packet is not the expected
121 * size.
122 *
123 * (F) PROBE_COM_STATUS_FAIL. Another error occurred.
124 *
125 **********************************************************************************************************
126 */
127
128 #define PROBE_COM_STATUS_OK 0x01
129 #define PROBE_COM_STATUS_STR_NONE 0xF8
130 #define PROBE_COM_STATUS_UNKNOWN_REQUEST 0xF9
131 #define PROBE_COM_STATUS_QUERY_NOT_SUPPORTED 0xFC
132 #define PROBE_COM_STATUS_TX_PKT_TOO_LARGE 0xFD
133 #define PROBE_COM_STATUS_RX_PKT_WRONG_SIZE 0xFE
134 #define PROBE_COM_STATUS_FAIL 0xFF
135
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -