Home

User`s Manual - eecosales.com

image

Contents

1. SOFT CODE MREAD MWRITE MACCESS SOFT Set a Software Breakpoint CODE Set a hardware Breakpoint for Code fetch MREAD Set a Breakpoint for Memory Read MWRITE Set a Breakpoint for Memory Write MACCESS Set a Breakpoint for Memory Access lt Status gt Specify disable enable Breakpoint ENABLE Enable Breakpoint DISABLE Disable Breakpoint Description Add or Enable Disable Breakpoints After the command is executed WATCHPOINT will display the current breakpoint status This command is the same as Breakpoints in the Go menu ARM Cortex Series User s Manual 26 of 81 6 5 BPOFF Delete Breakpoint s lt command gt lt mode gt lt breakpoint number s gt lt Mode gt NO lt breakpoint Specify the breakpoint number s that you want to delete Ex 2 4 5 number s gt 7 see QUERY BP command ALL Delete all breakpoints Description Specify breakpoint number s to delete or delete all breakpoints A list of current breakpoints can be displayed with the QUERY BP command After the command is executed it will display the current breakpoint status This command is the same as Breakpoints in the Go menu 6 6 BREAK Forced Break Description Forces break during real time CPU execution lt command gt BREAK This command is same as Menu gt gt Go gt gt Break ARM Cortex Series User s Manual 27 of 81 6 7 BPOPT Breakpoint Options Syntax BPOPT TRIGGER lt Trigger Break
2. lt Number of steps gt Specify number steps to execute If is input single steps will execute until a breakpoint is met or user keyboard YE command 1s input Description Single Step from the Program Counter or from a specific address stepping over all subroutines and function calls A called function or subroutine is executed in real time If a breakpoint is set in the called function or subroutine the program will stop at that breakpoint This command is the same as the GO Step Over menu item ARM Cortex Series User s Manual 54 of 81 6 33 PLDLOAD Load PLD initialization files lt command gt lt file name gt PLDLOAD FILENAME lt FILENAME gt Specify PLD initialization data file Description Write initialization data file into PLD This command is same as Resource gt gt PLDLOAD 6 34 QUERY Display current environment setting Syntax QUERY ALLOC BP BPOPT ENV LOAD OPTION SWITCH lt Command gt sagt k OPTION SW ITCH ARM Cortex Series User s Manual 55 of 81 lt Mode gt BP Display list of current breakpoints LOAD Display currently loaded modules OPTION Display current Command window options Description The QUERY command displays current settings for the following commands o ALLOC or Resource Memory Mapping BP or Go Breakpoint BPOPT or Resource ICE Environment Break ENV or Resource ICE Environment LOAD or Resource
3. mode gt NEW Create a new file ADD Save the currently exiting file lt file name gt Saved file name Description Save the currently opened Command window history to a file Differs from the LOG command The SAVEWIN command saves all of the executed expression contents in command window ARM Cortex Series User s Manual 58 of 81 6 40 SEARCH Memory search Syntax SEARCH address range DATA lt searchdata gt BYTE WORD LWORD MODE MATCH NOTMATCH ASIZE lt access size gt LENGTH RANGE a lt search data gt lt display size gt BYTE REE LWORD lt search condition gt MATCH Ga NOMATCH E b LWORD a W QWORD Ed BYTE Eron ARM Cortex Series User s Manual 59 of 81 lt address range gt start address Specify start address of the memory search length Specify number of bytes from the start address end address Specify end address of the memory search lt search data gt Specify data being searched for Use quotation marks or to search for a specific string You cannot use a space or tab characters in search strings Use ASCII HEX code 1x20 for space and HEX 1x9 for TAB lt display size gt Specify the memory search data size BYTE Byte data memory search WORD Word data memory search LWORD LWORD data memory search When data search of a character string is specified you should match the memory search to the size of the character string lt search condition MODE gt Specify data op
4. comment ARM Cortex Series User s Manual 67 of 81 7 5 View Memory I O Data You can print memory data and I O data or assign memory and I O data to work variables Enclose the memory address in brackets address To specify the memory data use ASSIGN command or dot to specify the data and length as follows Expression Description Address B Get Byte data at the specified address Address W Get Word data at the specified address Address L Get Longword data at the specified address Example A 0x4000 L Assign 4 bytes at address 0x4000 to Work variable A If 0x4000 W 0x 1234 True when data at address 0x4000 equals 0x1234 0x4000 W Word data value at address 0x4000 7 6 Modify Memory I O Data Use the ASSIGN or dot command to modify memory and I O data as follows Expression Description Address B lt byte data gt Write Byte data to the specified address Address W lt word data gt Write Word data to the specified address Address L lt longword data gt Write Longword data to the specified address Example A 0x4000 B 0x 10 Write 0x10 byte data to address 0x4000 and to Global Work variable A 0x4000 W 0x 1234 Write 0x1234 word data to address 0x4000 ARM Cortex Series User s Manual 68 of 81 7 7 View Register Value You can display register values and assign register values to work variables by using the name of the register in an expression as follows Express
5. LENGTH lt ength gt TO lt end address gt start address Specify starting address for memory allocate range length Specify number of Bytes from the starting address end address Specify ending address of memory range Description Allocates emulation memory and assigns attributes There are 8 Mbytes emulation memory map able in two channels This command is same as Menu gt gt Resource gt gt Memory Map Setup Related Commands QUERY ARM Cortex Series User s Manual 23 of 81 6 2 ASSIGN or Evaluate expression and assign value Syntax Assign lt expressionl gt lt expression2 gt or lt expression1l gt lt expression2 gt lt command gt lt expression gt or lt Expression gt Specify an expression for evaluation Description If expression2 is included it assigns the value of expression2 to expression1 Expression1 can be a memory port address CPU register or a work variable If expression2 is omitted then expression1 can be any mathematical expression including symbol names and the resulting value is displayed You can type the command ASSIGN or use the dot notation for viewing and modifying memory port data symbol data I O data and register values Refer to Address and Data Input Methods for specifying memory port addresses and CPU register values in expressions For help using WATCHPOINT system variables memory port contents and CPU registers in expressions refer to
6. O ee E ues e ie A a gt A 1 USB Mini B Connector 6 PLAY Batch Macro Button 2 JTAG Cable Connector 7 Micro SD Memory Slot 3 EJ SCT Power On LED 8 Stand Alone Mode DC Power In Jack 4 Target unit power on LED P ON 9 OLED EJ SCT Message Display 5 Unit Under Test Running LED 10 Strap Mounting Hole 3 0 1 Illustration JTAG Hardware Indicators Connectors Display ARM Cortex Series User s Manual 9 of 81 3 1 ARM Series JTAG Cable The EJ SCT uses a standard 20 to 20 pin female connector JTAG cable from the emulator to the unit under test as recommended by ARM 3 1 1 Illustration EJ SCT 20 20 Pin Female JTAG Cable 3 2 Proper JTAG to Unit Under Test Connection Sequence The following procedure must be adhered to for proper connection to the system under test Make sure that the EJ SCT and target system to be tested power is off or not connected in any way to a power source 1 Connect target system to the EJ SCT using the provided JTAG cable 2 Connect the power supply and apply power to the EJ SCT The Power LED on the EJ SCT should be on at this time 3 Apply power to the target system to be tested 4 For the WATCHPOINT debugging session to start the EJ SCT JTAG must detect a valid working JTAG port on the target system ARM Cortex Series User s Manual 10 of 81 3 3 JTAG Connector Pin Assignment The following pin assignment is recommended by ARM for the target system to be tested Recommende
7. The easiest way to create a new macro is by using the NEWBATCH command within the Command window to record the commands as they are used by the operator They are entered on the command line and can refined later with a text editor You can save the batch macro program to a file and reload it again from the Command window Unlimited nesting of is allowed within Windows ARM Cortex Series User s Manual 65 of 81 7 1 Work Variable Batch macro work variables are used for temporary storage and for passing parameters when the batch file is executed You can create a global work variable that is available to all batch macro programs from an expression that contains local work variables Memory data I O data a CPU register value or a string character to a Work variable may be assigned You can use a Work variable in a math expression to perform conditional processing as shown in the example below Number expressions are evaluated first and then string characters Work Variable Type Designator Batch 0 All string characters from the command line 1 9 Batch variables range from 1 9 Global variable A Z Example a 0x 10 Assign value 0x10 to Local variable a B 0x4000 W Assign Word data at address 0x4000 to Global variable B If a 0x 1234 True when Local variable a equals 0x1234 7 2 System Variable WATCHPOINT system variables can be used in to perform an action based on system status For example do nothing while the use
8. to store the keyboard input value Description This command displays the specified lt comment gt and waits for keyboard input The entered string must be a numeric expression The expression is analyzed and the result is stored in lt Work variable gt If an assignment is entered the assignment is performed and the value is stored in the lt Work variable gt If lt comment gt and lt Work variable gt are not specified WATCHPOINT imply analyzes the input value and displays the results The Enter key is used to specify the end of the input character string Example KEYIN A ARM Cortex Series User s Manual 73 of 81 7 17 PRINT Screen display Syntax PRINT lt comment gt lt number expression gt lt format gt lt comment gt The specified lt comment gt is displayed in the Command window lt numeric expression gt Specify the lt work variables gt to the keyboard input value lt format gt Specify the format for lt numeric expression gt lt Format gt Format Description None Default format Displays hexadecimal and assigned decimal number FB Displays 2Bytes binary number FLB Displays 4Bytes binary number D Displays 2Bytes signed decimal number LD Displays 4Bytes signed decimal number HU Displays 2Bytes unassigned decimal number LU Displays 4Bytes unassigned decimal number RH Displays 2Bytes hexadecimal number LH Displays 4Bytes hexadecimal number Description This command e
9. Download SWITCH or Resource ICE Environment OPTION command OO0OOOO 6 36 RASM Reverse assembly Syntax RASM lt address range gt ENABLE DISABLE lt Command gt lt Start address gt lt Length To gt lt Length End address gt ngth pa E End address lt Display Op Code gt lt address range gt lt start address gt LENGTH lt length gt TO lt end address gt lt start address gt Specify start address for memory range lt length gt Specify number of Bytes from the start address lt end address gt Specify end address of memory range ARM Cortex Series User s Manual 56 of 81 lt Op Code gt ENABLE Display Op Code hex data with mnemonics DISABLE Do not display Op Code Description Displays disassembled code from the specified memory range This command output is similar to the Disassembly window It can be used with logging turned on to reverse assemble a program from memory and save it to disk 6 37 REG Viewing CPU register value Syntax REG lt Command gt Description View current CPU register contents To modify a register value use the ASSIGN or command 6 38 RESET Reset the CPU lt command gt RESET Description Reset the CPU This command is same as Go gt gt Reset ARM Cortex Series User s Manual 57 of 81 6 39 SAVEWIN Save command window contents to file Syntax SAVEWIN NEW ADD command gt lt mode gt amos SAVEWIN File Name
10. EJ SCT rubber dust cap ARM Cortex Series User s Manual 12 of 81 3 5 2 Table Emulator specification Supported Cores Break Hardware break point ARM7 9 Maximum is 2 hardware break points May be set on command execution address status data ARM11 Maximum is 7 hardware break points Reserve command execution address 5p reserve memory access etc 2p Cortex core series A8 Reserve command execution address 5p reserve memory access etc 2p R4 Reserve command execution address 7p reserve memory access etc 8p M3 Reserve command execution address 5p Unlimited software break points Emulator forced break point ARM7 amp ARMO9 JTAG emulation uses 1 of the available hardware break points Software break point Step over Step out Run to cursor Specifications may be changed without notice ARM Cortex Series User s Manual 13 of 81 3 6 Power On and Off Sequence and Cautions When turning on your test system you must apply power to the JTAG emulator first When turning off your test system always turn off the unit under test first Be careful that only compatible voltage is ever applied to this product This emulator will not function if the target unit under test is off This emulator will not function correctly if the unit under test CPU is not operating normally The WATCHPOINT debug session will not start normally if it does not detect a working JTAG port on the unit under test AM PWNS 3 7 Other Technical C
11. Write 0x10 byte data to address 0x4000 0x4000 W View a word data at address 0x4000 Input to internal 1 O register area using the INR prefix INR 0x0x4000 B 0x10 Write 0x10 byte data to address 0x4000 INR 0x4000 W View a word data at address 0x4000 ARM Cortex Series User s Manual 78 of 81 9 1 Numeric Value Numerical values are entered in hexadecimal decimal or binary using the following prefixes to the radix EM Hexadecimal e ss lt i i z lt i s SS number H lt number gt Hexadecimal number only used for in line assembler in Disassembly window lt number gt Binary number lt number gt Decimal number 9 2 Address Expression Memory addresses and Internal Peripheral Register addresses are entered as follows Address Address Expression Meaning Comment lt Address value gt Logic address mmu lt Address value gt Logic address Not a for memory map r lt Address value gt Physical address N A INR lt Address value gt Internal 1 O register area N A lt Global symbol gt Global symbol address N A Some expressions may not apply to all Sophia Systems emulator configurations 9 3 CPU Register Expression Use the following notation when using CPU register values in expressions Input notation is not case sensitive RO R1 R2 R4 R5 R6 R8 RO R10 R12 R13 R14 CPSR PR ARM Cortex Series User s Manual 79 of 81 9 4 Address Format When WATCHPOINT requires
12. an address input in a dialog box or command line argument the address may be entered as a combination of numerical values address expressions and register expressions 9 5 Data Format When WATCHPOINT requires a data value in a dialog box or command line argument the data can be entered as a combination of numerical values register expressions and math expressions 9 6 Memory l O Port Reference Use address notation to refer to the data stored at the specific memory address This notation may be used in batch files as a test for conditional branching or with the ASSIGN or dot command in the command line interface to view or modify memory and I O ports oe ae B Refers to byte data at specified address address expression W Refers to word 2 bytes data at specified address deere L Refers to long word 4 bytes data at specified P address Examples 0x4000 B 0x10 Write 0x10 byte data to address 0x4000 0x4000 W View a word data at address 0x4000 Input data to internal I O register area INR 0x0x4000 B 0x10 Write 0x10 byte data to address 0x4000 INR 0x4000 W View a word data at address 0x4000 ARM Cortex Series User s Manual 80 of 81 Sophia Systems Co Ltd World Headquarters 6 2 Minami Kurokawa Asao ku Kawasaki shi Kanagawa 215 8588 JAPAN Tel 81 44 989 7110 FAX 81 44 989 7014 URL http www sophia systems com Email Intsales sophia systems com Enable Engineering Co Inc Call 800_686_4
13. be nested but each IF and ENDIF must be contained completely within another IF and ENDIF 7 13 END Terminate Batch processing Syntax END Description The END command terminates the entire batch operation of the current nested and any calling The batch operation is ended unconditionally when this command line is encountered If the was called from another control does not return to the calling Example IF A gt B END ENDIF 7 14 QUIT End the current macro Syntax QUIT Description When QUIT is executed one nested is canceled and control returns to the calling Ifthe batch file was not called from another QUIT terminates batch processing like the END command Example IF A gt B QUIT ENDIF ARM Cortex Series User s Manual 72 of 81 7 15 ECHO Batch commands display on off Syntax ECHO ON OFF Description By default the command lines in the batch file are not displayed as they are executed ECHO ON command is used to display the command lines as they executed Batch commands are not displayed when ECHO OFF is elected Example IF A gt B ECHO ON ELSE ECHO OFF ENDIF 7 16 KEYIN Keyboard input Syntax KEYIN A lt Work variable gt character string enclosed in double quotes is displayed on the status bar lt comment gt de the Command window lt work variable gt variable gt Specify the lt work variable gt to store the keyboard input value the lt work variable gt
14. gt The name of the directory to display Description Lists the contents of the specified directory If no directory name is specified WATCHPOINT lists the contents of the current working directory ARM Cortex Series User s Manual 36 of 81 6 16 DUMP Display memory range data content lt command gt lt start address gt lt LengthiTe gt lt Length end address lt Mode gt lt Display Format gt lt Data size gt 10BYTE H 12BYTE i ARM Cortex Series User s Manual 37 of 81 lt Display Format gt lt Data size gt Select display format and data size as follows BYTE Specify Byte WORD Specify Word LWORD Specify Long word 4BYTE Specify 4 Byte real number SBYTE Specify 8 Byte real number 10BYTE Specify 10 Byte real number 12BYTE Specify 12 Byte real number lt Access size gt Specify data access size for memory dump BYTE Memory dump in bytes WORD Memory dump in word size LWORD Memory dump in long word size QWORD Memory dump in quad word size Description Display data in a specified memory range with a specific format This command is same as Memory dump window gt gt View memory ARM Cortex Series User s Manual 38 of 81 6 17 ENV Emulator environment options lt command gt lt mode gt lt verify specify gt DISABLE f lt BP specify gt lt THUMB specify gt ARM Cortex Series User s Manual 39 of 81 lt VERIFY gt Enable disable verification of emulator memory writes
15. product Trademarks and product names within this publication are the property of the respective companies Please email questions and comments to intsales sophia systems com 1 1 Important Warnings and Precautions This publication includes important product use warnings and safety precautions It is important for you to read and follow directions for proper operation to avoid possible harm to yourself or others and prevent damage to your EJ SCT JTAG emulator e Read and study all precautions prior to operating this product e Keep these precautions in a safe place with easy operator access 1 2 Unpacking and Receipt Check each item itemized on the packing list are present and undamaged by shipment If damage is noted save all shipping documents packing and boxes Immediately contact your freight forwarder and local Sophia Systems office or representative This product contains delicate components and should be handled with care ARM Cortex Series User s Manual 5 of 81 1 3 Operator Cautions Warning Use factory supplied connections cables and test points only Any other attempts to make connections or connection modifications may result in injury electrical shock or fire Prohibited If you smell smoke or detect any sound of electric arcing while using this product Immediately turn off electrical power and remove all connections capable of supplying electricity to the unit Failure to do so may result in injury or fir
16. 11 GOTO Unconditional branch Syntax GOTO lt Label gt lt Label gt Specify lt Label gt for branch in the Batch Description The GOTO command changes the batch processing flow where the lt Label gt is specified It transfers control to the line defined by lt label gt Batch processing terminates 1f lt label gt is not defined lt label gt Lines must start with colon Example LOOP GOTO LOOP 7 12 IF ELSEIF ELSE ENDIF Conditional Process Control Syntax IF lt Condition gt lt Command gt ELSEIF lt Condition gt lt Command gt ELSE lt Command gt ENDIF lt Condition gt Used to control the macro batch process flow Description If the result of evaluating lt Condition1 gt lt Condition2 gt etc is true not 0 the batch program is executed up to the next ELSEIF or the next ELSE whichever comes first If ELSE and ELSEIF are omitted the lines up to ENDIF are executed If the result of the evaluating lt Condition gt is false 0 the lines after ELSE and up to END IF are executed If ELSE is omitted control is transferred to the line following ENDIF ARM Cortex Series User s Manual 71 of 81 Example IF A gt B DUMP 0 LENGTH A ELSEIF A B DUMP 0x10 LENGTH A ELSEIF A lt B DUMP 0x20 LENGTH B ELSE DUMP 0x30 LENGTH B ENDIF Notes IF ELSE ELSEIF and ENDIF must be specified on separate lines IF and ENDIF must be paired IF and ENDIF may
17. 278 email sales eecosales_com www_becosales_com ARM Cortex Series User s Manual 81 of 81
18. 49 of 81 lt Format gt AUTO Automatically recognize file format ELF Specify ELF format for Green Hills toolset THEX Specify Intel Hex format MHEX Specify Motorola Hex format SHF Specify original high speed download format BINARY lt Start address gt Download Binary data from the specific address SYMTEXT Specify Text Symbol file format 1 SYMTEXT2 Specify Text Symbol file format 2 lt lt Source file path gt ENABLE Enable alternate search path for source file DISABLE Do not use alternate path for source files Description Downloads object and symbol files or deletes them WATCHPOINT can Auto detect most common file formats so AUTO is the normal setting A key exception is that AUTO will not detect BINARY file types and the user must specify them 6 27 LOG _ Start stop logging Command Window output Syntax LOG ON lt file name gt ADD lt file name gt OFF lt Command gt lt Mode gt lt File name gt on rie oo ooo le Name lt Mode gt ON Start a new log file over write an existing log file Specify the Record ae J ADD Add commands to an existing log file OFF _ Stop recording commands to a log file lt file name gt Specify log filename to store command output Description Saves the output from the Command window to a file This command can be used to store reverse assembled program from target memory trace history memory dump etc ARM Cortex Series User s Manual
19. 50 of 81 6 28 MESSAGEBOX Enable target power On Off a user message box lt MESSAGEBOX gt lt mode gt Target power On Off message lt setting gt ON Display the message in Command window OFF Display the message in Message box Description Specify the target power On Off message display 6 29 MKDIR Create a Directory lt Command gt lt directory name gt lt Directory name gt The name of the directory to create Description Creates a new directory You can also use the CD command to change working directories to a new directory ARM Cortex Series User s Manual 51 of 81 6 30 NEWBATCH Start stop recording user commands to a macro batch file Syntax NEWBATCH ON lt file name gt ADD lt file name gt OFF lt Command gt lt Mode gt lt File name gt NEWBATCH lt Mode gt ON Start a new batch file over write an existing batch file Specify the Record Mode ADD Add commands to an existing batch file OFF Stop recording commands to a batch file lt file name gt Specify the name of the batch file Description Saves commands entered on the command line to a file The commands are not executed as they are being recorded Use the BATCH command to play back the recorded commands Use ON when creating a new batch file If using an existing file name the new data will over write the old file Use ADD to append new commands to the end of an existing batch file Use OFF to st
20. ARM Cortex Series User s Manual 75 of 81 8 1 Memory l O Port Reference Use the address notation to refer to the data stored at the specific memory address This notation can be used in batch macro files as a test for conditional branching or with the ASSIGN or dot command in the command line interface to view or modify memory or I O ports EE expression Refers to byte data at specified address address EUR W Refers to word data at specified address address expression L Refers to long word data at specified address Example 0x4000 B 0x10 Write 0x10 byte data to address 0x4000 0x4000 W View a word data at address 0x4000 Input to internal I O register area Prefix with INR INR 0x0x4000 B 0x10 Write 0x10 byte data to address 0x4000 INR 0x4000 W View a word data at address 0x4000 ARM Cortex Series User s Manual 76 of 81 8 2 WATCHPOINT Data Expressions Numerical values can be entered in hexadecimal decimal or binary using the following prefixes to indicate the radix et Hexadecimal number i itst lt lt lt lt i i i SSS number H lt number gt Hexadecimal number Only used for in line assembler in Disassembly window lt number gt Binary number lt number gt Decimal number 8 3 Address Expressions Memory addresses and Internal Peripheral Register addresses are entered as follows Address Expression Meaning Comment lt Address value gt Logic address mmu l
21. D is in the PC ROM drive and connect the USB cable to the PC and EJ SCT The PC will detect the new USB hardware and find the needed USB driver on the WATCHPOINT CD Be sure that the unit under test power is off When WATCHPOINT is installed and the EJ SCT has been recognized by the PC you can plug the EJ SCT into the unit under test Make sure that Pin 1 on the JTAG cable is connected to Pin 1 on the unit under test Failure to do so may damage the EJ SCT and your test unit Turn on the unit under test The EJ SCT target power on LED labeled P ON should light Now you are ready to start the first WATCHPOINT session Refer to the WATCHPOINT manual and WATCHPOINT Help button for additional necessary start up steps and instructions ARM Cortex Series User s Manual 8 of 81 COO Taras oveniew The EJ SCT is a universal JTAG emulator and FLASH writer that is configured by the WATCHPOINT software Additional CPU support including multi processor capabilities are added by simply installing another edition of the WATCHPOINT software Contact Sophia Systems or your authorized representative for specific details The EJ SCT connects to the host computer via USB interface cable The EJ SCT connects to the unit under test via the supplied JTAG cable 2 JTAG Cable Connector LED Display Play Button 9 OLE Message 7 Micro SD Slot 1 USB Mini B 8 DC Power Jack Stand Alone Mode Exploded Sa PPT View Lt ae AA 1
22. ENABLE Verify emulator memory writes by reading back data DISABLE Do not read back data to verify emulator memory writes lt STEPIN gt Enable disable interrupt during single stepping ENABLE Enable interrupt during single Stepping DISABLE Disable interrupt during single Stepping lt STEPWAIT gt Enter WAIT duration for single Step Enter the value x 10ms for duration lt ENDIAN gt Specify endian BIG Specify big endian LITTLE Specify little endian lt Memory access size gt Specify the default access size for ICE system memory access BYTE Byte size memory access WORD Word size memory access LWORD Long word memory access lt BP type gt Specify Breakpoint type HARD Select hardware breakpoints SOFT Select software breakpoints lt THUMB mode gt Specify the trace history analysis mode in the Disassembly window TS ARM mmo THUMB THUMB THUMB mode sss AUTO Select ARM or THUMB mode automatically according to the CPSR register lt ABORT checks Enable disable ABORT check function OFF Disable ABORT check during memory access ON Enable ABORT check during memory access lt THUMB mode break gt Enable disable THUMB mode to break OFF Disable break at 4n 2 address during THUMB mode ON Enable break at 4n 2 address during THUMB mode ARM Cortex Series User s Manual 40 of 81 lt JTAGCLOCK gt Specify the JTAG clock frequency for emulation CPU JTAGCO 1 375MHz JTAGC1 2 5MHz JTAGC2 3 75MHz JTAGC3 5MHz
23. Hexadecimal 1M file format IHEX4G Output Intel Hexadecimal 4G file format MHEX64K Output Motorola Hexadecimal 64K file format MHEX1M Output Motorola Hexadecimal 1M file format MHEX4G Output Motorola Hexadecimal 4G file format BINARY Output binary file format ARM Cortex Series User s Manual 63 of 81 lt PC gt lt start address gt Specify if the PC program counter address should be included in the saved file ENABLE Specify PC program counter address is in the output file DISABLE Specify PC program counter address is NOT in the output file lt PC gt lt address value gt Specify PC program counter starting address included in the HEX file Invalid if the output is a binary file format value Specify PC program counter address value included in the binary file format Invalid if the output is a HEX file format start address Description Specify address range and data value of the memory to be uploaded This command is same as Resource gt gt Upload Example 1 UPLOAD c wp updata1 hex 0x1200 LENGTH 0x100 MHEX64K ENABLE_PC 0x5678 File name updata1 Starting address 0x1200 Length 0x100 bytes end address 0x12FF Output format MHEX64K Motorola HEX 64 Kbyte length PC address Enable value 0x5678 Example 2 UPLOAD c wp updata2 hex 0x40000200 TO 0x400045FF IHEX4G DISABLE_PC File name updata2 Starting address 0x40000200 End address 0x400045FF Output format IHEX4G Intel HEX 4 Gbyte le
24. JTAG emulator as a logic level reference ARM Cortex Series User s Manual 18 of 81 4 1 Full JTAG Emulator Development Mode In full development mode the EJ SCT is connected to a personal computer via a USB connection and is controlled by a Sophia Systems WATCHPOINT software session Power to the EJ SCT is supplied by the USB cable connection Connection to the unit under test is via the supplied JTAG cable EJ SCATT Target system 4 1 1 Illustration JTAG Emulator Development Mode 4 2 Stand Alone JTAG FLASH Writer Mode In stand alone JTAG FLASH writer mode the EJ SCT operates under the control of a macro script Batch program created with WATCHPOINT software and saved to SD memory The SD memory is then installed in the EJ SCT SD memory slot In stand alone mode the EJ SCT receives power from the supplied accessory AC mains power supply Connection to the unit to have FLASH memory written is via the supplied JTAG cable The Batch program executes when the operator presses the Start button on the EJ SCT ARM Cortex Series User s Manual 19 of 81 Gl 5 1 Tutorial Location Tutorial text and illustrations are part of the WATCHPOINT Help file This file is available apart from a WATCHPOINT session Go to the WATCHPOINTWWPS_ARM_M help directory and double click on ARM chm When the file opens select the Tutorial folder 5 2 WATCHPOINT CD Command Definitions and Location WATCHPOINT command definition text a
25. JTAGC4 7 5MHz JTAGCS 10MHz JTAGC6 15MHz JTAGC7 20MHz Description These commands configure the ICE environment This command is same as Resource gt gt ICE Environment 6 18 ERRORECHO Error message display settings Syntax ERROR ECHO ON OFF lt COMMAND E E lt ERROR ECHO gt ON Display error message in Command window OFF Display error message in Message box Description Specify the error message display method ARM Cortex Series User s Manual 41 of 81 6 19 EXTCMD Execute WATCHPOINT commands from an external application lt command gt external command name gt memory size gt EXTCMD MEMSIZE EXTCMD gt Enable disable display of command window ON Display command window OFF Do not display command window lt MEMSIZE gt Memory size Specify common memory storage size for result data from an external command Default memory size is 0x4100 Description Executes WATCHPOINT commands from external application During the command execution period operation from WATCHPOINT is unavailable EXTCMD works with the optional WPWXPCommand dll ARM Cortex Series User s Manual 42 of 81 6 20 FILL Fill a memory range Syntax FILL address range DATA lt fill data gt BYTE WORD LWORD ASIZE lt access size BYTE WORD LWORD lt comimand gt lt start address gt lt address range gt lt yalue gt LENGTH ADDRESS Hire y lt mode gt lt fill data gt lt data size gt LL we
26. Math Expressions and Batch Processing Example 0x4000 B 0x10 Write 0x10 byte data to address 0x4000 RO 0x20 Write 0x20 to RO register If you use the dot syntax in place of the ASSIGN statement However if the dot syntax is used there will be no command window history ARM Cortex Series User s Manual 24 of 81 6 3 BATCH Execute MACRO batch file Syntax BATCH lt file name gt lt argument gt lt argument gt lt argument gt lt command gt lt file name gt lt argument gt 1 Space delimiter lt file name gt Specify the name of the batch file lt argument gt Argument used in the batch file Specify each argument in the batch file with 1 9 0 refers to the entire command from the command line Description Executes commands stored in a batch macro file You can create a batch file by using the NEWBATCH command that records commands entered on the command line The batch file is a text file that can be edited with any text editor Refer to the Batch Processing section ARM Cortex Series User s Manual 25 of 81 6 4 BP Add Enable Disable breakpoints Syntax BP lt address gt lt bus status gt ENABLE DISABLE lt command gt lt address gt lt bus status gt lt status gt mo y amp RITE EA MACCESS lt Address gt Specify breakpoint address R 0x00000000 R 0x000000ff If address is not specified press Enter key to display BP list lt Bus status gt
27. Rd CRn CRm and lt opcode_2 gt with 0 7 ARM Cortex Series User s Manual 35 of 81 lt CRM gt CPRREAD In CPRREAD specify the lt CRm gt of MRC lt cond gt p lt cp gt lt opcode_1 gt Rd CRn CRm and lt opcode_2 gt with 0 7 In CPRWRITE specify the lt CRm gt of MCR lt cond gt p lt cp gt lt opcode_1 gt CER WRITE Rd CRn CRm and lt opcode_2 gt with 0 7 lt OPCODE2 gt CPRREAD In CPRREAD specify the lt opcode_2 gt of MRC lt cond gt p lt cp gt lt opcode_1 gt Rd CRn CRm and lt opcode_2 gt with 0 15 CPRWRITE CPRWRITE specify the p lt opcode_2 gt of MCR lt cond gt p lt cpit gt lt opcode_1 gt Rd CRn CRm and lt opcode_2 gt with 0 15 lt DATA gt In CPRREAD display the Rd value of MRC lt cond gt p lt cp gt lt opcode_1 gt Rd CPRAEAD CRn CRm and lt opcode_2 gt In CPRWRITE specify 4 byte Rd value for MCR lt cond gt p lt cp gt CERY RELE lt opcode_1 gt Rd CRn CRm and lt opcode_2 gt Description These commands configure the CPR Display the Rd values for MRC lt cond gt p lt cp gt lt opcode_1 gt Rd CRn CRm and lt opcode_2 gt Set the Rd values for MCR lt cond gt p lt cp gt lt opcode_1 gt Rd CRn CRm and lt opcode_2 gt 6 15 DIR List directory contents Syntax DIR lt directory path name gt lt Command gt lt directory path name gt DIR directory path name lt directory path name
28. Sophia systems EJ SCT ARM Cortex Series Universal JTAG Emulator User s Manual E090836 02 ARM Cortex Series User s Manual Ustcrs Mammalia fs rota ste Ol E e al Mee Se a see ete 1 1 Technical Information and Cautions emocione airada tersa ds 5 1 1 Important Warnings and PrecautOOS cii ene diene a 5 A e o A A A la teas 5 1 3 Operator Cautions sssini nien eai ass vas E ER E KEE EAA TAEAE 6 A Class A FEC NOCES deieren a a A EEE E siaaa 7 2 Setup Tor Use Witla PE a a a a E a E aiatea le 8 2 1 WATCHPOINT Software astilla ballad yaadeaecas boca ee sucaasieeveaaventacadeecesbens 8 3 Hardware Gyer Vie W iets ore inisesin aira rgi tee ai e a er a t 9 3 0 1 Illustration JTAG Hardware Indicators Connectors amp Display oooonnoccnnocccinocccnnnnnnnnnos 9 Belk ARM Sefes A ticas 10 3 1 1 Illustration EJ SCT 20 20 Pin Female JTAG Cable oooooonnnococinocccooncccnoncnononcconanacinnncnos 10 3 2 Proper JTAG to Unit Under Test Connection Sequence ocoocococococoncnonnnononcnoncnanaconn nono ncnnncnnnos 10 3 3 JTAG Connector Pin ASOMO iii indian sunsendetave dens 11 3 3 1 Illustration Standard EJ SCT 20 20 pin female JTAG cable ooonoocccnocccccoccccnoncnonnnnnos 11 3 5 Test Terminals amp Reset Button Under Rubber Covet cocoooccnnnccnonccononccccnonnnononnccnnncnonnnccnnnnos 12 3 5 1 Illustration JTAG Reset Button and User Test TerminalsS ooonnnnccnnnnccinnnccinonccnnnnncnn 12 3 5 2 Table Emulator Spe
29. User s Manual 31 of 81 6 10 CD Change Directory Syntax CD lt directory path name gt lt Command gt lt directory path name gt directory path name lt directory path Names the directory path to make current name gt Description Change the directory path 6 11 CLOSE Close Project file Syntax CLOSE lt Command gt CLOSE Description Closes the currently opened Project file and all windows in WATCHPOINT 6 12 CLS Clear Command Window lt Command gt CLS Description Clear the currently opened Command window in WATCHPOINT ARM Cortex Series User s Manual 32 of 81 6 13 COPY Copy a memory range lt command gt lt start address gt lt address range gt lt value gt LENGTH start addess a end address y lt mode gt lt copy to gt lt copy to address gt lt access address gt a Ma e ARM Cortex Series User s Manual 33 of 81 lt address range gt lt start address gt LENGTH lt length gt TO lt end address gt lt start address gt Specify start address for memory allocate range lt length gt Specify number of Bytes from the starting address lt end address gt Specify end address of memory range lt MEM gt Specify memory area to copy to USR Copy from emulation memory to user memory RAM Copy from user memory to emulation memory ADDR lt address gt Specify another address to copy to within same memory type Specify data access size for memory copy
30. autions 1 Software break points cannot be set in target system ROM address space A hardware break point must be set to break execution in a ROM space address 3 The User program will stop executing if the User changes or alters memory while the User program is running This includes changing or altering assembler code 4 The ARM ICEBreaker Module debugging scheme is being used internally as one of the debugging algorithms When this Module is accessed is may cause WP Break command to be ignored for an instant Contact Sophia Systems for more details if this is causing trouble with your debugging process ARM Cortex Series User s Manual 14 of 81 3 8 EJ SCT Side JTAG Hardware Interface The target VTREF signal is detected by the EJ SCT and is used to set signal levels Valid VTREF levels are from 1 2V 5 0Vdc When VTREF signal detect voltage is over 0 7 input output circuit on the JTAG emulator side it will be ON JTAG Interface parts are as follows Designation Description Part Number A Analog Devices ADG719BTZ B TI SN65LVDS33PW C PERICOM PI5C125QE D Ferrite bead E EMI filter EJ SCT 20 Pin JTAG Connection 13 TDO 19 DBGACK 11 RTCK 3 8 1 Illustration JTAG Side Hardware Interface ARM Cortex Series User s Manual 15 of 81 3 9 Recommended Hot Plug JTAG Connect Circuitry To support Hot Plug connection add the following circuit to target board A special connector is not necessary 3 9 1 Hot Plug Operating Instruc
31. be sent to the Command window The Command window can be split into two panes Each pane can be scrolled to view the command output history The Command window output can be logged to a disk file Press the lt Tab gt key to move the cursor between upper and lower portions of the Command window The current active WATCHPOINT command or command option are displayed as buttons along the bottom of the Command window The command in use is highlighted in GREEN E Command Window R 0x00000070 66 36 2c 89 a8 35 67 86 BB 36 72 65 66 33 32 2d R 0xb00000080 76 31 2e 31 66 66 63 98 5a 37 BB 98 1a 6c 48 5b LOG OFF Display a tange of memory SATA TD EXIT GO LOAD LOG MKDIR 6 1 ALLOC Allocate In Circuit Emulator Memor Full In Circuit Emulator memory mapping function Not a JTAG emulator feature Syntax ALLOC lt Channel gt lt Address range gt lt Memory attribute gt lt Write Protect attribute gt lt MEMORY ATTRIBUTE lt PROTECT gt lt START ADDRESS gt lt ADDRESS RANGE gt START ADDRESS lt Memory Mapping Channel gt Select memory mapping channel from Memory Map Setup dialog box lt Memory Attribute gt ARM Cortex Series User s Manual 22 of 81 USER Allocate address range to User memory RAM Allocate address range to emulation memory lt Write Protect attribute gt DISABLE Disable Write Protect ENABLE Enable Write Protect lt Start Address gt lt Address Range gt lt start address gt
32. cification dias 13 3 6 Power On and Off Sequence and Cautions cee ceescecessceceseeeceeeeeceeeeeceeceeceeeecseeeeesteeeesaes 14 Say gt Other Technical Cautions snn nenene ence aes a a i a ase anno aa 14 3 8 EJ SCT Side JTAG Hardware Interface ansia ii ideada 15 3 8 1 Illustration JTAG Side Hardware Interface eee ceeseceseeeceseeeceeneeceeneecseeeeeeneeeeseees 15 3 9 Recommended Hot Plug JTAG Connect Circuitry cece ceeceeceeceeceeeeeceeeeeceeeeecseeeeeseeeesaes 16 3 9 1 Hot Plug Operating Instructions a dada 16 3 9 2 Illustration Hot Plug JTAG Connect Circuitry coooooccoccccnooccconancnnnnnnononononnnncnonnncnnnncconnnocnns 16 3 10 JTAG Signal Specification A EEA Bet eae R 17 Sl TMS signal TDL renal cor oscila 17 32121 TRS Tn stenal SRS TO SA acota io tease oesie i ee eea ia eraa E ee Teea RE aohia 17 3 13 RICK Sima 17 A END loe at E aco Raco 18 3154 DEBRA e O O 18 3 16 DBGACK Stonal cs di 18 3I O A des ors cy hla a E a cco a canta EE decamicpmaneut eaten ec ucataee aT 18 318 VEREF SO Nal sso cc sce das 18 4 Operation Modes Development amp ProgramMing eeceeeseceesteceeseceeseeceeaeecceeaeecseeeeceeeeeeteeeees 19 4 1 Full JTAG Emulator Development Mode cece eescceesseceesseceeeneeceeaceceeaeeceeeeeceeeeeesteeeesaes 19 4 1 1 Illustration JTAG Emulator Development Mode coooocccnnocononocononccccooncncnnncnononcconnncninnncnos 19 4 2 Stand Alone JTAG FLASH Writer Mode 0 ceeccesscecsscecssececsscce
33. cify number of steps to execute If O ZERO is input then STEP command will execute until it reaches a breakpoint or the user inputs a keyboard command Description Single Step from the program counter or from a specific address stepping into all subroutines and function calls This command is the same as GO Step In ARM Cortex Series User s Manual 61 of 81 6 43 UPDATEALLWIN Update All WATCHPOINT Display Windows lt command gt lt mode gt UPDATEALLWIN lt UPDATEALLWIN gt ON Update all of WATCHPOINT windows OFF Don t update all WATCHPOINT windows Description Enable disable WATCHPOINT window update at the program counter location indicated by yellow highlighted text This command is same as Resource gt gt UPDATEALLWIN ARM Cortex Series User s Manual 62 of 81 6 44 UPLOAD Save object data to a file Syntax UPLOAD lt file name gt address range lt output format gt PC ENABLE DISABLE lt address value gt lt file name gt lt start address gt FILE NAME START ADDRESS lt address range gt lt value gt lt output format gt lt fill name gt Specify the upload file name lt address range gt start address Specify the memory range start address length Specify the number of bytes from the start address end address Specify the memory range end address lt output format gt Specify the saved file data format THEX64K Output Intel Hexadecimal 64K file format IHEX1M Output Intel
34. clock This might be a problem when using very low clock speeds There is a 100K pull down within the JTAG emulator ARM Cortex Series User s Manual 17 of 81 A Nr 3 14 TDO Signal TRSTn signal must be connected There is a 100K pull down within the JTAG emulator In non adaptive clocking mode the TDO signal is sampled by the JTAG emulator at the rising edge of the TCK signal In adaptive clocking mode the TDO signal is sampled by the JTAG emulator at the rising edge of the RTCK signal Sampling requires approximately 9ns setup time and 5ns hold time form the rising edge of the RTCK when using adaptive clocking mode The TDO signal timing specifications may be changed in revised versions of the WATCHPOINT debugger 3 15 _DBGRQ Signal This pin allows to quickly enter debug mode and should be connected if the unit under test supports DEGRQ debugging Output voltage follows target VIREF signal voltage Output timing is asynchronous 3 16 _DBGACK Signal This pin allows the JTAG emulator to quickly determine whether the target is in debug mode or not It should be connected if the unit under test supports it There is a 10K pull down within the JTAG emulator 3 17 VCC Signal Connects to the target power supply The JTAG emulator monitors the voltage at terminal VecIO 3 18 VTREF Signal Must be connected and goes to the target power supply directly This pin is usually tied to the target s power supply and used by the
35. csscceesscceesceesseecesseeeesnes 19 5 WATCGHAROINT Atl al cca essen Aia 20 5A Tutorial Location ni ias 20 5 2 WATCHPOINT CD Command Definitions and Locati0ON oooococnnococonoccconnnnconnncnnnncnonnnaninnnos 20 CAI AS O AA 21 6 1 ALLOC Allocate In Circuit Emulator Memory sesessssssseessesssessseressseesseeesseessesseesseresseee 22 6 2 ASSIGN or Evaluate expression and assign ValU8 ooooonnoconnnoccconaccnonnccnnonanonancnnnnnccnnnnnos 24 6 3 BATCH Execute MACRO batch file sisisccccsassscsisisegesedeauaccatescesenaaseducdesnacahatasennaedesmcctnnsees 25 6 4 BP Add Enable Disable breakpoints oooococnnncccnnncccnnnccconaccconncnonnncnononcnconnnncnnncnonnnnccnnnos 26 6 3 BPOER De l te Breakpornt s hssr anere eaea a sy AS ii ees 27 ARM Cortex Series User s Manual 2 of 81 6 0 BREAK Forced Breast a o e e read 27 6 7 BPOPT Br akpoint Options seres nnac a E A ats E E E ees 28 6 8 BPSWITCH Change breakpoint type Enable disable Breakpolnts ooononccnnonicinonccinnnos 29 6 9 CHECK Check amemory TA ai O ov asta ees 30 610 CD Chant DI AOS 32 6 11 CLOSE Close Project file vrai id dadas ches 32 6 12 CLS Clear Command Wind Was a 32 6 13 COPY Copy a Memory TIA 33 CLA CPRREA PCPR VRTE n dae ya adaleca O a E eL AE arica 35 6 15 DIR Listdir ctory Contes ontario tidad 36 6 16 DUMP Display memory range data CONtONt ooooooonnncccnonccinoncccnnancnnnnnnononcnnonnncnnnncnonnnccnnnnos 37 6 17 ENV Emulator env
36. d BIT7 MD4 CE2B BIT21 EXI1CMP BIT8 MD5 RAS2 BIT22 EXI BIT9 MD6 IOIS 16 BIT23 Not used BIT10 MD7 TXD BIT24 Not used BIT11 MD8 RTS2 E Not used 6 25 INIT Initialize the emulator environment Syntax INIT lt command LA Description Initialize the emulator hardware This command initializes the emulator environment breakpoint setup and emulation memory map ARM Cortex Series User s Manual 48 of 81 6 26 LOAD Load object and symbol files for debugging Syntax LOAD OBJSYM lt file name gt ENABLE DISABLE lt source file path gt OBJECT lt file name gt lt format gt ENABLE DISABLE lt source file path gt SYMBOL lt file name gt lt format gt ENABLE DISABLE lt source file path gt SYMBOL RELOAD lt load gt DELETE lt oad gt lt Command gt lt Mode gt lt File name gt lt Format gt OBJSYM NE SYMBOL File name lt LOAD gt Specify object symbol file for downloading OBJSYM lt Supported format gt AUTOIS YSROFICOFFIELFITEEE695 S AUFICODEVIEW Specify object file for downloading OBJECT lt Supported format gt AUTOIS YSROFICOFFIELFITEEE695 S AUFICODEVIEWITHEXIMHEXISHFIBINARY Specify SYMBOL file for downloading gt SYMBOL lt Supported format gt AUTOIS YSROFICOFFIELFIIEEE695 S YMTEXTIS YMTEXT2 RELOAD Specify the load number of the file to be reloaded DELETE Specify the load number of the file to be deleted ARM Cortex Series User s Manual
37. d Connector GNOD 7620 6002 8 GND Sumitomo 3A Co Ltd GND connect VTref to target power supply o Connect Ysupply to target power supply GND GND GND GND 3 3 1 Illustration Standard EJ SCT 20 20 pin female JTAG cable ARM Cortex Series User s Manual 11 of 81 3 5 Test Terminals amp Reset Button Under Rubber Cover On the underside of the EJ SCT there is a rubber dust cover protecting a reset button for the unit and several user test point connections Reset button AZ B O 6999899 e eo 6ess89898 A 13 3 5 1 Illustration JTAG Reset Button and User Test Terminals Pin Signal Type Signal Level 1 GND 5 RUNOUT Output Low 0 55v High 2 33v 3 RESETOUT Output Low 0 55v High 2 33v 4 XVCC Output LEVEL Input 0 5 0vDC 5 6 Not Used 7 EXTBRK Input 0 5 0vDC Function External Tester Ground Point LOW Unit under test CPU is not running HIGH Unit under test CPU IS running LOW Unit under test is In Reset HIGH Unit under test is NOT in Reset External Vtref Test Point DC Monitor point Voltage if gt 0 8vDC appears on JTAG OLE display 0 SvDC Resolution 0 25vDC Assert LOW to stop Unit under test CPU 1 The voltage level is displayed on OLED when voltage connected to the LEVEL terminal over 0 8V 2 The input signal threshold level is equal to half the target system power supply voltage Vtref 3 Signals referenced to test point GND Pin 1 under the
38. duct causing interference to radio communications if not used in accordance with procedures in the instruction manual This product my generate and radiate radio frequency energy There is a possibility that this product may cause radio frequency interference when used in residential areas It is the responsibility of the user to prevent or remedy interference complaints and problems at their own cost if this is the case This unit will not comply with FCC Rules if modified in any way without Sophia Systems authorization ARM Cortex Series User s Manual 7 of 81 2 Setup for Use With a PC a b c d e g h 2 1 WATCHPOINT Software Installation Do not connect the EJ SCT to the PC USB port until after the WATCHPOINT software has been installed so that the PC will have access to the USB driver WATCHPOINT versions are determined by the processor that they support Check to be sure that the version of WATCHPOINT being installed matches the processor on the unit under test Install Sophia Systems WATCHPOINT debug software using the supplied CD ROM Do not attempt to start a WATCHPOINT session until the JTAG hardware is installed For a WATCHPOINT session to start normally the PC must recognize the EJ SCT on a USB port and the EJ SCT must find a compatible processor on an active JTAG port The EJ SCT receives power via the USB cable when connected to a personal computer Make sure that the supplied WATCHPOINTt C
39. e Contact Sophia Systems for authorized repairs Prohibited Never touch Pull out plug Cable and connector cautions Treat connection cables gently Never expose them to heat kink twist or pull on connection cables Avoid straining or placing any objects on cables Do not attempt to touch the power connection during electrical storms to avoid electrical shock If you suspect that this product may have been exposed to a lightening strike do not attempt to use it Contact Sophia Systems for authorized technical inspection and repair Keep the chassis ground on this product away from any gas line or pipe Failure to do so may result in a gas explosion or fire Prohibited ARM Cortex Series User s Manual 6 of 81 Always observe the following cautions and instructions Failure to do so may result in electrical shock fire serious injury loss life and or damage to the product hardware There are NO user serviceable components inside the case Never attempt to disassemble modify or repair this product Failure to do so may result in electrical shock and risk of fire Contact Sophia Systems for authorized repairs No disassembling If you suspect that the product is damaged due to impact or having fallen do not attempt to apply power If in use at the time of the damage remove power immediately Failure to do so may result in injury or fire Contact Sophia Systems for authorized repairs Pull out plu
40. erand for memory search MATCH Search for a match between the search data and memory Search for a mismatch between the search data and memory content Only a single character can be specified A character string cannot be Neue specified for NOMATCH If you use a character string only the first character of the string will be used lt access size ASIZE gt Specify data access size for memory search BYTE Byte length memory search in byte data access WORD Word length memory search LWORD Long word memory search QWORD Quad word memory search Description Specify a memory range for specific data match or mismatch This command is same as Resource gt gt Memory Port gt gt Search ARM Cortex Series User s Manual 60 of 81 6 41 SHELLEXE Execute a shell script Syntax SHELLEXE lt F LE name gt Execute a shell program lt COMMAND gt SHELLEXE FILE NAME lt SHELLEXE gt Specify the PC path and file name Description Execute the specified shell program 6 42 STEP Step in Syntax STEP PC FROM lt address gt ASM SRC COUNT lt Number of steps lt Command gt lt Mode gt lt Address gt lt Setting gt lt Number of step gt lt Mode gt Specify start address for single step execution PC Start Step from the current Program counter FROM lt Start address gt Start Step from the specified address lt Setting gt ASM Assembly code step SRC Source code step lt Number of steps gt Spe
41. eters are omitted when entering a command the parameter values from the previous command entry are used Command Window A E Display version information WP EXE Ver2 1 1 22 2662 67 16 WPCOMMON DLL Ver2 3 11 13 2002 07 16 SSDL2 UXD Ver1 5 6 16 2666 63 31 MDNIOS DLL Ver1 6 6 6 2662 67 16 SBF DLL Ver1 1 8 1 2662 67 16 SYHTEXT DLL Ver1 1 8 3 2662 67 16 SYMTEXT2 DLL Yer1 6 6 2 2662 67 16 x gt DUMP 6x6 LENGTH 6x166 FORMAT HEX R 0x00000000 66 98 66 35 66 98 BB c cH 7f BB 30 He 6 R 6x66666616 56 4a 15 49 d5 62 dd 88 69 34 56 49 66 3 R 6x66666626 23 98 11 36 46 a4 62 98 26 7F 26 24 FH 9l R 0x00000030 66 7f 6e 4a 66 b4 OA 54 Bb 80 92 35 92 amp R 0x00000040 46 6a 4a 9b cH 15 e2 7e 63 88 92 Bd 32 2 R 0x00000050 66 36 56 49 eS 35 66 34 3f 89 13 34 14 34 R 0x00000060 bb 48 59 99 89 34 44 89 OA 36 06 98 29 7 LOG OFF Display next p Input commands on this line lt gt more continue CANCEL y Quick Command Keys Once an address or data value has been used in a command it is recalled the next time that you use the command You can press lt Space gt bar to fill in the previous value when you are prompted for a value or you can type in a new value If any command parameters are omitted when entering a command the parameter values from the previous command entry are used ARM Cortex Series User s Manual 21 of 81 The output of some commands executed from the WATCHPOINT main menu may also
42. g AC mains power caution Only plug the accessory power supply in to standard 110 VAC mains power Failure to do so may result in injury or fire Contact Sophia Systems for authorized repairs Prohibited Always ensure that this product chassis ground is at the same electromotive potential as ground on any unit under test Connecting a ground strap from the ground connection on this device to all peripheral devices is highly recommended to eliminate the risk Prohibited of damage and electrical shock Do not pull on the electric cable Grasp the plug or cable connector to insert or extract cable connections Failure to do so may damage the cable and risk injury or fire Prohibited Always observe the following cautions and instructions Failure to do so Warnings continued may result in electrical shock fire serious injury loss life and or damage to the product hardware Turn off power and remove power plug from AC outlet when connecting or disconnecting an option Failure to do so may result Required in electrical shock Avoid pulling the electric cable with extreme force Remove connections by taking the plug on hand only Failure to do so may result in electrical shock cable damage or the risk of fire Prohibited Avoid use and storage in humid areas such as found in a bathroom High humidity may result in electrical failure and shock due to liquid condensation forming on this product No hum
43. gt TRCEND lt Trace End Break gt lt mode gt lt status gt 4 444444 kd ee ee lt Mode gt TRIGGER Trigger Break on Trace Trigger Specify Trace trigger condition in the Break Trigger Setup to enable break when trigger condition is met Break on Trace End Specify Trace trigger condition in the Brea mace End Trigger Setup to enable break on Trace End after delay cycles are captured lt Status gt DISABLE CPU will not break on condition ENABLE CPU will break execution on condition Description Enable disable optional break conditions This command is same as Resource gt gt ICE Environment gt gt Break and Resource gt gt Trace gt gt Setup gt gt Trace Break Option ARM Cortex Series User s Manual 28 of 81 6 8 BPSWITCH Change breakpoint type Enable disable Breakpoints Syntax BPSWITCH lt bp status gt ENABLE DISABLE lt command gt lt bp status gt lt status gt BPSWITCH lt Breakpoint status gt Select Breakpoint Type HARD Select all Hardware Breakpoints SOFT Select all Software Breakpoints lt Status gt Specify disable enable Breakpoint DISABLE Disable Breakpoint ENABLE Enable Breakpoint Description Change breakpoint type Enable Disable Breakpoints This command is the same as Breakpoints in the Enable Disable All S W BP Enable Disable All H W BP menu ARM Cortex Series User s Manual 29 of 81 6 9 CHECK Check a memo
44. idity Do not allow any metal items such as copper wire clippings or staples to get into this product Failure to do so may result in electrical shock or fire Don t touch AC adapter or product while their power ON duration Failure to do so may result in the risk of injury Prohibited Prohibited 1 4 Class A FCC Notice Don t transfer the product with the option connected because the option may drop and lead to injury Prohibited Make sure your hands are dry Avoid handing power plug with wet hands Failure to do so may result in electrical shock Prohibited Keep all liquids away from the product If a liquid does spill on to the product turn off power and pull out plug from power outlet immediately Contact Sophia Systems sales office or distributor for technical inspection and repair Avoid covering the adapter and product Failure to do so may result in fire or deform the case due to the extreme high temperature Prohibited Prohibited Do not cover the air flow ventilation holes in this product Failure to do so may result in case deformation or fire Prohibited This product has been tested and demonstrated to comply with the limits for class A digital device pursuant to part 15 of the FCC Rules These limits are designed to provide proper protection against harmful interference when the product is operated in a commercial environment There is a possibility of this pro
45. ion Description RegisterName The specified register s current value Example 0x4000 B RegX Write byte data in Reg X to address 0x4000 0x4000 W Reg Y Write word data in Reg Y to address 0x4000 A RegZ Assign the value in the Reg Z register to Work variable A If RegX 0x1234 True when Reg X value equals 0x1234 7 8 Modify Register Value Use the ASSIGN or dot command to modify register as follows Expression Description RegisterName lt value gt Write a value to the specified register Example RegX 0x10 Assign 0x10 byte value to Reg X Reg Y 0x1234 Assign 0x1234 value to Reg Y 7 9 FOR FBREAK NEXT Repeat processing Syntax FOR lt Work variable gt lt Initial value gt TO lt Condition gt STEP lt Step value gt lt Command gt FBREAK lt Command gt NEXT lt Work variable gt The lt work variables gt is used as a counter and is initialized by lt initial value gt It is incremented by the value specified by lt step value gt You can lt Work variable gt specify the work variable from A Z and a z The lt work variable gt of the NEXT command must be as the same as the one specified in the FOR command lt Initial value gt value gt The lt Initial value gt is a The lt Initial value gt is a signed number specified for the work variable number specified for the work variable The lt Condition gt is used to control the flow of the repeat processi
46. ironment options idas 39 6 18 ERROR ECHO Error message display SettiOd8S ooooonnnnccnnnccinoncccnncccnnnncccnonnncnnnncconnncconnnos 41 6 19 EXTCMD Execute WATCHPOINT commands from an external application 42 6 20 FILE EU a memo TM noi is 43 6 21 EMELBAR gt Clear Flash Menor id Sedan 44 6 22 FMLOAD Change enable disable flash memory downl0ad oooonnccnnncninnononccocncnoncnoncnnnnos 45 6 23 GO Start real time program executlON oococnnocononocononeccnnnnnnnnnnnncnnnnncnnnnncnnnonconnnnnnncncnnnccnnnnos 45 6 24 HIST Display Trace History aria dans 46 6 25 INIT Initialize the emulator environment ooooonnncccnoncccnoncccnnnanononaconnnononnncccnonnnnnonnnnonnncnnnnnos 48 6 26 LOAD Load object and symbol files for debugging ooooococnnncccnoncnononcnononcnonanaconnnaconnnnos 49 6 27 LOG Start stop logging Command Window Output ccooocccnoncccnoncccnoncnononcncnnnnnnnnnnninnnccinnnos 50 6 28 MESSAGEBOX Enable target power On Off a user message DOX oooocccnoccccnoncccooncccnnnos 51 6 29 MEDIR Createra Difectory ii A A E A 51 6 30 NEWBATCH Start stop recording user commands to a macro batch file 52 6 31 OPTION Command window OPtiONS ooccccnnocononiccnononcnoncncnnnnnonnncnnnnnnnononcnnonnnnnnnncc nan ncnnnnnnss 53 6 32 PASS Step IN cae 54 6 33 PLDLOAD Load PLD initialization files ridad iaa 55 6 34 QUERY Display current environment Setting oooonnccnnncccnonocononcccnnnnnonnnnnonnncnon
47. lt ASIZE gt BYTE Byte size memory copy WORD Word size memory copy LWORD Long Word Memory copy QWORD Quad word memory copy Description Copy from one memory area to another memory area The destination range User or Emulation memory must be allocated in the memory map This command is the same as Resource gt gt Memory Port gt gt Copy ARM Cortex Series User s Manual 34 of 81 6 14 CPRREAD CPRWRITE lt Command gt lt p lt ep gt cp_num gt lt opeode_1 gt CPRWRITE lt opcode_2 gt OPCODE2 lt CPNUM gt CPRREAD In CPRREAD specify the p lt cp gt cp_num of MRC lt cond gt p lt cp gt lt opcode_1 gt Rd CRn CRm and lt opcode_2 gt with 0 15 In CPRWRITE specify the p lt cp gt cp_num of MCR lt cond gt p lt cp gt CERWRITE lt opcode_1 gt Rd CRn CRm and lt opcode_2 gt with 0 15 lt OPCODE1 gt CPRREAD In CPRREAD specify the lt opcode_1 gt of MRC lt cond gt p lt cp gt lt opcode_1 gt Rd CRn CRm and lt opcode_2 gt with 0 15 CPRWRITE CPRWRITE specify the p lt opcode_1 gt of MCR lt cond gt p lt cp gt lt opcode_1 gt Rd CRn CRm and lt opcode_2 gt with 0 15 lt CRN gt CPRREAD In CPRREAD specify the lt CRn gt of MRC lt cond gt p lt cp gt lt opcode_1 gt Rd CRn CRm and lt opcode_2 gt with 0 7 In CPRWRITE specify the lt CRn gt of MCR lt cond gt p lt cp gt lt opcode_1 gt CERWEITE
48. ly be selected However if the TDO signal is delayed too long the JTAG will be set to low frequency RTCK mode setup is dependent on the RTCK signal information from the target unit under test The TCK signal specification above may change when WATCHPOINT updates are released 1 2V 5V output voltage follows the VIREF signal from the target unit under test 3 11 TMS signal TDI signal TMS and TDI signals set up timing set at TCK falling edge When RTCK 2 Omode is used the RTCK synchronizes with the JTAG emulator for debugging TCK signal specification above may change when WATCHPOINT updates are released 1 2V 5V output voltage follows the VIREF signal from the target unit under test 3 12 TRSTn signal SRSTn signal TRSTn and SRSTn signal must be connected Timing is done by an asynchronous assertion When the JTAG emulator is initialized the output is at the low state Output voltage is an open drain output This signal is a pull up voltage that follows the unit under test VccIO level A 1K Q ohm pull up should be added to the controlling device 3 13 RTCK Signal The TCK clocking frequency can be set to non adaptive or adaptive modes If using adaptive clocking mode the JTAG emulator uses the RTCK signal to generate the TCK signal When the emulator detects the falling edge of RTCK it generates the rising edge of TCK The TCK signal is delayed due to the time needed to sample the RTCK signal using the emulator internal
49. mmand results to a file for printing or for future reference This command is same as View gt gt Binary History window or View gt gt Mnemonic History window ARM Cortex Series User s Manual 46 of 81 Inf1 Inf2 Inf3 Depending on a data format specified in the Trace memory dump the CPU pin status can be displayed in the Inf1 Inf2 and Inf3 tables as follows Inf1 BITO CSO BIT14 WE6 CAS6 DQM6 BIT1 CS1 BIT15 WE7 CAS7 DQM7 REG BIT2 CS2 BIT16 RD WR BIT3 CS3 BIT17 BS BIT4 CS4 BIT18 RD CASS FRAME BITS CS5 BIT19 RAS BIT6 CS6 BIT20 RDY BIT7 Not used BIT21 CKE BITS WE0 CAS0 DQMO BIT22 DACKO BIT9 WE1 CAS1 DQM1 BIT23 DACK1 BIT10 WE2 CAS2 DQM2 ICIORD BIT24 Not used BIT11 WE3 CAS3 DQM3 ICIOWR a Not used BIT12 WE4 CAS4 DQM4 BIT31 Not used BIT13 WE5 CAS5 DQM5 Inf1 Inf2 BITO Not used BIT19 IRL2 Not used BIT20 IRL3 BIT7 Not used BIT21 RESET BITS PODEXIO BIT22 BREW BSACK BIT9 PODEXI1 BIT23 BACK BSREQ BIT10 PODEXI2 BIT24 DREQO BIT11 PODEXI3 BIT25 DREQ1 BIT12 Not used BIT26 DRAKO BIT13 Not used BIT27 STATUSO BIT14 Not used BIT28 STATUS1 BITIS Not used BIT29 Not used BIT16 NMI BIT30 SCK2 MRESET BIT17 IRLO BIT31 TRST BIT18 IRL1 ARM Cortex Series User s Manual 47 of 81 Inf3 BITO RXO BIT14 Not used BIT1 CTS2 BIT15 Not used BIT2 Not used BIT16 Not used BIT3 MDO SCK BIT17 WPERR BIT4 MD2 RXD BIT18 Not used BIT5 MD1 TXD BIT19 Not used BIT6 MD3 CE2A BIT20 Not use
50. nd illustrations are part of the WATCHPOINT Help file This file is available apart from a WATCHPOINT session Go to the WATCHPOINT WPS_ARM_Mfhelp directory and double click on ARM chm When the file opens select the Command Line folder ARM Cortex Series User s Manual 20 of 81 WATCHPOINT has a command line interface for entering commands directly from the keyboard Commands are entered in the Command window Quick command buttons open on the lower edge of the command window as you type a command on the command line As you type the first few letters of the command new buttons are presented You can use the Left and Right arrow keys to scroll through the quick command buttons and highlight your desired command When the command is highlighted pressing the lt Space gt bar will enter the command text on the command line You may also use the fand up and down keys to scroll and view command history You can also enter the command by using the mouse to click on the gt and lt buttons under the command line to select desired command button Once a quick command is entered additional context sensitive buttons become available for that command s options Depending on the command you either select an option as described above or you are prompted to enter additional information such as address data value filename etc When all options have been selected or typed in press lt Enter gt to initiate the command If any command param
51. ng with a lt Condition gt terminating value The lt Step value gt is a signed number added to the work variable after each lt Step value gt completed loop is processed The default number is 1 The step value can be a negative number Description ARM Cortex Series User s Manual 69 of 81 The FOR command repeats a series of commands between FOR and NEXT until the value of a counter work variable is satisfied The FBREAK within the FOR NEXT loop is used for exiting the FOR NEXT loop Example FOR A 0 TO A lt 100 TEP 10 IF A 50 FBREAK ENDIF DUMP 0 LENGTH A NEXT A 7 10 WHILE WBREAK WEND Repeats batch processing Syntax WHILE lt Condition gt lt Command gt WBREAK lt Command gt WEND Description The WHILE command repeats the series of commands between WHILE and WEND while the specified lt Condition gt is true not 0 The loop ends when the lt Condition gt is false equals 0 The lt Condition gt is used to control the processing flow The WBREAK within the WHILE WEND loop is used for exiting the WHILE WEND loop WHILE WEND loops may be nested but each WHILE WEND loop must be contained completely within another WHILE WEND loop Example A 0 WHILE A lt 100 IF A 50 WBREAK ENDIF DUMP 0 LENGTH A A 10 WEND Notes WHILE WEND WBREAK must be on separate lines WHILE and WEND must be paired ARM Cortex Series User s Manual 70 of 81 7
52. ngth PC address Disable no address value Refer to the CD Change Directory command for details for setting the location to save the upload file ARM Cortex Series User s Manual 64 of 81 7 Batch Macro Command Processing Batch macro processing is used to automatically perform repetitive tasks WATCHPOINT batch processing supports program loops and conditional branches Expressions can contain WATCHPOINT work variables system variables and references to memory register contents and symbols values Each batch line requires a carriage return at the end of line Command execution does not wait for the result of the current command and will continue to execute the next command If pass stepping over a module at full peed is used there is the possibility that it will be interrupted by as subroutine Following is an example that shows how to cause the current command to finish prior to the next command Example Finish command prior to the next command If the CPU has topped then batch execution drops out of the loop and executes the print BREAKNUM line If the CPU is running the batch execution will execute the next command after 10 attempts You can replace the print BREAKNUM command with any other command that you want to execute FOR A 0 TO A lt 10 TEP 1 IF CPUSTATUS 0 print BREAKNUM FBREAK ENDIF wait 1 NEXT A You can create a batch macro program and execute it from within the Command Window using the BATCH command
53. nload Description Change Enable Disable Flash memory Download This command is the same as Disable flash memory amp Not download to flash memory in the Resource gt Flash Memory gt Setup menu 6 23 GO Start real time program execution Syntax GO PC FROM lt address gt PC Starts real time execution from the current program counter FROM lt address gt Starts real time execution from the specified address Description Starts real time execution from the PC or from a specific address Note Not all emulator functions are available while the GO command is active ARM Cortex Series User s Manual 45 of 81 6 24 HIST Display Trace History Syntax HIST lt start cycle gt LENGTH lt length gt TO lt end cycle gt FORMAT MNEMON BINARY SIGNAL ENABLE DISABLE lt command gt lt start cycle gt lt cycle range gt lt value gt START CYCLE LENGTH S Ha lt mode gt MNEMONIC i l BINARY 2 i DATA lt cycle range gt start cycle Specify the starting Trace cycle number to display length Specify number of Trace cycles to display end cycle Specify the last Trace cycle number to display lt format gt Specify data format in the Trace memory dump MNEMONIC Display command fetch cycles in disassemble code BINARY Display all bus cycles in binary DATA Display all bus cycles in dump form Description Display real time trace history data You can use the logging command to store the HIST co
54. nnnnnnnnncnnnnnos 55 6 36 RASM Reverse assembly esorcnaci ic iii ransis o eeii a e aines 56 6 37 REG EMS CPU resister Valle neinn aa 57 6 38 RESET Reset th CPU Sii E Meee ie Bleed E R 57 6 39 SAVEWIN Save command window contents to fil ooonniconinococnnoncccnoncnononccinnnccnnnnnos 58 6 40 SEARCH Memory secar qa 59 64l SHELLEXE Ex cute a shell scrpba ai a a e N a needs 61 O A ue eaneeotians 61 6 43 UPDATEALLWIN Update All WATCHPOINT Display Windows ooccccoccccconcccnnnccnnnnos 62 6 44 UPLOAD Save object data to a Tle jiscisisicassccsssacveesccecanscecsssaesdandsansseaensesedatecapeadevarsdentenees 63 7 Batch Macro Command Protest ii 65 Tel Work Variables a A A Ad an 66 72 System Variablen a an ad as 66 Ia Babel A A loante lls sa Getta ai is 67 TL COMMENT elise A Bae A elie Bat aden Baa a de a 67 7 3 View Mena VOD O Et Odin 68 T6 Modify Memory 10 Dita acid 68 T1 View Register Valle ii ias 69 A A A AO 69 7 9 FOR FBREAK NEXT Repeat processing nia is 69 ARM Cortex Series User s Manual 3 of 81 7 10 WHILE WBREAK WEND Repeats batch processing oocccnnncccnnncccnoncnononncconnnnnnnnncnnnnos 70 Tell GOTO Unconditional branch aid o aa gues 71 7 12 IF ELSEIF ELSE ENDIF Conditional Process Control ccccccccccnonccinininininininininaces 71 T13 END Terminate Batch Processing rine ona 72 7 14 QUIT End the current macro occcccnnooononnnnnnnnnnonnnnnnnnnnnnnnnnonnnnnnononononnononnnnn nn nnncocononnnnona
55. nonos 12 7 15 ECHO Batch commands display On off cece eescessseceesseceececeeseeceeaeeceeneecseaeecneneeeesaes 73 TAO KEYIN ORG y BOard AN PUL esen a cece naeeaau E EA EESE 73 AO dr display A O 74 718 BRE PE Audible aer o e o e 75 719 WAIT Delay b teh Macro Procesado 75 1 20 Work variables dat 75 Data EXpressiom Formats ernaint e n a e N a saeauceds a a aa 76 ede Memory A O 76 8 2 WATCHPOINT Data Expressions sessssesseessessseeesseeesseesstessersserssseesseeessresseessereseeeesseessrest 77 8 3 Address EXPIESSIOO Si o ii ion 11 SE CPU Resister EXPressIon Sera Taa e E E EE E E ua ea a a ase aaa TI S Address Ip idas 78 8 6 Data Input O e tea 78 8 7 Memory I O Port References iio ad ice 78 A E DA 79 Al VININGS TTS al A TAS 79 9 2 Address EX press nennen n dias 79 9 3 PU Register EXPO lo e de e 79 E Addr ssFormat Lea SS 80 YN Da e 80 9 6 Memory VO Port Referentes 80 ARM Cortex Series User s Manual 4 of 81 1 Technical Information and Cautions No part of this publication may be reproduced without the publisher s prior permission Information in this publication is subject to change without notice NO LIABILITY FOR DAMAGES In no event shall Sophia Systems Ltd or its suppliers be liable for any damages whatsoever including without limitation damages for loss of business profits business interruption loss of business information or any other pecuniary loss arising out of the use of or inability to use this
56. op recording commands and return to normal command mode ARM Cortex Series User s Manual 52 of 81 6 31 OPTION Command window options Syntax OPTION MORE lt More Mode lt Command gt lt Mode gt lt More Mode gt AAA lt MORE MODE gt Specifies More mode for Command execution ENABLE Displays one window full of command data at a time if there is more data than can be shown within the window DISABLE Scroll when there is more than one screen display Description Currently MORE is the only option supported If MORE is enabled it will temporarily stop scrolling if there is more than one screen of data from a single command When active you can view the data one screen at a time MORE view the remainder all at once CONTINUE or cancel without viewing the rest of the data CANCEL If MORE is DISABLED it will scroll continuously until the command output is completed You can also CANCEL the screen output before it is completed ARM Cortex Series User s Manual 53 of 81 6 32 PASS Step Over Syntax PASS PC FROM lt address gt ASM SRC COUNT lt number of steps gt lt Command gt lt Mode gt lt Address gt lt Setting gt lt Number of step gt lt Address gt PC Start Step execution from the current Program counter FROM lt Start address gt Start Step execution from the specified address lt Mode gt ASM Step execution at the assembly level SRC Step execution at the source level
57. p o y co METE QWORD ARM Cortex Series User s Manual 43 of 81 lt address range gt start address Specify starting address for memory fill range length Specify number of Bytes from the starting address end address Specify ending address of memory range lt fill data gt Specify data value for memory fill BYTE Memory fill byte data operand WORD Memory fill word data operand LWORD Memory fill long word data operand lt access size gt Specify data access size for memory fill BYTE Memory fill byte data access WORD Memory fill word data access LWORD Memory fill long word data access Description Specify the memory fill address range and data This command is same as Resource gt gt Memory Port gt gt Fill 6 21 FMCLEAR Clear Flash Memory Syntax FMCLEAR ALL BLOCK lt address gt lt command gt lt start address gt lt FMCLEAR gt lt ADDRESS gt lt mode gt Specify clear range ALL Clear all device sectors including address BLOCK Clear block including address lt start address gt Specifies start clear address Description Clears the Flash Memory contents ARM Cortex Series User s Manual 44 of 81 6 22 FMLOAD Change enable disable flash memory download Syntax FMLOAD ENABLE DISABLE lt command gt lt status gt FMLOAD DISABLE Mk E lt Status gt Specify disable enable Flash memory Download DISABLE Disable Flash memory Download ENABLE Enable Flash memory Dow
58. r program is running and perform some action when it stops at a breakpoint WATCHPOINT system variables are defined in the following table The system variable names must be entered in UPPER CASE characters System Variable Description CPUSTATUS e Gus bee 1 during user program execution CPUCODE Not public ICE Unit installed status In bit field 0 not installed 1 installed SYSTEMBOARD bit 0 Emulation Memory Unit bit 1 Trace Unit bit 2 CPA Unit SRAMMEM SRAM memory size byte DRAMMEM DRAM memory size byte CPUMEMSIZE CPU memory range Kbytes CPUIOSIZE CPU I O range Kbytes O Trace off TRACESTATUS 1 Trace executing 2 Trace end ARM Cortex Series User s Manual 66 of 81 Example if CPUSTATUS 1 True during CPU execution 7 3 Label The batch macro program can use label to branch to a different part of the program Label starts with a colon You cannot write a command on a Label line Example CSOME_HERE 7 4 Comment Comment lines must start with double forward slash followed by the comment statement Comment Lines do not affect program execution Example This is Comment Line if a 0x 1234 if a equal to 0x1234 You can not write a comment on the same line when using the following commands batch bp bpl check copy dump exit fill mkdir newbatch option overlay print search upload Example The following example causes an error to occur batch test bat
59. ry range Syntax CHECK lt address range gt SIZE lt data size gt MASK ENABLE DISABLE ASIZE lt access size gt lt command gt lt start address gt lt address range gt lt value gt CHECK kl START ADDRESS LENGTH RANGE o Hie aon mode gt lt size gt om momo y ao y lt data mask gt specify data gt lt address range gt lt start address gt LENGTH lt length gt TO lt end address gt lt start address gt Specify starting address for memory allocate range lt length gt Specify number of Bytes from the starting address lt end address gt Specify ending address of memory range ARM Cortex Series User s Manual 30 of 81 lt SIZE gt Specify data size for memory check BYTE Memory check in byte size WORD Memory check in word size LWORD Memory check in long word size QWORD Memory check in quad word size lt data mask gt Specify data mask for memory check DISABLE Do not specify Mask data ENABLE Specify Mask data lt ASIZE gt Specify data access size for memory check BYTE Memory check in byte size access WORD Memory check in word size access LWORD Memory check in long word size access QWORD Memory check in quad word size access Description Checks a memory range If errors are found the address write value and read value are listed in a table This command is the same as Resource gt gt Memory Port gt gt Check ARM Cortex Series
60. t Address value gt Logic address Not E for memory map r lt Address value gt Physical address N A INR lt Address value gt Internal I O register area N A lt Global symbol gt Global symbol address N A Some expressions may not be available depending on the device under test configuration 8 4 CPU Register Expressions Use the following notation when using CPU register values in expressions Expressions are not case sensitive RO R1 R2 R3 R4 R5 R6 R7 R8 R9 R10 R11 R12 R13 R14 R15 C PSR O SSR b ARM Cortex Series User s Manual 77 of 81 8 5 Address Input Format WATCHPOINT address input to a dialog box or command line argument may be entered as a combination of numeric values address expressions and register expressions 8 6 Data Input Format WATCHPOINT data value input into a dialog box or command line argument may be entered as a combination of numerical values register expressions and math expressions 8 7 Memory l O Port References Use the address notation to refer to the data stored at the specific memory address This notation can be used in batch files as a test for conditional branching or with the ASSIGN or dot command in the command line interface to view or modify memory I O port EL expression Refers to byte data at specified address address W Refers to word data at specified address address expression L Refers to long word data at specified address Example 0x4000 B 0x10
61. tions Turn target POWER SW_SIGNAL off Turn target POWER SW_SIGNAL on EJ SCT detects target power supply to start normally At this point the EJ SCT can control signal lines If the SRSTn target reset signal DBGRQ DBGACK RTCK signals are not available on the target then these signals can be no connects NC Normal connections are detailed below Target sub sr ate 20PRITAG connectar 18 36Y i power opp ky kvelof TTAGsigral gt AJ E SW POWER Bath swich 155 RSTn 9 TCK 5 TDI 17DEGRQ 13TDO 19DEGACK URTCK 3 9 2 Illustration Hot Plug JTAG Connect Circuitry ARM Cortex Series User s Manual 16 of 81 p lt ZEG i PA Se 3 10 JTAG Signal Specification TCK signal Required and must be connected Possible Clock Frequencies 2 1 66 66MHz 33 33MHz 16 66MHz 8 33MHz 4 16MHz 2 08 MHz and 1 04MHz 2 2 Possible low speed clock is supported from 1 500KHz If RTCK and low speed modes are not being used that the JTAG clock has a 50 duty cycle TCK can be left low or high since it is just used for communication to the CPU for JTAG When the RTCK signal changes there is some initial delay since the JTAG emulator also needs some time to process the change in RTCK When the low speed mode is used then special consideration of the TCK signal should be understood in terms of duty cycle When automatic setting is selected in the WATCHPOINT set up menu the appropriate JTAG frequency will usual
62. valuates the lt numeric expression gt and displays the result in the specified lt format gt in the Command window separates lt comment gt and lt numeric expression gt by a pace Example PRINT abcdefg abcdefg PRINT SA 14243 B 1 2 3 A 0x00000006 6 B 0x00000006 6 SA Oxffffffff PRINT SA A A Oxffffffff 1 PRINT A A B A 1111 1111 1111 1111 PRINT SA A LB A 1111 1111 1111 1111 1111 1111 1111 1111 ARM Cortex Series User s Manual 74 of 81 7 18 BEEP PC Audible alert Syntax BEEP Description When the BEEP command is executed a beep sound is output to the PC speaker Example IF A gt B BEEP ENDIF 7 19 WAIT Delay batch macro process Syntax WAIT lt second gt lt Second gt Specify number of seconds for delay before batch processing is topped Description When the WAIT command is encountered ina batch processing will top for the specified number of seconds before continuing with the next command line Example IF A gt B WAIT 10 wait for 10 seconds ENDIF 7 20 Work variable Work Variable Type Designator Baich 0 All string characters from the command line 1 9 Batch variables range from 1 9 Global variable A Z Local variable a z Example a 0x 10 Assign value 0x10 to Local variable a B 0x4000 W Assign Word data at address 0x4000 to Global variable B If a 0x 1234 True when Local variable a equals 0x1234

Download Pdf Manuals

image

Related Search

Related Contents

CSW with GeoNetwork - NETMAR - Nansen Environmental and  Escáner láser de seguridad RLS 100  取扱説明書 ローダウンフロント フォークスプリング ご使用前に必ずご確認    Operating Manual for extrusion valve MMKD-30 KV/LV  Résumé des principales exigences et règles des trois conseils de    鋼 NEWM。T。B  Universal Power Group 12V 2A User's Manual  iStarUSA DAGE440T7-ES computer case  

Copyright © All rights reserved.
Failed to retrieve file