Home

CM25-00323-5E

image

Contents

1. a ca 78 3 44 s SU Lait uie coat ARUM cb LM DI DL DL 79 3 154 SET EVENT usu aan anna maqna amia nya Ld Ud ua De PU 80 316 SHOWBVENT cute ioo ha 82 317 CANCEL EVENT cru ir oi ERA Se 83 318 ENABLE EVENT ben dcc cde pan dE ds len adr of 84 319 JBISABEEIEVENT Lahr tu A asa heu 85 3 20 SET SEQUENCE hn qtu as nn el a naan Day ka 86 932p SHOW SEQUENCE z unancha qasay usus 88 3 22 CANCEL SEQUENCE eve el ont escas t 91 329 ENABLE SEQUENCE deberet tiae treats eism ufa ont dec MBA ccelo oe 93 9 245 DISABLE SEQUENCE 2 aa E T 94 225 e cosh oot S oS sealed GER an ASG Lent 95 SSHOW DELAY pU don 96 CHAPTER 4 Program Execution Analysis Commands 97 Ad SET MULT TRA CE bo dus Sureste Deu ACE scd soo a 99 42 SHOW WATT BAG E latte ua tenu ese Destined cado 100 43 GLEARMU
2. 226 PAG uu an S n d A Een 227 viii YLOADNUM itti eie eo et wee te lee pe i ped Pre eR e fente t ortae fs 228 14 8 9 WW 91 YS YD 4 n nn nas 229 14 9 96S TRGET iiit tiefe ette tt onte atten crede bu eot ee Er Ba riget edita etd 230 14 4 0 96S TRSTR Leda ai ie ee E oet He eee Lao eee pine ep e eL ee 231 TA 96S TROMPDP it ete dee ove e iactu da ut dapes ud Ro Sa TERT IE ORE ec 232 14 42 96S TREEN uh iet Eee n esee e Pea ee To nde deba Ee EH av 233 NEA MUERE IE 234 9965S Y MEEN i teet eb EE e A 235 14 1539 ST VALE T EAM DR sS IUE 236 1416 YTOSTR M E 237 1447 9 5EVAL iiit o het el eta ee ee OU SG IIR ONE A LED Lu 238 APPENDIX 239 APPENDIX A Manager Related Messages 240 APPENDIX B Error Message for Debuggers 2 eene nennen nennen nnns 263 APPENDIX C Execution Suspension Messages 5 298 INDEX sds 305 CHAPTER 1 Environment Setup Commands This chapter describes the Environment Setup commands N O i m cmo sk SRL umb T kI ON G N
3. as 51 SET DIMERSCAEE 9 SET ERAGE es a 126 SET VARIABLE cde dud 193 SET VECTOR I eed iota d 35 SET WATCH 40 SHOW SHOVCALIAS a Mew e atk 191 SHOW BREAK 5 0 1 67 SHOW CARDS aaa Selon 122 SHOW COVERAGE cct 113 SHOW DATABREAK crees 76 SHOW DELAY 96 SHOW EVENT toten 82 SHOW s 47 SHOW INPORT 4c Sanna een tS 26 SHOW INTERRUPT ccccssesecsessesessesececeeeeeeeees 33 202 SHOW MAP oc itte perve cities sicat 19 SHOW MEMORY ccccscsseseceeseceeseceeseceeseceeeeeees 152 SHOW MODE 8 SHOW MULTITRACE cscssessssecsssessssecseceesesee 100 SHOW OBJEGIN ee iie 212 SHOW odia 30 SHOW OUTPUT 209 SHOW PATE s uq am a a R 181 SHOW PERFORMANCE 109 SHOW JUADIDC 12 SHOW RAMMONITOR ces 139 SHOW REGISTER eerte ttes 158 SHOW SCOPE cette 182 SHOW SEQUENCE 88 SHOW SOURCE I 14 SHOW STATUS au ua ua aa uu Dt 57 53 SHOW SYSTEM I aa tete 15 SHOW TIMER 123 SHOW TIMERSCALE rte 10 SHOW TRA
4. iste Ao diro The occae E ah 148 5 9 2SET MEMORY m duties E E tae Sra 150 54 TOSHOWAMEMOEUY RA hau Ma SG S DRM E 152 55 2 o Ze u aR ceo ice ttt eun eA cec EIS M DLE 155 5 65 SET REGISTER 25125 oir Donde Gott bct dain Rubia kau 157 Bv REGISTER alpa sih esci n umasapa a asua a yas 158 5 9 160 uz asta kuya aq naa aa AT eu EP 161 MOVES ont deteci pd eR ur DA TAIN M 162 ua e tp np emnt 163 BAG eR C A 165 8218 A scende dir rece x dM se le 166 CHAPTER6 Line Assemble and Disassemble Commands 167 6 1 ASSEMBLE gustay a onain ea uo hte M T denial 168 62 JDISASSEMBLE e icc tmn oa 169 CHAPTER 7 Load and Save Commands 2 171 7 1 KDT N D ad easet sana T a m m e 172 To SOAM z oe smua us xU EIE Nd LL E NM S epo A Q ritus 175 vii CHAPTER 8 Source File Symbol Comman
5. eee 79 ENABLE 78 SET DATABREAK type 1 72 SET DATABREAK type 2 74 SHOW DATABREAK mmm 76 DELAY SET DELAY n Aiea 95 SHOW DELAY ctsicsiuvacsiiveveuccetepestiatdendassaeccbest ae 96 DISABLE 2222 71 DISABLE 119 DISABLE 79 DISABEB EVENT aa Au a D Aya 85 DISABLE LOGGING 205 DISABLE MULTITRACE 104 DISABLE 143 DISABLE SEQUENCE eee 94 DISABLE TRACE fics site 134 DISABLE 22 DISABLE WATCHDOOG eem 38 DISASSEMBLE DISASSEMBLE ern rettet 169 DOWN POW N aetati a ettet trei teresa 184 DUMP 163 ENABLE BREAK 70 ENABLE 1 118 ENABLE 78 ENABLE EVENT ettet tht 84 2 2 204 ENABLE MULTITRACE eese 103 ENABLE 142 ENABLE SEQUENCE eee 93 ENABLE TRAGCE
6. B Format MOVE transfer source address range transfer destination address Parameters transfer source address range address formula Specify the memory area from where data transferred transfer destination address address formula Specify the memory location to where data to be transferred Description The MOVE command transfers data from the specified memory area to the specified transfer destination B Example MOVE 2000 3000 4000 162 CHAPTER 5 Memory Register Operation Commands 5 11 DUMP The DUMP command dumps data in the specified memory area B Debugger Ema Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 Dmm B Format DUMP starting address address range Parameters starting address address formula Specify the memory location address where dump to be started address range address formula Specify the memory area range to be dumped Command qualifiers Display unit BIT Dumps data in bits BYTE default when omitted Dumps data in 8 bits WORD Dumps data in 16 bits LONG Dumps data in 32 bits 163 CHAPTER 5 Memory Register Operation Commands Description The DUMP command dumps data in the specified memory area When only starting address is specified the DUMP command displays the first 16 lines in the output window When no parameter is specified the command displays t
7. B Format Format 1 gt SHOW PERFORMANCE STATUS Format 2 gt SHOW PERFORMANCE COUNT event number lt Format 3 gt SHOW PERFORMANCE TIME event number lower limit upper limit display interval Command qualifiers classified by function STATUS Displays operation setting state of performance measurement when buffer is full COUNT Displays count result of times that event occurs TIME default when omitted Displays result of measuring time between two events Parameters event number Specify the event number 1 to 8 for displaying the setting contents When displaying the result of time measurement the operation will be the same even if the number of either the starting or ending event in the measurement section is specified 109 CHAPTER 4 Program Execution Analysis Commands lower limit default decimal number Specify the lower limit at which the measured time is displayed graphically The unit is 1 us if the minimum measured time of a timer is 1 us and 100 ns if it is 100 ns If this parameter is omitted an appropriate value will be given upper limit default decimal number Specify the upper limit at which the measured time is displayed graphically The unit is 1 us if the minimum measured time of a timer is 1 us and 100 ns if it is 100 ns If this parameter is omitted an appropriate value will be given display interval default decimal number Specify the interval at w
8. Example The start up is NORMAL gt 5 MODE MULTITRACI n CHAPTER 1 Environment Setup Commands CHAPTER 1 Environment Setup Commands 1 5 SHOW MODE The SHOW MODE command displays the setting state of the event mode E Debugger s x Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 Dm x B Format SHOW MODE Description The SHOW MODE command displays the setting state of the event mode Example gt SHOW MODE event mode normal CHAPTER 1 Environment Setup Commands 1 6 SET TIMERSCALE The SET TIMERSCALE command sets the minimum measurement unit of a timer E Debugger s Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 me x B Format SET TIMERSCALE Command qualifiers Sets the minimum measurement unit of a timer 1 us default when omitted Sets minimum measurement unit of timer to 1 us 100 ns Sets minimum measurement unit of timer to 100 ns Description The SET TIMERSCALE command sets the minimum measurement unit of a timer The unit can be set to either 1 us or 100 ns The start up is 1 us This setting will determine the minimum measurement units of the following timers Sequencer timer Emulation timer Performance measurement timer Example gt SET TIMERSCALE 100ns CHAPTER 1 Environment Setup Commands 1 7 SHOW TIMER
9. 48 25 STEP rS 49 US iste poti cota n cpu datis oai ah Sita 51 N asa nn cat durus DIE 53 8 USADE dre cinta Bet 54 297 O EAR CAL ahua ya asia h TT en metes ie dne tud 56 2 10 SHOW STATUS Susanna a Q u hs niaaa au 57 Break Event Control Command T J l 59 34 BREA Eye T mih atas aches Go E eatis ATA Laus 61 32 SETBREAK DS aX d ueram ceci odi DLP anie de 64 3 3 SET BREAK 3 a un Dus Men Rea up o a ae ann del eR 65 84 SET BREAK type 4 ui than cmo SS E eR TM EE 66 35 SBOWBBEAK 25 R 67 36 CANCEL BREAK ue 69 37 ENABLE BREAK E 70 38 DISABLE BREAK miadas a Dats 71 3 91 DATABREAK typa and Ta AAL A arias 72 101 a tul cd A e 74 341 SHOW DATABREAK naa a ai 76 3 12 CANCEL DATABREAK cement adeste sd e niic 77 3319 ENABLE
10. SEPFOGGING E d des Au ny ue tL SL S Lentes E 200 T1 2 SHOW EOGGINQTL z isi tci cce e ca raras neat eser e c E d eve deceat cd 202 WEE e due AMKO EENE D E ET 203 114 ENABLE LOGGING ereen e aa a a a as 204 o y e E IN EEA ay E 205 UH ONE D np heat a 206 TAZ SET OUTPUT a disti nnda esca LEE DA UR 208 TEST SHOW OUT 209 CHAPTER 12 Task Debug Commands 1 1 1 J T J 211 1847 SHOW OBJIEGT uuo sento en tno 212 CHAPTER 13 Control Commands 5 re ei ERE Sparta ERE Bn ua Cu a wu ea Vn 215 n MEE rcc TET TRE ERR 216 150 REPEATS ena DY ym nu a Uh aiia o oct 218 13 92 Peni abandoned Anand ata E 219 EP MEZ ics E N NEN 220 CHAPTER 14 Built in Variables and Functions 221 C 1d eR 222 142 CER ANUM oops ouest mna sasa me ku a m tupa eco doe ot cod asukuy 223 der P REMPORTE MH 224 idu OS TO T E 225 i5 UIBADDG
11. The ENABLE BREAK command enables the specified break point s E Debugger ma Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 De B Format ENABLE BREAK breakpoint number Parameter breakpoint number default decimal number Specify the break point number See the break point number by using SHOW DATABREAK command Command qualifiers ALL Enables all break points DATAWATCH MB2146 09 09A 09B The data watch break is enabled SEQUENCE MB2146 09 09A 09B Only the sequence break is enabled Description The ENABLE BREAK command enables the specified break point s Example gt ENABLE BREAK 2 gt ENABLE BREAK 3 4 2146 09 09 09 gt ENABLE BREAK DATAWATCH gt ENABLE BREAK SEQUENCE 70 CHAPTER 3 Break Event Control Command 3 8 DISABLE BREAK The DISABLE BREAK command disables the specified break point s E Debugger Ema o Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 me B Format DISABLE BREAK breakpoint number Parameter breakpoint number default decimal number Specify the break point number See the break point number by using SHOW DATABREAK command Command qualifiers ALL Disables all break points DATAWATCH MB2146 09 09A 09B The data watch break is disabled SEQUENCE MB214
12. Explanation The same file cannot be loaded into the ROM and RAM areas Operator response The file to be loaded into the Flash area and the one to be loaded into the RAM area must be created separately 294 APPENDIX B Error Message for Debuggers 46015 Invalid communication status or cable connection Explanation The communication line state is abnormal or the cable connection is incorrect Operator response Check the line connection state Push the reset button on the target board when CPU runs in the sub clock mode E4602S Communication Parallel adapter not connected Explanation The parallel adapter is not connected Operator response Connect the parallel adapter to MB2141 correctly then re execute this program 46035 Communication Mismatch parallel adapter version Explanation Communication cannot be performed because the version of the parallel communication adapter is old Operator response Use the latest parallel communication adapter EA604S Communication Cannot find host name Explanation The specified host name is not registered in the hosts file Operator response Please register the host name in the hosts file For details refer to the Appendix C Setting LAN Interface of SOFTUNE Workbench Operation Manual E4605S Communication Cannot find port number Explanation The port number of ICE is not defined in the services file Operator response Please register the por
13. Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 we 9 B Format STKTOP Description STKTOP replaces the starting address of the stack area O indicates that there is no stack area Example gt PRINTF STACK 0 STKTOP STACK 0x8000 225 CHAPTER 14 Built in Variables and Functions 14 5 RADIX RADIX replaces the base number with the currently set base number BINARY OCTAL DECIMAL or HEXADECIMAL E Debugger Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 De ej B Format RADIX Description RADIX replaces the base number with the currently set base number BINARY OCTAL DECIMAL or HEXADECIMAL Example gt PRINTF base number gt TOSTR S RADIX base number HEXADECIMAL 226 CHAPTER 14 Built in Variables and Functions 14 6 SCPADR SCPADR replaces the current scope address B Debugger Ema e Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 me o B Format SCPADR Description SCPADR replaces the current scope address Example gt scope 0x X n SCPADR scope 0x1830 227 CHAPTER 14 Built in Variables and Functions 14 7 9 eLOADNUM LOADNUM replaces the size of the last loaded binary file E Debugger mas Emulator MB2141 MB2146 09 09A 09B MB2146
14. Operator response Check the address range 250 E4601W APPENDIX A Manager Related Messages Double specification Explanation The specified item has been already existent Operator response Check the specification contents E4603 W Illegal tool option data Explanation The tool option data does not have the necessary data Operator response Open the Tool Option Check dialog and click the OK button When the control E4604W data is displayed input the necessary data There is no control data Explanation Unspecified control data is found Operator response Specify the control data E4605W Includes characters that cannot be designated Explanation These characters cannot be used Operator response Change the name E4606W Includes characters that cannot be designated lt gt l Explanation These characters cannot be used Operator response Change the name E4607W Explanation Includes characters that cannot be designated lt gt 1 These characters cannot be used Operator response Change the name E4610W Explanation The range of the number of lines is 20 255 The count of lines exceeds the limit Operator response Change the count of lines APPENDIX A Manager Related Messages E4611W The range of the number of columns is 80 1023 Explanation The count of columns exceeds the limit Operator response
15. 1 10 SET SOURCE The SET SOURCE command sets source line display mode E Debugger mae e Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 De e B Format SET SOURCE Command qualifiers Source line display mode DISPLA Y default at start up Sets mode in which source lines displayed NODISPLA Y Sets mode in which source lines not displayed Description When the disassemble list is displayed the SET SOURCE command sets whether or not to display the added source line When the debugger is started the mode in which source lines are displayed is set B Example gt SET SOURCE DISPLAY CHAPTER 1 Environment Setup Commands 1 11 SHOW SOURCE The SHOW SOURCE command displays the source line display mode set by the SET SOURCE command E Debugger Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 Dm B Format SHOW SOURCE Description The SHOW SOURCE command displays the source line display mode set by the SET SOURCE command Example gt SHOW SOURCE Source mode display 1 12 SHOW SYSTEM CHAPTER 1 Environment Setup Commands The SHOW SYSTEM command displays system information E Debugger Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 B Format SHOW SYSTEM Description The SHOW SOURCE command displays system information What is displayed varies depending on th
16. E Debugger mae Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 De Format SET INTERRUPT interrupt number cycle count Parameters interrupt number default decimal number Specify the interrupt vector number For information about how many interrupts can be used refer to the hardware manual cycle count default decimal number Specify the count of program instruction execution cycles D 1 to D 4294967295 Command qualifier INTERVAL Specifies cyclic generation of interrupts When omitted single interrupt generation will be specified Description When the program is executed for the specified count of instruction execution cycles or more the SET INTERRUPT command causes the specified interrupt and cancels the interrupt generation condition When INTERVAL is specified the specified interrupt is generated per specified count of instruction execution cycles during program execution The interrupt generation condition is valid until it is cancelled by the CANCEL INTERRUPT command Example gt SET INTERRUPT 4 12367 32 CHAPTER 1 Environment Setup Commands 1 7 SHOW INTERRUPT The SHOW INTERRUPT command displays the interrupt generation condition set by the SET INTERRUPT command E Debugger Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 we xj B Format SHOW INTERRUPT Description
17. Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 me B Format SHOW VERIFYMODE Description The SHOW VERIFYMODE command displays the status of the verify mode mode in which verify operation enabled or disabled is displayed when memory is written by a command Example gt SHOW VERIFYMODE verify mode enable 23 CHAPTER 1 Environment Setup Commands 1 20 SET INPORT The SET INPORT command specifies data input to a specified port E Debugger Ema o Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 Format SET INPORT port address mask data data input source cycle count Parameters port address Specify the port address mask data Specify the mask data Only 1 mask data bit can be used as port data data input source Specify the data input source file name input terminal when program reads data from input port or when count of program instruction execution cycles exceeds specified cycle count Specify TERMINAL as input terminal TERMINAL cannot be specified as file name cycle count default decimal number Specify the count of program instruction execution cycles H 1 to H FFFFFFFF Command qualifiers Specifying access size BYTE default when omitted Specifies port access when specified address accessed 8 bits WORD Specifies port access when specified address accessed 16 bits LONG Specifi
18. Explanation Operator response 40205 The specified line number is not found in the source file Or the load module file line number data corresponding to the source file is not loaded Check the source file and then re enter Or load the load module file corresponding to the source file Explanation Operator response 40215 Invalid starting display line number over ending line number The source line start line number is larger than the display end line number Check the line number and then re enter Invalid cycle count 0 Explanation Operator response 40225 0 was specified as the cycle count Check the cycle count then re enter the correct cycle count Explanation Operator response Invalid break point number not found The specified break point number is not found Check the break point number 27 APPENDIX B Error Message for Debuggers 40235 Invalid data break point number not found Explanation The specified data break point number is not found Operator response Check the data break point number E4024S Invalid watch point number not found Explanation The specified watch point number is not found Operator response Check the watch point number 40255 Invalid starting display trace number over ending number Explanation The starting display trace number is larger than the display ending trace number Operator resp
19. MB2146 09 09A 09B MB2146 08 MB2146 07 me j B Format SHOW INPORT Description The SHOW INPORT command displays the data set by the SET INPORT command B Example gt SHOW INPORT address bit pattern size cycle input OOFE OOFE byte Sterminal 004F 000F Hosea Sterminal 26 CHAPTER 1 Environment Setup Commands 1 22 CANCEL INPORT The CANCEL INPORT command cancels simulation of specified port address E Debugger ma 5 Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 mae j Format CANCEL INPORT port address Parameter port address Specify the port address Command qualifier ALL Cancels all data set by SET INPORT command Description The CANCEL INPORT command cancels simulation of specified port address Example CANCEL INPORT ALL 27 CHAPTER 1 Environment Setup Commands 1 23 SET OUTPORT The SET OUTPORT command specifies data output to the specified port E Debugger mme Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 B Format 28 SET OUTPORT port address mask data data output destination Parameters port address Specify the port address mask data Specify the mask data Only 1 mask data bit can be used as port data data output destination Specify the data output destination file name output termin
20. STRSTR abcdefghijklmn fg 6 231 CHAPTER 14 Built in Variables and Functions 14 11 STRCMP STRCMP compares character string 1 with character string 2 B Debugger Ema Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 De ej Format STRCMPC character string 1 character string 2 Parameter character string 1 character string 2 Specify a character strings to be compared Description STRCMP compares character string 1 with character string 2 When the character string 1 matches with character string 2 STRCMP sets to 0 When the character string 1 does not matches with character string 2 7CSTRCMP sets to 1 Example gt PRINTF STRCMP abcde fg 1 gt PRINTF Sd n STRCMP abcde abcde 0 232 CHAPTER 14 Built in Variables and Functions 14 12 STRLEN STRLEN replaces character string with the count of characters B Debugger Eme o Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 ef B Format STRLEN character string Parameter character string Specify a character string to be replaced Description STRLEN replaces character string with the count of characters Example gt dMn SSTRLEN abcde 5 233 CHAPTER 14 Built in Variables and Functions 14 13 STRCAT STRCAT replaces character string created by linking character
21. Stores specified value in specified memory location as double precision floating point number Description The ENTER command assigns the specified data to the specified variable Specifying the type of command qualifier enables data to be assigned at the specified size 148 Example ME M NE SNO N 2 2 UU ER tmcnt 10 ER work 6A5 ER tmp F2BF ER fsymbol F 10 55S 2 ER WORD work 1234 CHAPTER 5 Memory Register Operation Commands 149 CHAPTER 5 Memory Register Operation Commands 5 3 SET MEMORY The SET MEMORY command stores the specified data in the specified memory location by storage address according to the type of the specified command qualifier E Debugger Emulator MB2141 MB2146 09 09A 09B MB2146 08 O O O MB2146 07 C j B Format SET MEMORY storage address data Parameters storage address address formula Specify the memory location where specified data to be stored data data formula Specify the value to be stored Command qualifiers Data length BIT Stores specified value in specified memory location as bit length data BYTE default when omitted Stores specified value in specified memory location as 8 bit length WORD Stores specified value in specified memory location as 16 bit length LONG Stores specified value in specified memory location as 32 bit length SINGLE Store
22. The information such as descriptions of function and application circuit examples in this document are presented solely for the purpose of reference to show examples of operations and uses of FUJITSU SEMICONDUCTOR device FUJITSU SEMICONDUCTOR does not warrant proper operation of the device with respect to use based on such information When you develop equipment incorporating the device based on such information you must assume any responsibility arising out of such use of the information FUJITSU SEMICONDUCTOR assumes no liability for any damages whatsoever arising out of the use of the information Any information in this document including descriptions of function and schematic diagrams shall not be construed as license of the use or exercise of any intellectual property right such as patent right or copyright or any other right of FUJITSU SEMICONDUCTOR or any third party or does FUJITSU SEMICONDUCTOR warrant non infringement of any third party s intellectual property right or other right by using such information FUJITSU SEMICONDUCTOR assumes no liability for any infringement of the intellectual property rights or other rights of third parties which would result from the use of information contained herein The products described in this document are designed developed and manufactured as contemplated for general use including without limitation ordinary industrial use general office use personal use and household use but are not des
23. datflg ABC 3 207 CHAPTER 11 Utility Commands 11 7 SET OUTPUT When the user program stops the SET OUTPUT command opens the source window according to the debug information at the position indicated by the PC E Debugger Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 De B Format SET OUTPUT Command qualifiers SOURCE default when omitted Opens source window in mixed mode even if no file INSTRUCTION Opens source window as disassembly window even if no file Description When the user program stops the SET OUTPUT command opens the source window according to the debug information at the position indicated by the PC In this case the operation that is performed when no target source file can be found is set Example gt SET OUTPUT SOURCE 208 CHAPTER 11 Utility Commands 118 SHOW OUTPUT The SHOW OUTPUT command shows the display mode set by the SET OUTPUT command E Debugger Emulator MB2141 2146 09 09 09 2146 08 2146 07 Dm B Format SHOW OUTPUT Description The SHOW OUTPUT command shows the display mode set by the SET OUTPUT command Example gt SHOW OUTPUT Source mode Source 209 CHAPTER 11 Utility Commands 210 CHAPTER 12 Task Debug Commands This chapter describes the Task Debug commands 12 1 SHOW OBJECT CHAPTER 12 Task Debug Commands 121 SHOW OBJECT The
24. 19 MEMORY SEARCH MEMORY ees 155 SET MEMORY cete 150 SHOW MEMORY cene 152 MODE SET alana c nM cus 6 SHOW 8 MOVE MOVER cA a y Shaan as Sa a 162 MULTITRACE CLEAR MULTITRACE eee 102 DISABLE MULTITRACE e 104 ENABLE MULTITRACE eee 103 SEARCH MULTITRACE cts 105 SET MULTITRACE a detecte 99 SHOW MULTITRACE ete 100 O OUTPORT CANCEL 2 31 SET OUTPORT I 28 SHOW OUTPORT eren 30 OUTPUT SET OUTPUT Acdsee A acd 208 SHOW OU IPLE eme EA QAM 209 P PATH SET PATH Saa ease bns 180 SHOW PAU 181 PERFORMANCE CLEAR PERFORMANCE eee 111 SET PERFORMANCE cte 107 SHOW PERFORMANCE ces 109 PRINTF PRINTE 5 E 206 QUIT DUEB a5 188 R RADIX SET RADIX 2 equi S s 11 SHOW au 12 INDEX RAMMONITOR CANCEL RAMMONITOR ees 140 DISABLE RAMMONITOR ces 143 ENABLE RAMMONITOR ees 142 SET RAMMONITOR eren 137 SHOW RAMMONITOR cete 139 REGISTER SET REGISTER 157 SHOW REGISTER cernerent 158 REPEAT REPEAT tues 218 RESET RESET idt und Mt otii itta 5 S SAMPLING SET SAMPLING det 120
25. 4 REE er e 5 5 EE han Sha Sabtu ences 6 t5 A erp 8 5 Sirah oed aA oed uM A 9 SHOW TM RO OA E erit dA URGE 10 0 8 lt Sen contem as So baa tali d dud Ue RO 11 119 SHOW RADIX acest MIL E Lus M a 12 SET SOURGOE dedos Ur dede occu educa seed 13 Tat T CSHOW SOURGE 14 MAD SBHOWSYSIEM OS u Roth nata cM tendit connate anette sce 15 1 19 SET MAP type uten de itte cart ee a ee xd doe ese 16 Tele 1 2 22 da De Ren ERE RA 18 1215 SHOW MAP S Ba aaa k cota SURE 19 2165 e NU rc 20 1 17 ENABLE VERIFYMODE uoi desire un ons Da et ades 21 148 DISABLE VERIEYMODIE uu uu npe De dpud speed q BAR aeu esed 22 1 19 SHOW VERIFYMODE e cd te tto uM 23 20 SETIINPORT ee P CD 24 EIIN O a a uq m tata anqusu Denuo utate e 26 1 22 CANCELINPOR T ET 2
26. Change the count of columns E4612W The range of the number of columns is 70 1023 Explanation The count of columns exceeds the limit Operator response Change the count of columns E4613W The range of the number of tabs is 0 32 Explanation The count of tabs exceeds the limit Operator response Change the count of tabs E4614W Please specify the macro name Explanation The macro name is not specified Operator response Specify the macro name E4615W Please specify the include path Explanation The include path is not specified Operator response Specify the include path E4616W Already a registered macro name Do you change contents Explanation The specified macro name has been already existent Operator response To change the contents click the OK button E4620W Please specify the start address Explanation The start address is not found Operator response Specify the start address 252 E4621W APPENDIX A Manager Related Messages Please specify the end address Explanation The end address is not found Operator response Specify the end address E4622W The start address is larger than the end address Explanation The address range is incorrect Operator response Check the address range E4623W Please specify a correct start address Explanation The start address is incorrect Operator response Specify the correct start address E4624
27. Description CALL replaces the return value with the last executed CALL command If the function return values are void and double 0 is returned Example gt CALL func 100 200 return value is H 40 gt ENTER val CALL 0x80 222 CHAPTER 14 Built in Variables and Functions 14 2 9SSERRNUM ERRNUM replaces the error number with the last error number executed from the Command Window E Debugger Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 Dm B Format ERRNUM Description ERRNUM replaces the error number with the last error number executed from the Command Window O indicates that there is no error Example gt PRINTF ERROR NO d n ERRNUM ERROR NO 5 223 CHAPTER 14 Built in Variables and Functions 14 3 ENTRY ENTRY replaces the execution starting address of the loaded module E Debugger Ema Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 me o B Format ENTR Y Description ENTRY replaces the execution starting address of the loaded module 0 indicates that there is no execution starting entry Example gt PRINTF ENTRY Ox XMn SENTRY ENTRY 0x1000 224 CHAPTER 14 Built in Variables and Functions 14 4 STKTOP STKTOP replaces the starting address of the stack area for the loaded module B Debugger Ema 9
28. Example gt DISABLE COVERAGE 119 CHAPTER 4 Program Execution Analysis Commands 4 16 SET SAMPLING The SET SAMPLING command sets the timing of data sampling according to the state of external probes B Debugger Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 De x B Format SET SAMPLING Command qualifiers INTERNAL default at start up Samples data at rising edge of machine clock RISING Samples data at rising edge of external clock input FALLING Samples data at falling edge of external clock input Description The SET SAMPLING command sets the timing of data sampling according to the state of external probes At startup INTERNAL is specified Example gt SET SAMPLING INTERNAL 120 CHAPTER 4 Program Execution Analysis Commands 4 17 SHOW SAMPLING The SHOW SAMPLING displays the state of channels for external probes and the timing of data sampling E Debugger Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 De B Format SHOW SAMPLING Description The SHOW SAMPLING displays the state of channels for external probes and the timing of data sampling Example gt SHOW SAMPLING 121 CHAPTER 4 Program Execution Analysis Commands 4 18 SHOW CALLS The SHOW CALLS command displays the calling history until current function E Debugger mae o Emulator MB2141 MB2146 09
29. LATCH Command qualifiers classified by function The functions of parameters can be changed by specifying following command qualifiers LEVEL Displays each level settings CURRENT When the program is executing displays currently executing sequencer level number When the program is break displays the last executed level number and pass counts of each event LATCH Displays latched timer value When both of latch 1 and 2 are set also displays difference of them Parameter level number default decimal number Specifies level number of sequencer D 1 to D 8 88 CHAPTER 3 Break Event Control Command Description The SHOW SEQUENCE command displays sequencer settings There are following way to display them 1 Global format 1 When level number is omitted on format 1 displays all of level settings Displays as follows For more details see 2 2 5 1 Setting Sequencer in SOFTUNE Workbench User s Manual enabl e disable level1 level2 level3 level4 level5 level6 level7 level8 level1 level2 level3 level4 level5 level6 level7 level8 info info info info info info info info latch 1 information latch 2 information 2 Detail format 1 When level number is specified on format 1 displays detailed information of the specified level If the event specified by the level is not set does not display it 3 CURRENT format 2 When the program is executing displays currently executing level number Does not d
30. Load the object with the task debug function 41345 Explanation MMU data access exception An MMU access error occurs Operator response Check whether invalid memory was accessed 41355 Explanation Register exception An undefined register is accessed Operator response Turn on the target power supply again if recovery fails Check whether a valid 41365 register is accessed Not the first address of a parallel instruction Explanation The specified address is not the first an address of the instruction executed in parallel Operator response Specify the first address of the instruction executed in parallel 41375 Explanation Register access error 1 Cannot access the register Operator response There is an inaccessible register according to the kind or the state of the chip Please refer to the hardware manual of the product used for details 28 APPENDIX B Error Message for Debuggers 41385 Invalid combination of size and address beyond 64 bits boundary Explanation Cannot specify the address beyond 64 bits boundary Operator response Please specify the address matched 64 bits boundary E4139S Over point Explanation The set point count is above maximum This message appears when the trace trigger or the data watch break and RAM Checker is set with for MB2198 for FR and MB2147 01 for 16 emulator Operator response Please check
31. NOBREAK This command setting is valid only when the event mode is set to MULTITRACE gt SET MULTITRACE BR EAK 99 CHAPTER 4 Program Execution Analysis Commands 4 2 SHOW MULTITRACE The SHOW MULTITRACE command displays multitrace data stored in a trace buffer It can be used only when the event mode is set to MULTITRACE E Debugger Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 Dm xj B Format Format 1 gt SHOW MULTITRACE STATUS Format 2 gt SHOW MULTITRACE GLOBAL frame number frame number lt Format 3 gt SHOW MULTITRACE LOCAL block number frame number frame number Command qualifiers classified by function STATUS Displays trace measurement conditions enabled disabled state of trace function and storage status of trace buffer GLOBAL Displays trace data The specified frame number is assumed to be a global frame number given to a trace buffer LOCAL default Displays trace data The specified frame number is assumed to be a local frame number given to a trace buffer Parameters frame number default decimal number Specify the frame number of trace data to be displayed as a signed decimal value If GLOBAL is specified the frame number will be the global number of the trace buffer If LOCAL is specified the frame number will be the local number within one block 100 CHAPTER 4 Program Executio
32. The SHOW INTERRUPT command displays the interrupt vector number cycle count decimal number and interrupt type set by the SET INTERRUPT command in this order Interrupt type specifies any of the following shot specifies single interrupt generation Interval specifies repetitive interrupt generation Example gt SHOW INTERRUPT no cycle kind 4 1258 shot 7 9823 interval 33 CHAPTER 1 Environment Setup Commands 1 28 CANCEL INTERRUPT The CANCEL INTERRUPT command cancels all the interrupt generation conditions E Debugger Ema Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 me x B Format CANCEL INTERRUPT interrupt number Parameter interrupt number default decimal number Specify the interrupt vector number Command qualifier ALL Cancels all interrupt generation conditions set by SET INTERRUPT command Description The CANCEL INTERRUPT command cancels all the interrupt generation conditions set by the SET INTERRUPT command Example CANCEL INTERRUPT ALL 34 CHAPTER 1 Environment Setup Commands 1 29 SET VECTOR The SET VECTOR command sets the vector number data E Debugger mae o Emulator MB2141 2146 09 09 09 2146 08 2146 07 mae j B Format SET VECTOR vector number address value Parameters vector number Specify the number of vector t
33. default at start up Does not mask interrupt When the debugger type is only the simulator debugger or the emulator debugger MB2141 this command qualifier can be specified Description The SET STEP command specifies the step execution condition when no command qualifier is specified in the STEP command SET STEP AUTOMATIC INTO NOMASK is specified when SOFTUNE Workbench is executed Example gt SET STEP INSTRUCTION 52 CHAPTER 2 Program Execution Commands 2 7 SHOW STEP The SHOW STEP command displays the step execution condition of the current STEP command E Debugger Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 me ej B Format SHOW STEP Description The SHOW STEP command displays the step execution condition of the current STEP command Example gt SHOW STEP step mode instruction into 53 CHAPTER 2 Program Execution Commands 2 8 CALL The CALL command executes the specified function and displays a return value E Debugger Ema o Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 De x B Format CALL function name argument Parameters function name Specify the name of function to be called argument Compiles with the arguments in C language However structures unions and class cannot be specified as variable names Command qualifiers DISPLAY Default at start
34. ttd tol eth aq TM 125 SET MAGE ict caste Cnet 126 4 22 SHOW TRAGCE TBI ataca 127 4 23 SHOW TRAGE type 2 deos n nU LC 129 AGA SHOW TRACE DEG Soin optat Nase a 130 408 reci umutu rU US E 132 4 26 ENABLE S TRAGE zna a m umaman nis a Mos edd SS 133 427 DISABLE TRADE uu ua s lb Ska s a edm n n 2 usu Mass an e aska 134 4228 SEARCH IRAGE y a Dun u chai t 135 4 29 ZSET EAAMIMONITORL OR a pO NEUE 137 430 SHOW RAMMONITOR 2 025 ad dia far 139 4 31 CANCEL RAM NON TOR cdita ni dedere con 140 4 82 ENABLE RAMMONITOR nde E BUR ER n 142 433 DISABLE RAMMONITOR ride Seed cas delat 143 CHAPTER 5 Memory Register Operation Commands 145 5 1 EXAMINE o rectae ttes nitet see m ea totes A 146
35. variable is defined Explanation Operator response 40335 Invalid variable specifying The specified variable is not the member of the structure or union variable Check the structure or union member Floating point data format error Explanation Operator response 40345 floating point data format is illegal Recheck the floating point data format Explanation Operator response 40355 Invalid macro command definition not found The specified macro command name is not found Check the macro command name then re enter the command Invalid symbol address not found Explanation Operator response The address of a register variable or address of a variable assigned to a register is referenced Example SET DATABREAK amp r If the register assigned variables exists in the address space of CPU the address can be referenced The address of a register variable or address of a variable assigned to a register cannot be referenced 27 N APPENDIX B Error Message for Debuggers EA1018 Invalid command list nest level over 8 Explanation The nesting level of command list of the command procedure command macro or break point exceeds 8 Operator response Review the execution of the command E4102S Symbol definition error Explanation The free area allocated in host machine memory is insufficient to execute commands This error occurs wh
36. 09A 09B MB2146 08 MB2146 07 Dm oj SHOW CALLS call frame count B Format Parameter call frame count default decimal number Specifies count of call frames requiring information D 1 to D 256 Description The SHOW CALLS command displays the calling history until current function When call frame count is not specified the command displays up to 256 frames When the function to be displayed contains an argument the command displays the argument as a hexadecimal number If there is no C language debug information the command displays the function address instead of the function name The command analyzes accumulated stack data and determines which data to display according to the analysis result It analyzes accumulated stack data according to the stack format used when C language calls the function Note the following when using the SHOW CALLS command The command cannot be used in the programs coded in assembler In the optimized program the command may be unable to display data normally Ifthe program is not compiled with debug information the command displays the address instead of the function name However if the program breaks at the beginning of the function the command cannot display data normally Example gt SHOW CALLS checker 12 8 main 3 4 122 CHAPTER 4 Program Execution Analysis Commands 4 19 SHOW TIMER The SHOW TIMER command displays the instruction execut
37. A stack check exception occurred within the monitor at returning to the user program Invalidate a stack check function or increase usable stack area 44245 Exception occurred while accessing user resource detailed information Explanation Operator response E4425S Because the exception shown in detailed information had been detected while accessing a specified user resource processing was interrupted Please confirm the corresponding matter from the exception generation factor described in the hardware manual of the product used based on detailed information In FR V the address and trap type TT at the exception occurrence are displayed as detailed information in the form of address TT nn Please refer to 4 7 2 3 Debug Environment of SOFTUNE Workbench operation manual for the factor which relates to MMU because the operation by the debugger might be necessary Invalid area number Explanation Operator response E44268 The specified area number is not found Specify an area number which is possible to set Command error event mode violation lt Performance gt Explanation Operator response Event mode is set to performance mode and so the command cannot be executed Change event mode to a mode where the command can be used 291 APPENDIX B Error Message for Debuggers 44275 Command error event mode violation Single trace Explanation Event mode is set to single tr
38. CANCEL LOGGING 11 4 ENABLE LOGGING 11 5 DISABLE LOGGING 11 6 PRINTF 11 7 SET OUTPUT 11 8 SHOW OUTPUT 199 CHAPTER 11 Utility Commands 111 SET LOGGING The SET LOGGING command opens the specified logging file and starts logging E Debugger mae Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 De B Format SET LOGGING file name Parameter file name Specify a log file name The default extension is LOG When file name is omitted the DEBUG LOG file is used to log data Command qualifiers OPEN default when omitted Newly opens specified file APPEND Appends log data to end of specified file EXPANSION default when omitted Logs command list and its result UNEXPANSION Logs only result COMMAND Logs only user entered data 200 CHAPTER 11 Utility Commands Description B Example The SET LOGGING command opens the specified logging file and starts logging When command qualifier APPEND is specified data in the previous file is not lost The data to be logged can be selected When command qualifier COMMAND is specified the entered command is only logged The output file is used as the command procedure file gt SE OGGING filename log gt SE OGGING COMMAND filename log 201 CHAPTER 11 Utility Commands 11 2 SHOW LOGGING The SHOW LOGGING command displays the logging status
39. E Debugger Ema Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 me B Format SHOW LOGGING Description The SHOW LOGGING command displays the logging status Example gt SHOW LOGGING en dis ENABLE logging file logfile log logging data EXPANSION 202 CHAPTER 11 Utility Commands 11 3 CANCEL LOGGING The CANCEL LOGGING command cancels the logging setup and closes the logging file E Debugger mae Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 Dm ej B Format CANCEL LOGGING Description The CANCEL LOGGING command cancels the logging setup and closes the logging file Example gt CANCEL LOGGING 203 CHAPTER 11 Utility Commands 11 4 ENABLE LOGGING The ENABLE LOGGING command enables logging E Debugger Ema e Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 me fe B Format ENABLE LOGGING Description The ENABLE LOGGING command enables logging Example gt ENABLE LOGGING 204 CHAPTER 11 Utility Commands 11 5 DISABLE LOGGING The DISABLE LOGGING command temporarily disables logging E Debugger Sean Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 me ej B Format DISABLE LOGGING Description The DISABLE LOGGING command temporarily disables logging
40. Event Control Command 3 1 SET BREAK type 1 The SET BREAK command sets a break point at the specified break address E Debugger Ema Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 Dae oj Format SET BREAK break address pass count command command 1 Parameters break address address formula Specify the address at which break point set pass count default decimal number Specify the number of times break point to be hit 1 to 65535 Program execution specifying is stopped when this number of times is reached If pass count is omitted 1 is assumed This function is valid when the debugger type is only a simulator debugger command Specify the command list for executing when the break address is hit Two or more commands can be specified by using the colon This function is valid when the debugger type is only a simulator debugger Command qualifiers Only the simulator debugger Program execution specification after processing command list BREAK default when omitted After the command list is processed the instruction execution is stopped when the break point is hit This function is valid when the debugger type is only a simulator debugger NOBREAK After the command list is processed the instruction execution is restarted when the break point is hit This function is valid when the debugger type is only a simulator debugger 61 CHA
41. F96048 Cannot initialize WINSOCK DLL Explanation WINSOCK DLL cannot be initialized Operator response Check if the TCP IP protocol is installed on your Windows PC If it is not installed refer to Windows Help to install it F99018 Memory allocation error Explanation Because of a lack of the memory capacity in host PC the debug operation cannot be continued Operator response Terminate the SOFTUNE Workbench expand an empty memory in host PC and then restart the SOFTUNE Workbench F99028 System error Explanation This program could not startup normally because of system error Operator response Restart the system and then restart the SOFTUNE Workbench 99035 necessary DLL file was not found Explanation The required DDL file cannot be loaded Operator response Re install SOFTUNE Workbench 99045 The version of CPU information file is an old version Explanation The version of the CPU information file is old so information cannot be set properly Operator response Update the CPU information file to the latest version F9905S A necessary file for USB communication is not found Explanation A necessary dll file for the USB communication is not found Operator response Re install a SOFTUNE Workbench 26 N APPENDIX B Error Message for Debuggers F9906S Failed in connection because BGM adaptor is too old Explanation The BGM adapter is too old a version to be connected to
42. Flags 0 H 03 EXAMINE flags H 05 H 50 H 10 H 2A V Flags flags flags WN F ll gt EXAMINE DECIMAL count count D 12 gt EXAMINE HEXADECIMAL count G gt ount H OC EXAMINE DECIMAL fwork fwork 2 365 1 Note For the method of specifying formula refer to the following sections of SOFTUNE WORKBENCH OPERATION MANUAL 2 1 1 Data and Address Formulas Numerical constant 2 1 2 Data and Address Formulas Symbols Line Numbers Character Constants 2 1 3 Data and Address Formulas Register name Flag name 147 CHAPTER 5 Memory Register Operation Commands 5 2 ENTER The ENTER command assigns the specified data to the specified variable E Debugger mae e Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 Due o B Format ENTER variable data Parameters variable address formula Specify the variable where data to be stored data data formula Specify the data to be stored Command qualifiers Data length BYTE Stores specified value in specified memory location as 8 bit length WORD Stores specified value in specified memory location as 16 bit length LONG Stores specified value in specified memory location as 32 bit length SINGLE Stores specified value in specified memory location as single precision floating point number DOUBLE
43. Format STRGET character string character position character count Parameters character string Specify a character string to be replaced character position Specify a character position where get processing to be replaced character position relative to first character character count Specify a count of characters to be replaced Description STRGET replaces the character string in the specified count of characters starting from the specified character position in the specified character string B Example gt PRINTF TOSTR STRGET abcdefghijklmn 3 4 cdef 230 CHAPTER 14 Built in Variables and Functions 14 10 96S TRSTR 9eSTRSTR checks whether character string 1 includes character string 2 B Debugger Ema Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 me ej Format STRSTR character string 1 character string 2 Parameters character string 1 Specify a character string to be candidated character string 2 Specify a character string to be searched Description STRSTR checks whether character string 1 includes character string 2 When character string 1 includes character string 2 STRSTR replaces with the character position number in character string 1 When character string 1 does not include character string 2 STRSTR replaces the character position number with 0 Example gt PRINTF d n
44. Format DISABLE EVENT event number Parameter event number Specify the event number 1 to 8 Command qualifier ALL default when omitted Specifies all events Description The DISABLE EVENT command temporarily disables the event Example gt DISABLE EVENT 85 CHAPTER 3 Break Event Control Command 3 20 SET SEQUENCE The SET SEQUENCE command sets a sequencer E Debugger sma x Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 me lt Format 1 gt SET SEQUENCE EVENT level number event number pass count J branch level number B Format lt Format 2 gt SET SEQUENCE TIMER level number waiting time J branch level number lt Format 3 gt SET SEQUENCE LATCH latch number branch source level number branch destination level number Command qualifiers classified by function EVENT Default Sets event number to be set as trigger factor value of pass count and branch level number where hit found TIMER Sets waiting time This qualifier is specified in Format 2 LATCH Latches value of emulation timer as branch made from level specified in branch level number to another level The latch function permits setting of up to two conditions This qualifier is specified in Format 3 Parameters level number default decimal number Specify the level number D 1 to D 8 to be set event number defa
45. Monitoring enable ch 0 0140 word main data_1l ch 1 1200 byte ch 2 1240 byte 142 CHAPTER 4 Program Execution Analysis Commands 4 33 DISABLE RAMMONITOR The DISABLE RAMMONITOR command disables the RAM monitor function E Debugger e Emulator MB2141 MB2146 09 09A 09B 97 2146 08 2146 07 E This command is available if only the BGM adapter MB2146 09B MCU board MB2146 301BE or MB2146 303B E is used B Format DISABLE RAMMONITOR Description The DISABLE RAMMONITOR command disables the RAM monitor function Example gt SHOW RAMMONITOR RAM Monitoring enable ch 0 0140 word main data_1 ch 1 1200 byte ch 2 1240 byte DISABLE RAMMONITOR SHOW RAMMONITOR RAM Monitoring disable ch 0 0140 word main data_l ch 1 1200 byte ch 2 1240 byte 143 CHAPTER 4 Program Execution Analysis Commands 144 CHAPTER 5 Memory Register Operation Commands This chapter describes the Memory Register Operation commands 5 1 EXAMINE 5 2 ENTER 5 3 SET MEMORY 5 4 SHOW MEMORY 5 5 SEARCH MEMORY 5 6 SET REGISTER 5 7 SHOW REGISTER 5 8 COMPARE 5 9 FILL 5 10 MOVE 5 11 DUMP 5 12 COPY 5 13 VERIFY 145 CHAPTER 5 Memory Register Operation Commands 5 1 EXAMINE The EXAMINE command analyzes the specified formula in C language and displays the result E Debugger Emulator MB2141 MB2146 09
46. SET STEP command specifies the step execution condition when no command qualifier is specified in the STEP command E Debugger Simulator Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 Dm oj B Format SET STEP Command qualifiers Specification of the STEP unit INSTRUCTION Executes program in the unit of a machine instruction LINE Executes program in units of source lines AUTOMATIC default at start up Automatically changes execution unit according to source window display mode as follows When the source window display mode is the source line display mode the program is executed in units of source lines LINE When the source window display mode is another display mode the program is executed in units of machine instructions INSTRUCTION Specification of the STEP operation INTO default at start up Executes program for each step in called function subroutine or interrupt handler OVER Executes the following instructions as one step Function call when LINE is specified Subroutine call instruction e g CALL when INSTRUCTION is specified Software interrupt instruction e g INT when INSTRUCTION is specified 51 CHAPTER 2 Program Execution Commands Specification of the interrupt mask MASK Masks interrupt When the debugger type is only the simulator debugger or the emulator debugger MB2141 this command qualifier can be specified NOMASK
47. The directory may be write disabled or directory name may be incorrect E4124W Unable to delete directory Explanation The directory cannot be deleted Operator response The directory may be write disabled or a file in the directory may be in use by another process E4125W Destination disk is full Explanation The remaining capacity of the disk is insufficient Operator response Delete unnecessary files E4126W Could not be removed because it is the current directory Explanation An attempt was made to delete the current directory Operator response Move from the current directory to delete another directory E4127W This directory cannot be access Explanation Access to the directory is denied Operator response Permission to access the directory may be denied E4130W File cannot be open Explanation The file cannot be opened Operator response Permission to access the file or directory may be denied 242 E4131W APPENDIX A Manager Related Messages File cannot be close Explanation The file cannot be closed Operator response Permission to access the file or directory may be denied E4132W File cannot be read Explanation The file cannot be read Operator response Permission to access the file or directory may be denied E4133W File cannot be written Explanation The file cannot be written Operator response Permission to access the file or directory ma
48. are padded with space To pad with Os at right justification add 0 to the beginning and specify the digits count 206 CHAPTER 11 Utility Commands When the conversion display format type is b or f width is invalid precision Specify minimum count of digits of integer to be output When the conversion result is less than the specified count of digits the remaining areas are padded with Os When the conversion display format type is b or f precision is invalid Specify whether to display the language expression value as the long unsigned long type when the conversion display format type is d u o x X When 1 is not specified the language expression value is assumed to be the short unsigned short type type Specify one of following conversion display formats for the value of expressions Signed decimal number Unsigned decimal number Unsigned octal number Unsigned hexadecimal number Lower case characters a to f represent 10 to 15 respectively Unsigned hexadecimal number Upper case characters A to F represent 10 to 15 respectively One character x x e Unsigned binary number s Character string Only addressing is valid The maximum number of characters is 128 bytes expression Specify the expression to be displayed Description The PRINTF command displays the specified character string and the expression value of the specified format on the screen Example gt PRINTF ABC d n
49. due to the SLEEP or STOP state Operator response Release the SLEEP or STOP state 44205 Command error hardware standby Explanation This command cannot be executed due to the hardware standby state This error occurs even if the hardware standby state is already released Operator response Release the hardware standby state execute the Debug Reset MCU menu then execute this command 44215 Command error timer mode violation Explanation When the timer mode is timer the SHOW CYCLE command and CLEAR CYCLE command cannot be executed When the timer mode is cycle th SHOW TIMER command and CLEAR TIMER command cannot be executed Operator response Check the timer mode then re enter the command 290 44225 APPENDIX B Error Message for Debuggers Invalid break point not found Explanation Operator response 44235 The software break point became invalid because data the address where the software break point is set was rewritten by program execution Alternatively the software break point remained in memory because an error occurred when the point was being reburied In this case data in the program being loaded and setting data at the software break point are not guaranteed Delete all software breaks then review the program data If some software breaks still remain in memory reload the program Monitor hit stack check function Explanation Operator response
50. from the address indicated by the current program counter When parameter are omitted the command displays disassembled data by 16 lines starting from the line next to the last displayed line When SET SOURCE command is set to the mode to add source lines and the memory location corresponds to the source line the DISASSEMBLE command also displays the source line 169 CHAPTER 6 Line Assemble and Disassemble Commands Example gt DISASSEMBLE F3B0 F3B8 0 48 MOV RO A F3B1 10 SWAP F3B2 49 MOV R1 A F3B3 43 XCHW A T F3B4 40000 MOVW A 0000 F3B7 43 XCHW A T F3B8 F802 BNC F3BC gt DISASSEMBLE F36D CO INCW A F36E D9 DEC R1 F36F MOVW EP A F370 40000 MOV A 0000 F373 43 XCHW A T F374 10 SWAP F375 F908 BC F37F F377 10 SWAP F378 54FF XOR A FF F37A 10 SWAP F37B 54FF XOR A FF F37D CO INCW A F37E C9 INC R1 F37F 40000 MOVW A 0000 F382 43 XCHW A T F383 8811 MOV RO 11 170 CHAPTER 7 Load and Save Commands This chapter describes the Load and Save commands 7 1 LOAD 7 2 SAVE CHAPTER 7 Load and Save Commands 7 1 LOAD The LOAD command loads the specified file E Debugger mae o Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 Dm j Format LOAD file name address file offset byte count Parameters file name Specify a name of file to be loaded The default extension depend
51. mode violation Explanation The command that can not be used in a current execution time mode was input Operator response Switch the execution time mode E44348 Detected debug resource access violation by user operation program DMA Explanation The access to the debugging resource was detected during the break in the user program The access to the debugging resource is not correctly processed during the break in the user program Operator response When there is a possibility that the DMA transfer is done to the debug resource during the break in the user program Accepting DMA in Emulation tab of the debug environment setting dialog box is set to the prohibition and do not generate the DMA transfer 44355 Command error The software break is not allowed Explanation The software break tried to be set though the setting of the software break was prohibited Operator response Switch the software break to the use permission E44368 Command error The performance function is operating Explanation The command could not be used while the performance measuring tried to be executed Operator response Confirm the command 44375 The peripheral resources of Sleep mode was accessed Explanation The peripheral resource in the sleep state cannot be accessed Operator response Do not access to the peripheral resource in the sleep state 44385 Failed to switch to the high speed communication of D
52. of existent settings exceeds the maximum value Operator response Delete unnecessary settings E4790W Editor in list not selected Explanation The editor to be operated is not specified Operator response Select the required editor from the editor list and operate it 260 E4791W APPENDIX A Manager Related Messages The standard editor cannot delete and change Explanation An attempt was made to delete or change the standard editor Operator response The standard editor is built into SOFTUNE Workbench It cannot be deleted or E4792W changed This executable file does not exist Register in the list Explanation The specified execution file cannot be found Operator response If the execution file name or directory name has no error register it as it is E4793W The valid editor cannot delete Explanation An attempt was made to delete the editor selected as the editor to be used Operator response Change the editor to be used to another before deleting it E4794W Directory not found Create this directory Explanation The specified director cannot be found Operator response To create a directory click the OK button E4795W Explanation Title too long The title exceeds the maximum count of characters Operator response Shorten the title E4796W Explanation Execute file name too long 1 The execution file name is too long Operator response
53. specified number Example gt SHOW EVENT 82 CHAPTER 3 Break Event Control Command 3 17 CANCEL EVENT The CANCEL EVENT command cancels the event corresponding to a specified event number E Debugger Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 B Format CANCEL EVENT event number Q Parameter event number Specify the event number 1 to 8 Command qualifier ALL default when omitted Specifies all events Description The CANCEL EVENT command cancels the event corresponding to a specified event number Example gt CANCEL EVENT 83 CHAPTER 3 Break Event Control Command 3 18 ENABLE EVENT The ENABLE EVENT command enables the event temporary disabled E Debugger Em o Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 wm B Format ENABLE EVENT event number Parameter event number Specify the event number 1 to 8 Command qualifier ALL default when omitted Specifies all events Description The ENABLE EVENT command enables the event temporary disabled Example gt ENABLE EVENT 84 CHAPTER 3 Break Event Control Command 3 19 DISABLE EVENT The DISABLE EVENT command temporarily disables the event E Debugger x Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 Dae B
54. stops the currently executing program E Debugger mae Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 De ej B Format ABORT Parameters None Command qualifiers None Description The ABORT command stops the currently executing program This command is valid in the following situations f NOWAIT is specified in the GO command Ifthe continuous execution button is pressed in the execution toolbar Example gt ABORT Note If this command is input while the user program is stopped the message This command cannot be used while the MCU is stopped is displayed 48 CHAPTER 2 Program Execution Commands 2 5 STEP The STEP command executes the program in units of source lines or machine instructions according to the condition set by the STEP command E Debugger ma Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 me B Format STEP step count Parameter step count default decimal number Specify the count of STEP command executed H 1 to H FFFFFFFF If step count specifying is omitted the count of times is 1 Command qualifiers Step unit specification INSTRUCTION Executes program in the unit of a machine instruction LINE Executes program in units of source lines AUTOMATIC default at start up Automatically changes execution unit according to sour
55. t bine 133 ENABLE VERIFYMODE eene 21 306 ENABLE WATCHDOG me 37 ENTER ENTER a uka aa aaa sa 148 EVENT CANCEL EVENT S ts ee neve ctae nen 83 DISABILE EVENT eroii 85 ENABLEE EVENT iet edendis eet 84 SETS EVENT etcetera 80 SHOW EVENT evens 82 EXAMINE 146 EXIT M 4 F FILL FIEL 5t 161 G GO Ga aa 44 SET GOs cette dieit ttes tpi ride 46 SHOW GO ect dee adii te trees 47 IF 216 INITIALIZE INITIALIZE entente 3 INPORT CANCEL INPORT nee 27 SET INPORT ient reete dede 24 SHOW INPORT 9 26 INTERRUPT CANCEL INTERRUPT 34 SET INTERRUPT up asnus 32 SHOW 33 L LIST LIST 178 LOAD IESU UD 172 LOGGING 4 4 04 022 203 205 204 SET EOGGING ueterem 200 SHOW 202 M MAP CANCEL MAP cosi at a uqta qa 20 SET MAP type 2 0 01 16 SET MAP type 2 18 SHOW MAP esae A adr nent
56. the MCU board Operator response Check the versions of the BGM adapter and MCU board and connect the acceptable combination F9907S Password is not correct Please input the correct password by setup wizard Explanation The password required for starting the debugger is wrong Operator response Use Setup Wizard to enter the correct password for starting the debugger W1001S Invalid data value underflow Explanation Data underflowed the specified precision Operator response Recheck the precision or data W1002S Invalid data value overflow Explanation Data overflowed the specified precision Operator response Recheck the precision or data W1101S Invalid symbol multiple Explanation Duplicate symbols are found Operator response Recheck the source file corresponding to the load module W1102S Invalid code section or entry data not found in load module Explanation The code section and input data are not in the loaded load module The program counter PC is not set Operator response Set the program counter PC and then execute the program W1103S Command history buffer allocation error in host memory Explanation Buffer memory for the command history cannot be allocated to an internal memory area in the host machine Operator response Expand the internal memory area in the host machine If the Softune debugger is used as is the command history function cannot be u
57. the module is saved in CSV format When ALIAS is specified the command saves command alias definition and macro command definition to the alias file Example gt SAVE memo bin 0 0fff gt SAVE COVERAGE CSV cov csv sample c 176 CHAPTER 8 Source File Symbol Commands This chapter describes the Source File Symbol commands 8 1 LIST 8 2 SET PATH 8 3 SHOW PATH 8 4 SHOW SCOPE 8 5 UP 8 6 DOWN CHAPTER 8 Source File Symbol Commands 8 1 LIST The LIST command displays the source line corresponding to the specified line number E Debugger Eme s Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 me B Format LIST file name line number line number address Parameters file name Specify a name of source file to be displayed When file name is omitted the previously specified file name is assumed line number Specify a number of source line to be displayed must always precede a line number When line numbers are delimited by the source lines within the specified range are displayed address address formula Specify an address memory location where code attribute is stored Specify this parameter when displaying the source line corresponding to the address memory location Description The LIST command displays the source line corresponding to the specified line number When only a period is sp
58. used because other than USB RS or LAN is used as the communication device Operator response When using the RAM Checker use USB as the communication device 42015 File access error Explanation The file cannot be accessed Operator response Check the condition of the disk in the host machine 42025 File close error Explanation The file cannot be closed Operator response Check the condition of the disk in the host machine 42035 File open error Explanation The file cannot be opened Operator response Check the file name or the condition of the disk in the host machine Or check the file and directory 42045 Data write error Explanation Data cannot be written to the file Operator response Check the condition of the disk in the host machine 28 APPENDIX B Error Message for Debuggers 42055 Invalid line number not found Explanation The corresponding source line is not found at the specified address Even if the corresponding source line is not found the source line is displayed in the source window Operator response Review the address Or load the load module with debug information 42065 Alias file load error Explanation The specified alias file cannot be loaded Operator response Check the alias file name or the disk state of the host machine Alternatively check the directory containing the alias file 42075 Alias file save error Explanati
59. variables to OFF Can specify this command qualifier in the simulator debugger and the emulator debugger MB2141 Description Example Sets variables in the specified watch window If variables already set are specified two or more variables of the same name are set If the command qualifier for a base number watch mode or data size is omitted the setting specified in the debug environment is effective The specified data size will be valid only when the setting of ASSEMBLER is specified For a setting of a watch point previous information is restored when the Debugger is started If a watch point is set in the batch file when the Debugger is started once delete all the watch points by CANCEL WATCH ALL gt SET WATCH strsym a l gt SET WATCH HEXADECIMAL ASSEMBLER WORD NOMONITORING LABEL1 1 41 CHAPTER 1 Environment Setup Commands 1 35 CANCEL WATCH The CANCEL WATCH command deletes specified variables from the watch window E Debugger Ema s Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 Wu ej Format CANCEL WATCH variable watch window number CANCEL WATCH ALL watch window number Parameters variables Specifies variables or expressions to be deleted from the watch window watch window number Specifies the number 1 to 4 of the watch window from which variables are deleted When omitted Watch W
60. when the specified load module file is not a file of the purpose Invalid timer overflow Explanation Operator response The execution time timer overflowed during program execution Shorten the measurement time 26 c APPENDIX B Error Message for Debuggers W1402S Invalid performance measuring data buffer full Explanation The buffer that stores performance measuring data became full during program execution Performance is not subsequently measured Operator response Reduce the measurement count W1403S Invalid pass count overflow Explanation The pass count overflowed Operator response Check the term in the expression then re enter the command Explanation An user reset is specified in MCU during command execution Operator response Re enter the Debug Run Go menu W1405S The CR trimming value was adjusted due to a CR trimming value error To continue debugging adjust the CR trimming value Explanation The CR trimming value was temporarily adjusted because the preset CR trimming value was abnormal To continue debugging without encountering the same problem the CR trimming value of the system has to be adjusted again Operator response To continue debugging without encountering the same problem the CR trimming value has to be adjusted Regarding the adjusting method please refer to the support web page or contact our support center After the preset CR trimming va
61. 08 MB2146 07 Due 9 B Format LOADNUM Description LOADNUM replaces the size of the last loaded binary file Example gt PRINTF byte count d n LOADNUM byte count 584 228 CHAPTER 14 Built in Variables and Functions 14 8 W 9eL 96S D 9eBIT 96W L 96S or 96D replaces the data with any of the following memory data read from the specified address E Debugger B Format Para Simulator Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 we BIT address B address W address L address S address D address meter address Specify the address from where memory data to be read Description Example BIT B WW L 96S or D replaces the data with any of the following memory data read from the specified address BIT Bit data W L S D Byte 8bit data Word 16bit data Long word 32bit data Single precision floating point number data Double precision floating point number data gt 1000 0 W 1000 1000 0x3020 229 CHAPTER 14 Built in Variables and Functions 14 9 STRGET STRGET replaces the character string in the specified count of characters starting from the specified character position in the specified character string E Debugger Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 me A B
62. 09A 09B MB2146 08 O O O MB2146 07 me o B Format EXAMINE expression Parameter expression address formula Specify the expression to be analyzed Command qualifiers BINARY Specifies the formula solution to be displayed as binary number OCTAL Specifies the formula solution to be displayed as octal number DECIMAL Specifies the formula solution to be displayed as decimal number HEXADECIMAL Specifies the formula solution to be displayed as hexadecimal number SINGLE Specified to display the analyzed formula solution as a single precision floating point number DOUBLE Specified to display the analyzed formula solution as a double precision floating point number 146 CHAPTER 5 Memory Register Operation Commands Description The EXAMINE command analyzes the specified formula in C language and displays the result When a variable is specified the command displays the data When a variable of structure or union or class type is specified the command displays all the member values When only an array name is specified the command displays all the data of that array When the display base number of a command qualifier is omitted the base number specified by the SET RADIX command is assumed Example gt EXAMINE strsym strsym a H 20 b H 4A30 c H 3012 V EXAMINE strsym a strsym a H 20 V Hh EXAMINE lags 0
63. 1 21 INITIALIZE EXIT RESET SET MODE SHOW MODE SET TIMERSCALE SHOW TIMERSCALE SET RADIX SHOW RADIX SET SOURCE SHOW SOURCE SHOW SYSTEM SET MAP type 1 SET MAP type 2 SHOW MAP CANCEL MAP ENABLE VERIFYMODE DISABLE VERIFYMODE SHOW VERIFYMODE SET INPORT SHOW INPORT CHAPTER 1 Environment Setup Commands 22 23 24 25 26 27 28 29 1 30 1 31 1 32 1 33 1 34 1 35 a mo c S ORAS cO CANCEL INPORT SET OUTPORT SHOW OUTPORT CANCEL OUTPORT SET INTERRUPT SHOW INTERRUPT CANCEL INTERRUPT SET VECTOR SHOW VECTOR ENABLE WATCHDOG DISABLE WATCHDOG SHOW WATCHDOG SET WATCH CANCEL WATCH CHAPTER 1 Environment Setup Commands 1 1 INITIALIZE The INITIALIZE command initializes the debugger E Debugger Ema Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 we B Format INITIALIZE Description The INITIALIZE command initializes the debugger This initialization nullifies all settings other than macro alias and debug variable Example gt INITIALIZE CHAPTER 1 Environment Setup Commands 1 2 EXIT The EXIT command terminates the debugger E Debugger Ema Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 me e B Format EXIT Description The EXIT command terminates the debugger Example gt EXIT CHAPTER 1 Environment Setup Commands 1 3 R
64. 146 09 09A 09B MB2146 08 MB2146 07 De B Format Format 1 gt CANCEL SEQUENCE EVENT level number event number lt Format 2 gt CANCEL SEQUENCE TIMER level number lt Format 3 gt CANCEL SEQUENCE LATCH latch number Format 4 gt CANCEL SEQUENCE ALL level number Command qualifiers classified by function EVENT Default Cancels setting of event number to be set as trigger This qualifier is used in Format 1 TIMER Cancels waiting time This qualifier is used in Format 2 LATCH Cancels latch function This qualifier is used in Format 3 ALL Cancels all settings This qualifier is used in Format 4 91 CHAPTER 3 Break Event Control Command Parameters level number default decimal number Specify the level number to be cancelled event number default decimal number Specify the event number to be cancelled latch number default decimal number Specify the identification number of the latch function Description When EVENT is specified the setting contents of the specified level and condition number for a sequencer are cancelled If an event number is omitted all the events set at the level will be cancelled When TIMER is specified the setting of the waiting time set at a specified level is cancelled When LATCH is specified the latch function corresponding to a specified latch number is cancelled If a level number is specified when ALL is give
65. 35 of the delay between when a sequencer terminates and when a trace terminates The delay count is executed in machine cycles Command qualifiers BREAK default at start up Specifies stopping of MCU execution when delay count terminates NOBREAK Specifies no stopping of MCU execution when delay count terminates Description The SET DELAY command sets the delay count as a sequencer terminates and specifies whether or not to cause a break at the end of a delay count B Example gt SET DELAY NOBREAK 200 95 CHAPTER 3 Break Event Control Command 3 26 SHOW DELAY The SHOW DELAY command displays the setting state of a delay count and the setting state of a break as a delay count terminates E Debugger Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 B Format SHOW DELAY Description The SHOW DELAY command displays the setting state of a delay count and the setting state of a break as a delay count terminates Example gt SHOW DELAY 96 CHAPTER 4 Program Execution Analysis Commands This chapter describes the Program Execution Analysis commands 4 1 4 2 4 3 4 4 4 5 4 6 4 7 4 8 4 9 4 10 4 11 4 12 4 13 4 14 4 15 4 16 4 17 4 18 4 19 4 20 4 21 SET MULTITRACE SHOW MULTITRACE CLEAR MULTITRACE ENABLE MULTITRACE DISABLE MULTITRACE SEARCH MULTITRACE SET PERFORMANCE SHOW PERFORMANCE CLEAR PERFORMANCE SET COVERAG
66. 6 09 09A 09B Only the sequence break is disabled Description The DISABLE BREAK command disables the specified break point s Example gt DISABLE BREAK 2 gt DISABLE BREAK 3 4 2146 09 09 09 gt DISABLE BREAK DATAWATCH gt DISABLE BREAK SEQUENCE 71 CHAPTER 3 Break Event Control Command 39 SET DATABREAK type 1 The SET DATABREAK command breaks the program when data at the specified address is accessed E Debugger Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 De SET DATABREAK data access address d break data B Format Parameters data access address address formula Specify the address at which data access break point set break data Default hexadecimal Specifies the data value that is the condition for a break Command qualifiers Specifying access attribute READ Breaks program when data read accessed WRITE Breaks program when data write accessed Description The SET DATABREAK command breaks the program when data at the specified address is accessed Use a command qualifier to set a break access type Breaks program both when data read accessed and when data write accessed if the command qualifier is omitted The following shows the maximum number of break points Emulator MB2146 09 09A 09B 2 72 CHAPTER 3 Break Event Control Command Example gt SET DATABRE
67. 6 09 09A 09B MB2146 08 MB2146 07 me fe B Format SHOW VARIABLE debug variable name Parameter debug variable name identifier Specify a debug variable name to be displayed Command qualifier ALL default when omitted Displays all debug variables Description The SHOW VARIABLE command displays the definition of the specified debug variable 195 CHAPTER 10 Replacement Commands Example gt SET VARIABLE CNT 1 gt WHILE CNT lt 5 SHOW VARIABLE CNT PRINTF CNT dMn CNT SET VARIABLE CNT CNT 1 ENDW CNT CNT CNT L 1 CNT 2 CNT 1 1 CNT 3 CNT 1 1 1 CNT 4 196 CHAPTER 10 Replacement Commands 10 6 CANCEL VARIABLE The CANCEL VARIABLE command cancels the specified debug variable E Debugger Ema e Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 we ej B Format CANCEL VARIABLE debug variable name Parameter debug variable name identifier Specify a debug variable name to be cancelled Command qualifier ALL Cancels all debug variables Description The CANCEL VARIABLE command cancels the specified debug variable Example gt CANCEL VARIABLE CHKADR X Y 197 CHAPTER 10 Replacement Commands 198 CHAPTER 11 Utility Commands This chapter describes the Utility commands 11 1 SET LOGGING 11 2 SHOW LOGGING 11 3
68. 7 23 SETXOUTPORT atop pete re eaten a arte BC S ta nd eke E cd 28 1 24 u cet E i da rd ads qhasa 30 1 25 OD SS ue EQ ate Ie SA 31 126 S oti ntc ot hau tup otl e Eas M DICIS 32 1 27 SHOW INTERRUPT eod Ent 33 28 S orate derat 34 1 28 n atreve oM E 35 1230 SHOW VECTOR 250 mu eC ela etidm bep 36 1 34 ENABLE WATCHDOG ni 97 1 32 DISABLE WATCHDOG du n AS di 38 133 SHOW WATOHDOG ots Maso riii Sas has anya acne 39 RIA SET WATOE C e 40 1 35 CANGEL WATCH uuu ua aa rero CURRUS ola aue RUD tad 42 2 Program Execution Commands 43 2 44 22 GOETGO TA rrr mE CE 46 2 3 SHOW GO kay san iita toute ot fot 47 24 Odone canet ca cop
69. AK amp checkflg Notes f an automatic variable in the function is specified the current address at which the variable is stored is set as the data access address To break the program when a C variable is accessed specify amp before the variable as the variable address 73 CHAPTER 3 Break Event Control Command 3 10 SET DATABREAK type 2 The SET DATABREAK command breaks the program when data at the specified address is accessed E Debugger Ema o Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 me xj Format SET DATABREAK data access address pass count command command Parameters data access address address formula Specify the address at which data access break point set pass count default decimal number Specify the number of times break point to be hit 1 to 65535 Program execution specifying is stopped when this number of times is reached If pass count is omitted 1 is assumed This function is valid when the debugger type is only a simulator debugger command Specify the command list for executing when the break address is hit Two or more commands can be specified by using the colon This function is valid when the debugger type is only a simulator debugger Command qualifiers READ Breaks program when data read accessed WRITE Breaks program when data write accessed 74 CHAPTER 3 Break Event Contro
70. ALL Assigns undefined attribute to all set maps Description The CANCEL MAP command assigns the undefined attribute to the specified address area Example CANCEL MAP ALL 20 CHAPTER 1 Environment Setup Commands 1 17 ENABLE VERIFYMODE The ENABLE VERIFYMODE command enables the verify operation used when memory is written by a command E Debugger Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 B Format ENABLE VERIFYMODE Description The ENABLE VERIFYMODE command enables the verify operation used when memory is written by a command The verify operation is enabled when the debugger is started Example gt ENABLE VERIFYMODE 21 CHAPTER 1 Environment Setup Commands 1 18 DISABLE VERIFYMODE The DISABLE VERIFYMODE command disables the verify operation used when memory is written by a command E Debugger Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 me B Format DISABLE VERIFYMODE Description The DISABLE VERIFYMODE command disables the verify operation used when memory is written by a command The verify operation is enabled when the debugger is started Example gt DISABLE lt ERIFYMODE 22 CHAPTER 1 Environment Setup Commands 1 19 SHOW VERIFYMODE The SHOW VERIFYMODE command displays the status of the verify mode E Debugger Ema
71. ATCHDOG eet 38 ENABLE WATCHDOG cete 37 SHOW WATCHDOG aaa 39 WHILE l oe te 219 CM25 00323 5E FUJITSU SEMICONDUCTOR CONTROLLER MANUAL F MC 8L 8FX FAMILY Workbench COMMAND REFERENCE MANUAL July 2011 the fifrh edition Published FUJITSU SEMICONDUCTOR LIMITED Edited Sales Promotion Dept
72. Accessed SOURCE INSTRUCTION is specified the access count will be displayed as follows No access Accessed Blank Not generate the code or line outside measurement range The coverage rate outside all the coverage measurement range is displayed as if specify MODULE The asterisk is displayed next the coverage rate when a part of the area is outside the coverage measurement range B Example gt SHOW COVERAGE HEX 0X0 1X0 2X0 address 012345678 9ABCDEF0123456789ABCDEF0123456 ABCDEF CO FF00 MUR SIE 32 0 gt SHOW COVERAGE SOURCE 70 Lig int ave 2 struct table value 16 733 74 for i20 i 16 i gt value i amp target il 76 X 7 73 sort val value 161 785 3 gt SHOW COVERAGE MODULE sample abs 84 03 t startup asm 90 43 sample c 95 17 HH Sampa AG qus 100 00 At analyzing not that the code coverage is measured by the prefetch affecting in MB2141 emulator 115 CHAPTER 4 Program Execution Analysis Commands 4 12 CANCEL COVERAGE The CANCEL COVERAGE cancels the coverage measurement area and disables the coverage measurement function E Debugger Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 me xj B Format CANCEL COVERAGE measurement range Parameter measurement range address formula Specify th
73. All rights reserved Command Reference Notation Format The command reference notation format is given below Command name Debugger B Format Description Example Command name Name of command to be explained Debuggers Usable commands depend on the debugger type are explained When using the emulator debugger usable commands vary depending on the emulator Debugger type Simulator Simulator debugger Emulator Emulator debugger Monitor Monitor debugger Symbol for usable command Can use command Can use command except when instruction being executed X Cannot use command There is no debugger Format The format parameters and command qualifiers of the command are explained Enter the command in this format The following items are described in 6 parameter Default n adic number shows the base number handled when prefix is omitted For details of address formula refer to 2 1 5 Address Formula Specification in SOFTUNE Workbench Operation Manual Description The command function is explained Example Command coding example This example may differ slightly from the actual coding CONTENTS CHAPTER 1 Environment Setup Commands 1 137 pe petere t rc e pedea piunt a et DATI M uui 3 1505 JBXI S aen a One eect t ctc enc LUNA ae Mere Unt e D tbe Da clo cs ael
74. B2146 09 09A 09B MB2146 08 MB2146 07 B Format SET COVERAGE measurement range Parameter measurement range address formula Specify the coverage measurement area If AUTOMATIC is given in the command qualifier this parameter cannot be specified Command qualifier AUTOMATIC default when omitted Automatically sets code area of currently loaded module The library area of the C compiler is not set Description The SET COVERAGE command specifies the coverage measurement area Up to 32 areas can be set The coverage area can be set within the area set as the debug area Example gt SET COVERAGE FEOO FFFE 112 CHAPTER 4 Program Execution Analysis Commands 4 11 SHOW COVERAGE The SHOW COVERAGE command displays the result of coverage measurement in a specified measurement range E Debugger Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 Pew B Format Format 1 SHOW COVERAGE STATUS Format 2 gt SHOW COVERAGE GENERAL measurement range Format 3 gt SHOW COVERAGE TOTAL DETAIL measurement range Format 4 gt SHOW COVERAGE SOURCE file name line number line number address address range Format 5 SHOW COVERAGE INSTRUCTION address address range Format 6 gt SHOW COVERAGE MODULE source file name coverage range number of columns Parameters measurement rang
75. BLE DATABREAK The ENABLE DATABREAK command enables the specified data access break point s E Debugger Ema 5 Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 Format ENABLE DATABREAK breakpoint number Parameter breakpoint number default decimal number Specify the break point number Use the SHOW DATABREAK command to reference the set break point numbers Command qualifier ALL Enables all data break points Description The ENABLE DATABREAK command enables the specified data access break point s Example V ENABLE DATABREAK 1 ENABLE DATABREAK 1 2 V 78 CHAPTER 3 Break Event Control Command 3 14 DISABLE DATABREAK The DISABLE DATABREAK command disables the specified data access break point s E Debugger mae o Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 pe Format DISABLE DATABREAK breakpoint number Parameter breakpoint number default decimal number Specify the break point number See the break point number by using SHOW DATABREAK command Command qualifier ALL Disables all data break points Description The DISABLE DATABREAK command disables the specified data access break point s Example gt DISABLE DATABREAK 1 gt DISABLE DATABREAK 1 2 79 CHAPTER 3 Break Event C
76. CE type 1 127 SHOW TRACE type 2 129 130 SHOW VARIABLE eres 195 SHOW VECTOR I ep 36 SHOW VERIFYMODE cens 23 SHOW WATCHDOG rer eut 39 SOURCE SET SOURCE meae bed 13 SHOW SOURCE scimus 14 STATUS SHOW STATUS m c p aD oett 57 308 STEP RET CUE Pains sin eit ra t es 51 SHOW STEP linen am asahan ahua 53 STEP ead EPA asas LEE 49 SYSTEM SHOW SYSTEM 15 T TIMER CLEAR TIMER t ot Ue bd 125 SHOW TIMER C 222 123 TIMERSCALE SET TIMERSCALE S Dee tend 9 SHOW TIMERSCALE ict titt tet ta 10 TRACE CREAR TRACE out A Seton s 132 DISABLE TRACE etes 134 ENABLE TRACE 133 SEARCH TRACES 135 SET TRACE oun Monae Bact CAE 126 SHOW TRACE type 2 c 129 130 U UP EE E tisa 183 VARIABLE CANCEL VARIABLE etes 197 SET VARIABLE teorie 193 SHOW VARIABLE tees 195 VECTOR SET VECTOR attese alata 35 SHOW VECTOR 36 VERIFY VERIBY vacantis da toot erence 166 VERIFYMODE DISABLE VERIFYMODE cte 22 ENABLE VERIFYMODE ces 21 SHOW VERIFYMODE ces 23 W WATCH CANCEL WATCH detecte Rd 42 SET WATCH shana aquya natas erste siut 40 WATCHDOG DISABLE W
77. E SHOW COVERAGE CANCEL COVERAGE CLEAR COVERAGE ENABLE COVERAGE DISABLE COVERAGE SET SAMPLING SHOW SAMPLING SHOW CALLS SHOW TIMER CLEAR TIMER SET TRACE 97 CHAPTER 4 Program Execution Analysis Commands 98 4 22 4 23 4 25 4 26 4 27 4 28 4 29 4 30 4 31 4 32 4 33 SHOW TRACE type 1 SHOW TRACE type 2 CLEAR TRACE ENABLE TRACE DISABLE TRACE SEARCH TRACE SET RAMMONITOR SHOW RAMMONITOR CANCEL RAMMONITOR ENABLE RAMMONITOR DISABLE RAMMONITOR 4 1 SET MULTITRACE CHAPTER 4 Program Execution Analysis Commands When in the MULTITRACE mode when the event mode is set to MULTITRACE the full break of a trace buffer is controlled E Debugger B Format Com Emulator MB2141 2146 09 09 09 2146 08 2146 07 me SET MULTITRACE mand qualifiers BREAK Enables full break of trace buffer NOBREAK default when omitted Disables full break of trace buffer Description In the MULTITRACE mode when the event mode is set to MULTITRACEB the full break of a trace Example buffer is controlled When a mode is set when a command qualifier specified the trace buffer is cleared by the CLEAR MULTITRACE command to enable trace measurement by the ENABLE MULTITRACE command When the full break of a trace buffer is enabled program execution with the buffer full is suspended When a debugger is started the full break of a trace buffer is disabled by
78. E command Up to 8 events can be specified in each mode and information about them is independent in each mode If a mode is changed event information in a mode before the change will be saved and event information previously set in a mode after the change will be restored In the normal mode the event will trigger a sequencer To avoid this only an event should be set In the MULTITRACE mode all the set events will trigger a multitrace In the PERFORMANCE mode each event number has the following meaning Event 1 Starting event in section 1 Event2 Ending event in section 1 Event 3 Starting event in section 2 Event4 Ending event in section 2 Event 5 Starting event in section 3 Event 6 Ending event in section 3 Event 7 Starting event in section 4 Event 8 Ending event in section 4 Use of the SET RUNMODE command will clear all the event settings gt SET EVENT READ1 funcl gt SE EVENT WRITE 2 amp data 2 d h 10 81 CHAPTER 3 Break Event Control Command 3 16 SHOW EVENT The SHOW EVENT command shows the contents set by the SET EVENT command E Debugger s Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 Dae x B Format SHOW EVENT event number Parameter event number Specify the event number 1 to 8 Command qualifier ALL default when omitted Shows all events Description Displays the event settings of the
79. EBUG I F Explanation The current reference clock for a high speed communication is beyond the limits of the clock that can be set Operator response Check whether to mistake the set reference clock for the high speed communication 29 APPENDIX B Error Message for Debuggers E4501S Verify error Explanation A verify error occurred when data was being written to memory by a command Operator response Check that data was written to the I O area where values change and that memory is mounted Also check whether or not a memory error occurred E45028 Illegal stack area Explanation The stack area used by the monitor debugger cannot be accessed Operator response Secure the correct stack area E4503S System call error cannot execute Explanation In this state a system call cannot be executed normally Operator response Execute a system call in the state in which system calls can be issued Interrupts may be disabled 45045 This command is not built in Explanation The associated function is not built in a target side Operator response Built the associated function in the target side program 45055 FLASH area can be changed only by LOAD command Explanation Only the LOAD command can be used to access the Flash area Operator response To update the Flash area create an update file and load it using the LOAD command 45065 The file of mixed ROM RAM areas can not be loaded
80. EMORY HEXADECIMAL C000 C02D C000 H 31 C02D H 64 153 CHAPTER 5 Memory Register Operation Commands gt SHOW MEMORY ASCII COOA COOA a gt SHOW MEMORY SINGLE DECIMAL C030 C030 2 5931515 9 gt SHOW MEMORY BYTE C000 C000 H 31 gt SHOW MEMORY C001 H 32 gt SHOW MEMORY C002 H 33 154 CHAPTER 5 Memory Register Operation Commands 5 5 SEARCH MEMORY The SEARCH MEMORY command searches the specified memory for the specified data and displays the address matching the data E Debugger Emulator MB2141 MB2146 08 2146 09 09 09 O 2146 07 mo 00 Format SEARCH MEMORY address range data S skip byte count Parameters address range address formula Specify the memory area to be searched data data formula Specify the data to be searched skip byte count data formula Specify the number of bytes to be skipped during search to H FFFF can be specified If this parameter is omitted the data length is assumed Command qualifiers Data length BYTE default when omitted Searches for specified data as 8 bit length data WORD Searches for specified data as 16 bit length data LONG Searches for specified data as 32 bit length data ASCII Searches for specified data as ASCII character strings 155 CHAPTER 5 Memory Register Operation Commands Description The SEARC
81. ESET The RESET command inputs the reset signal to the MCU E Debugger Emulator MB2141 MB2146 09 09A 09B MB2146 08 O O O MB2146 07 we 9 B Format RESET Description The RESET command inputs the reset signal to the MCU Example gt RESET CHAPTER 1 Environment Setup Commands 1 4 SET MODE The SET MODE command sets the event mode as follows B Debugger Ema x Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 me xj B Format SET MODE Command qualifiers Set event mode NORMAL default at start up Sets event mode to NORMAL mode MULTITRACE Sets event mode to MULTITRACE mode PERFORMANCE Sets event mode to PERFORMANCE mode Description The SET MODE command sets the event mode NORMAL mode The event function is used for control by a sequencer Command setting related to SEQUENCE DELAY and TRACE is enabled e MULTITRACE mode The event function is used for multi tracing Command setting related to MULTITRACE is enabled PERFORMANCE mode The event function is used for measuring performance Command setting related to PERFORMANCE is enabled The commands related to EVENT can be used in all modes each mode has different values If a mode is changed the value will return to the value previously set in the mode A mode change will also clear the single trace multitrace and performance buffers
82. FUJITSU SEMICONDUCTOR CONTROLLER MANUAL CM25 00323 5E F MC 8L 8FX FAMILY SOFTUNE Workbench COMMAND REFERENCE MANUAL cO FUJITSU F MC 8L 8FX FAMILY SOFTUNE Workbench COMMAND REFERENCE MANUAL FUJITSU SEMICONDUCTOR LIMITED PREFACE E What is the SOFTUNE Workbench SOFTUNE Workbench is support software for developing programs for the F MC 8L 8FX families of microcontrollers It is a combination of a development manager simulator debugger emulator debugger monitor debugger and an integrated development environment for efficient development Note F2MC is the abbreviation of FUJITSU Flexible Microcontroller Purpose of this manual and target readers This manual explains the command and built in variable function of the SOFTUNE Workbench in the reference format This manual is intended for engineers developing various types of products using SOFTUNE Workbench Be sure to read this manual completely Trademarks SOFTUNE is a trademark of FUJITSU SEMICONDUCTOR LIMITED Windows is registered trademarks of Microsoft Corporation in the U S and other countries The company names and brand names herein are the trademarks or registered trademarks of their respective owners Organization of Manual This manual consists of 14 chapters and an appendix CHAPTER 1 Environment Setup Commands This chapter describes the Environment Setup commands CHAPTER 2 Program Execution Commands This chap
83. H MEMORY command searches the specified memory for the specified data and displays the address matching the data Example gt SEARCH MEMORY 2000 3000 88 found at 2050 found at 2577 found at 2BDF 156 CHAPTER 5 Memory Register Operation Commands 5 6 SET REGISTER The SET REGISTER command sets the specified value in the specified register or flag E Debugger Ema oo Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 me oj Format SET REGISTER register name data Parameters register name Specify the name of register or flag to be modified For register and flag names refer to the Appendix A List of Register Names of SOFTUNE Workbench Operation Manual data data formula Specify the value to be set in specified register or flag Description The SET REGISTER command sets the specified value in the specified register or flag Example gt SE gt SE 9 EGISTER PC 1000 EGISTER 1 9 157 CHAPTER 5 Memory Register Operation Commands 5 7 SHOW REGISTER The SHOW REGISTER command displays the contents of the specified register or flag in hexadecimal notation E Debugger Ema o Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 Format SHOW REGISTER register name Parameter register name Specify the name of register or flag to be checked When the re
84. IX C Execution Suspension Messages List Break at address by sequential break Explanation This message is displayed when a break is caused by a data event Address indicates the address of the next instruction to be executed where execution was suspended Break at address by data event break Explanation Displayed when the break is caused by the sequencer Address indicates the address of the next instruction to be executed where execution was suspended Break at address by sequential or pass count break Explanation Displayed when the break is caused by sequence or hardware count break Address indicates the address of the next instruction to be executed where execution was suspended Break at address by guarded access Explanation This message is displayed when a break is caused by code fetch access to a code fetch inhibited area read access to a read inhibited area or write access to a write inhibited area There may be an error in the memory attribute or the program Address indicates the address of the next instruction to be executed where execution was suspended Note If the CPU pause state is released during execution of the user program that information is also displayed as additional information Example When stopped due to the forced break Break at address by command abort request exit CPU pause It should be noted that there are four types of CPU pause state Sleep Mode Stop Mode Ready Mode Ha
85. K odit natat 67 C CALL CAT einst utut EUR Acta 54 CLEAR CALL ER D 56 CALLS SHOW CALLS a aos den ait 122 CANCEL CANCEL ALIAS etnies 192 CANCEL BREAK eere 69 CANCEL COVERAGE ees 116 CANCEL 4 4 10 77 CANCEL 83 CANCEL INPORT eerte 27 CANCEL INTERRUPT etes 34 CANCEL LOGGING Du 203 CANCEL MAP datio ds richtet 20 CANCEL OUTPORT eee 31 CANCEL RAMMONITOR cts 140 CANCEL 91 CANCEL VARIABLE ees 197 CANCEL WATCH eerte 42 CLEAR CEEAR CALD uo s obedientie 56 CLEAR COVERAGE etes 117 CLEAR MULTITRACE aaa 102 CLEAR TIMER I Asta adiret 125 CLEAR TRACE eat Sisku OUR 132 305 INDEX CLEARE CLEAR 111 COPY sapaska 165 COVERAGE CANCEL COVERAGE eene 116 CLEAR COVERAGE eese 117 DISABLE COVERAGE eese 119 ENABLE COVERAGE eese 118 neret 112 SHOW 0222 113 DATABREAK CANCEL DATABREAK 77 DISABLE DATABREBAKRK
86. LTIFRACE u u donee auus ect ms t aka iata 102 44 ENABLE MUETITRACE 2 20 63 pun Sed o D feci EI HD 103 4 52 DISABLE MIJETITRAGE qS Bus asa hasp Gas 104 46 SEARCH MDLPTITRACE u aaa u 105 7 r JSETPERHFOBMANOE c un at Medea t fes Dott 107 48 SHOW PERFORMANCE sites Sasso acai esi 109 49 etico ein dette reatu c fe MU od Ln e OMA A 111 450 nace lee S 112 add SHOWIOOOVERAGE 2 5 eI a tou da mau a 113 CANCE OOVER AC DAP aE 116 41 18 CREAR COVERAGE Ganda a cesa 117 414 gt uen E 118 415 DISABLE COVERAGE ante 119 Ale SET SAMPLING DERE XR 120 SSHOWSAMPEING aap fo aim rre QU d nat un 121 BPS SSHOWCADESL ana saa LS nha E E tM P nite m RIS M ADR a S 122 4 19 SHOWN TIMER aD uu d ferte less eri 123 4202 SSEEAPCTIMER
87. MB2146 09 09A 09B MB2146 08 MB2146 07 This command is available if only the BGM adapter MB2146 09B or the MCU board MB2146 301B E or MB2146 303B E is used B Format CANCEL RAMMONITOR address CANCEL RAMMONITOR ALL Parameters address address formula Specify the watching address to be canceled Command qualifiers ALL Cancels all watching address Description The CANCEL RAMMONITOR command cancels the address watching by the RAM monitor function 140 CHAPTER 4 Program Execution Analysis Commands B Example SHOW RAMMONITOR RAM Monitoring enable ch 0 0140 word main data_1 ch 1 1200 byte ch 2 1240 byte CANCEL RAMMONITOR 0x1240 SHOW RAMMONITOR RAM Monitoring enable ch 0 0140 word AmainNdata 1 ch 1 1200 byte 141 CHAPTER 4 Program Execution Analysis Commands 4 32 ENABLE RAMMONITOR The ENABLE RAMMONITOR command enables the RAM monitor function E Debugger Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 This command is available if only the BGM adapter MB2146 09B or the MCU board MB2146 301B E or MB2146 303B E is used B Format ENABLE RAMMONITOR Description The ENABLE RAMMONITOR command enables the RAM monitor function Example SHOW RAMMONITOR RAM Monitoring disable ch 0 0140 word main data_1 ch 1 1200 byte ch 2 1240 byte ENABLE RAMMONITOR SHOW RAMMONITOR RAM
88. OW REGISTER pi a 190 CHAPTER 10 Replacement Commands 10 2 SHOW ALIAS The SHOW ALIAS command displays the defined command alias list E Debugger mas Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 Wwe 9 B Format SHOW ALIAS Description The SHOW ALIAS command displays the defined command alias list Example gt SHOW ALIAS T STEP D EXAMINE SHOW REGISTER PC gt 191 CHAPTER 10 Replacement Commands 10 3 CANCEL ALIAS The CANCEL ALIAS command cancels the alias of the specified command character string E Debugger Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 we ej B Format CANCEL ALIAS alias Parameter alias identifier Specify a command alias to be cancelled Command qualifier ALL Cancels aliases of all command character strings Description The CANCEL ALIAS command cancels the alias of the specified command character string Example gt CANCEL ALIAS BP gt 192 CHAPTER 10 Replacement Commands 10 4 SET VARIABLE The SET VARIABLE command defines a debug variable E Debugger mas e Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 me ej Format SET VARIABLE debug variable name replacing character string Par
89. PTER 3 Break Event Control Command Specification of break point type HARD default at start up The break point by hardware is set This function is valid when the debugger type is only a emulator debugger MB2146 08 MB2146 07 SOFT The break point by software is set This function is valid when the debugger type is only a emulator debugger MB2146 08 MB2146 07 Description The SET BREAK command sets a break point at the specified break address The maximum settable count of break points to be specified is as follows Break point Debugger Hardware Software MB2141 65535 1 2 MB2146 09 09A 09B 256 1 3 Emulator MB2146 08 3 256 3 MB2146 07 3 256 3 Simulator 65535 1 Monitor 2 There is no distinction between hardware and software 2 65535 breakpoints or less can be set in the area where the debugging area is set as a code break area This area is set by the SET DEBUG command 3 When the breakpoint is set the code is rewritten Example Common for each debugger gt SE BREAK FFO2 Simulator debugger gt SET BREAK FF03 3 gt SET BREAK NOBREAK main 1 SHOW TRACE SHOW TIMER Emulator debugger MB2146 08 MB2146 07 gt SET BREAK HARD FFO2 62 CHAPTER 3 Break Event Control Command Notes The following execution type command cannot be specified for the command lis
90. SCALE The SHOW TIMERSCALE command displays the minimum measurement unit of a timer E Debugger Sen Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 B Format SHOW TIMERSCALE Description The SHOW TIMERSCALE command displays the minimum measurement unit of a timer Example gt SHOW TIMERSCALE Timer scale 100 ns 1 8 SET RADIX CHAPTER 1 Environment Setup Commands The SET RADIX command sets default base number E Debugger mae 8 Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 Wu 9 B Format SET RADIX Command qualifiers BINARY Sets default base number to binary number OCTAL Sets default base number to octal number DECIMAL Sets default base number to decimal number HEXADECIMAL default Sets default base number to hexadecimal number Description The SET RADIX command sets default base number Example gt SET RADIX HEXADECIMAL CHAPTER 1 Environment Setup Commands 1 9 SHOW RADIX The SHOW RADIX command displays the current base number E Debugger mae 8 Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 Due 9 B Format SHOW RADIX Description The SHOW RADIX command displays the current base number Example gt SHOW RADIX default radix hexadecimal CHAPTER 1 Environment Setup Commands
91. SHOW OBJECT command displays specified object data E Debugger Ema Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 Dae B Format SHOW OBJECT object number Parameter object number valid only for TSK SEM FLG MBX MPL CYC and ALM Specify an object number to be displayed When object number is omitted the outlines of all the objects are displayed Command qualifiers Object specification TSK Displays task data SEM Displays semaphore data FLG Displays an event flag data MBX Displays mailbox data ICYC Displays cyclic handler data RDYQ Displays ready queue data TMRQ Displays data in timer wait queue 212 Description The SHOW OBJECT command displays specified object data Example gt SHOW OBJECT TSK 1 Task Information tskid 0001 tcbadr status READY wupcnt 00 tmocnt stack 2347 stkarea gt SHOW OBJECT SEM 1 Semaphore Information semid 0001 QUEadr semcnt 0001 semadr wtskid NONE gt SHOW OBJECT FLG 1 lt EventFlag Information gt flgid flgptn wtskid gt SHOW OBJ 0001 clear NONE ECT MBX 1 QUEadr flgadr Mailbox Information mbxid msgadr wtskid 0001 NONE NONE gt SHOW OBJECT CYC 1 Cyclic cycid cycact 1fttim 0001 0000 gt SHOW OBJECT RDYQ QUE
92. SHOW SAMPLING eren 121 SAVE ab m deum ua u 175 SCOPE SHOW SCOPE uote etude de 182 SEARCH SEARCH MEMORY cerent 155 SEARCH MULTITRACE eee 105 SEARCH TRAGE un nana a att aula DS 135 SEQUENCE CANCEL SEQUENCE eterne 91 DISABLE SEQUENCE esscsssecsesecsesecseserseeesseees 94 ENABLE SEQUENCE eene 93 SET SEQUENCE entente tette tton 86 SHOW SEQUENCE eere 88 SET SET ASTAS dns 190 SET BREAK type 1 teneas 61 SET BREAK type 2 64 SET BREAK type 3 cse 65 66 SET COVERAGE Lei cit eni depre 112 SET DATABREAK type 1 es 72 SET DATABREAK type 2 ees 74 SET DELAY S i utem aite 95 SET EVENT Samariae etti ted 80 SET GO Sh umma SGS EU 46 SET INTERRUPT 32 SET EOGGING 052 200 SET MAP type 1 16 SET MAP type 2 18 SET MEMORY 150 SET MODE 6 SET MULTITRACE cccscscssessesessesesecseserseeereeees 99 SETOUPPORLDL datant Beaded 28 neun 208 SET PATET a 180 SET PERFORMANCE 4 400 107 ma aqa 11 INDEX SET RAMMONITOR tees 137 SET REGISTER a a aaa 157 SET SAMPLING 120 SET SEQUENCE eerte 86 SET SOURCE Gah omen NY 13 SETSDEB A
93. Shorten the execution file name E4797W Explanation Option string too long The option string exceeds the maximum count of characters Operator response Shorten the option string N O APPENDIX A Manager Related Messages E4798W The executing directory too long Explanation The directory name is too long Operator response Shorten the directory name 262 APPENDIX B Error Message for Debuggers APPENDIX B Error Message for Debuggers This appendix describes the Error Message for Debuggers Error Message for Debuggers F9201S Invalid setup file not found Explanation The specified setup file could not be found Operator response Check if the file specified in the startup option setup file specification exists F92028 Invalid command or parameter in setup file Explanation An invalid command or parameter exists in the setup file Or the MCU setting information was changed so it is necessary to change the command or parameter Operator response Restart the debugger by using the Setup Wizard F92038 Invalid machine program execution error Explanation The machine program is already executed or it cannot be executed because the system resources are insufficient Operator response Check the execution state of the machine program If the machine program is not executed close the View Window or terminate another startup program E9204S The disk space is insu
94. TCHDOG Description The ENABLE WATCHDOG command enables a watchdog timer B Example gt ENABLE WATCHDOG 37 CHAPTER 1 Environment Setup Commands 1 32 DISABLE WATCHDOG The DISABLE WATCHDOG command disables a watchdog timer E Debugger Ema x Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 pee B Format DISABLE WATCHDOG Description The DISABLE WATCHDOG command disables a watchdog timer Example gt DISABLE WATCHDOG 38 CHAPTER 1 Environment Setup Commands 1 33 SHOW WATCHDOG The SHOW WATCHDOG command displays the enabled disabled state of a watchdog timer E Debugger Emulator MB2141 2146 09 09 09 2146 08 2146 07 me xj B Format SHOW WATCHDOG Description The SHOW WATCHDOG command displays the enabled disabled state of a watchdog timer Example gt SHOW WATCHDOG watchdog enable 39 CHAPTER 1 Environment Setup Commands 1 34 SET WATCH The specified variable is registered to the watch window E Debugger Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 Format SET WATCH variable watch window number Parameters variable Specifies variables or expressions to be set in the watch window watch window number Specify the number 1 to 4 of the watch window to which variables are added When omitted
95. The ENABLE LOGGING command can be used to enable logging again Example gt DISABLE LOGGING 205 CHAPTER 11 Utility Commands 11 6 PRINTF The PRINTF command displays the specified character string and the expression value of the specified format on the screen E Debugger Emulator MB2141 2146 09 09 09 2146 08 2146 07 we ej Format PRINTF format control string expression Parameters format control string Specify character strings to be displayed on screen and format for expression value display Enclose format specification in double quotation marks flag width precision 1 type Specify this parameter when displaying data according to format specification The PRINTF command displays characters that are not format specification after as they are flag Specify whether to right or left justify display o octal number or Ox OX hexadecimal number and output control When flag is omitted the display is right justified This parameter is invalid when the conversion display format type is b or f Left justification Adds 0 Ox or OX before numeric value 0 is added when the conversion display format is Ox is added when the format is x 0X is added when the format is X width Specify minimum count of digits of integral to be output When the conversion result is less than the specified count of digits the remaining areas
96. Variable Explanation The set value is illegal Operator response Check the set value 25 APPENDIX A Manager Related Messages E4740W This executable file does not exist Register in the list Explanation The file in the execution file name cannot be found Operator response Check the file name E4741 W Title is not specified Explanation The title is not specified Operator response Specify the title E4742W Executable file is not specified Explanation An execution file name is not specified Operator response Specify an execution file name E4743W The registration count is maximum You cannot register any more Explanation No more settings can be saved Operator response Delete unnecessary settings E4744W Syntax error Illegal macro is specified Explanation An undefined option and macro description are found in the execution directory Operator response Check the syntax E4745W Title is too long Explanation The title is too long Operator response Shorten the title E4746W Execute file name is too long Explanation The execution file name is too long Operator response Shorten the file name 256 E4747W APPENDIX A Manager Related Messages Option too long Explanation The specified option is too long Operator response Shorten the option E4748W The executing directory too long Explanation The directory name is too lon
97. W Please specify a correct end address Explanation The end address is incorrect Operator response Specify the correct end address E4625W Please specify the ROM RAM area name Explanation The ROM RAM area name is not specified Operator response Specify the ROM RAM area name E4626W Please specify the section name Explanation The section name is not specified Operator response Specify the section name E4627W Maximum of address is OXFFFFFFFF Explanation The address exceeds the maximum value Operator response Check the address specification 25 APPENDIX A Manager Related Messages E4628W Maximum of address is OXFFFFFF Explanation The address exceeds the maximum value Operator response Check the address specification E4629W Maximum of address is OXFFFF Explanation The address exceeds the maximum value Operator response Check the address specification E4630W Cannot specify address over bank Explanation The specified address crosses several banks Operator response Specify an address within one bank E4631W Specify symbol name Explanation The symbol name is not found Operator response Specify the symbol name E4632W Specify set value Explanation The set value is not found Operator response Specify the set value E4635W This symbol name has already been registered Change the setting Explanation The specified sy
98. Watch Window 1 will be specified Command qualifiers Base Number BINARY Specify that variable values will be displayed in binary OCTAL Specify that variable values will be displayed in octal DECIMAL Specify that variable values will be displayed in decimal HEXADECIMAL Specify that variable values will be displayed in hexadecimal Watch Mode AUTOMATIC Interprets variables in the watch mode set in the debug environment If the setting in the debug environment is changed the watch mode for variables is changed as well 40 CHAPTER 1 Environment Setup Commands C Interprets variables as C language expressions ASSEMBLER Interprets variables as assembler expressions Data Size BYTE Specify that display will be provided with 8 bit length in assembler mode WORD Specify that display will be provided with 16 bit length in assembler mode LONG Specify that display will be provided with 32 bit length in assembler mode SINGLE Specify that display will be provided with single precision floating point number in assembler mode DOUBLE Specify that display will be provided with double precision floating point number in assembler mode Individual monitoring setting MONITORING Default when omitted Sets the individual monitoring settings for variables to ON Can specify this command qualifier in the simulator debugger and the emulator debugger MB2141 NOMONITORING Sets the individual monitoring settings for
99. ace mode and so the command cannot be executed Operator response Change event mode to a mode where the command can be used 44285 Command error event mode violation Multi trace Explanation Event mode is set to multi trace mode and so the command cannot be executed Operator response Change event mode to a mode where the command can be used 44295 Command error trace function is operating Explanation The command that cannot be executed during the trace function has been issued Operator response Check the command 44305 If access size is word this event cannot be set Recommend care Explanation Though the access size was specified for the word the odd address is tried to set Operator response Specify the access size for Size Free EA431S Data on the RAM is broken Explanation The recovery of RAM area that the debugger has used temporarily failed The debugger uses a part of internal RAM under the following conditions When the execution starts When the break is executed When the reset is executed When the debug completes Operator response Set the RAM contents again if necessary 44325 Command error pass count mode violation Explanation The command that can not be used in a current pass count mode was input Operator response Switch the pass count mode 292 APPENDIX B Error Message for Debuggers 44335 Command error time measurement
100. ad Therefore map it in the emulation memory before executing the Debug Reset MCU menu E4415S Invalid MCU Explanation Commands cannot be executed because MCU is not an operational state Operator response 1 Set the reset vector and the mode data then execute the Debug Reset MCU menu 2 Release the SLEEP STOP or HOLD state on the user system side or set the reset vector and the mode data then execute the Debug Reset MCU menu Note that the HOLD state cannot be released by the Debug Reset MCU menu 3 Check the execution result of the command E4416S Invalid jump level number Explanation The jump destination level number of the sequencer is incorrect Operator response Review the jump destination level number The sequencer cannot jump to the same level as the level to be specified 28 APPENDIX B Error Message for Debuggers 44175 Command error on internal ROM real time mode Explanation The command cannot be executed because the MCU execution mode is native Operator response Change the MCU execution mode to debug E4418S Command error user reset Explanation This command cannot be executed because user reset is specified This error occurs even if user reset is already released Operator response Release user reset execute the Debug Reset MCU menu then execute this command E4419S Abort command error Explanation The ABORT command cannot be executed
101. adr Handler Information cycadr cychdr cyctime CHAPTER 12 Task Debug Commands 2100 tskpri 02 0000 2253 2352 2191 2189 2169 2168 0 21b1 lt Priority Ready Queue Information gt prino prino prino prino 01 02 03 04 tskcnt tskcnt tskcnt tskcnt 0000 0000 0001 0001 itskpri 02 213 CHAPTER 12 Task Debug Commands gt SHOW OBJECT TMRQ Timer Queue Information tmrqadr 2249 id 0001 0014 214 CHAPTER 13 Control Commands This chapter describes the Control commands 13 1 IF 13 2 REPEAT 13 3 WHILE 13 4 BREAK CHAPTER 13 Control Commands 13 1 IF When formula is evaluated as true the command list immediately after IF is executed When formula is evaluated as false the command list after ELSE is executed E Debugger Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 B Format IF formula command list ELSEIF formula command list ELSE command list ENDIF Parameters formula Specify the execution condition formula of specified command list command list Specify the commands to be executed Description When formula is evaluated as true the command list immediately after IF is executed When formula is evaluated as false the command list after ELSE is executed If formula is false when ELSE is omitted nothing is executed On
102. al Operator response Please restart the debug system or change the target device F94128 Invalid supply voltage Explanation The supply voltage supplied from the user system is found abnormal Operator response Review the supply voltage of the user system 94135 2100 01 is not connected Explanation USB is not connected or the power supply in MB2100 01 is turned off Operator response Connect MB2100 01 or turn on the power supply of MB2100 01 F9414S DLL version is different file name Explanation The version of the DLL file specified by File name is not correct Operator response Install latest SOFTUNE Workbench 96015 Invalid communication status cable connection Explanation The state of communication line is abnormal or the cable is not connected correctly Operator response Check the state of communication line Then terminate debugging turn the emulator off and turn the emulator on again When the USB cable is pulled out during debugging this message appears F9602S Invalid communication device name or not specified Explanation The specified communication device name is incorrect Operator response Check the communication device name in install file F9603S Invalid INTERFACE not specified in install file Explanation INTERFACE is not specified in install file Operator response Check the install file 266 APPENDIX B Error Message for Debuggers
103. al saved in trace buffer The minimum and maximum frame numbers are saved in the built in variables TRCTOP and TRCEND Displaying trace data when GLOBAL and LOCAL specified Example If a frame number is omitted the oldest trace data or trace data in the frame next to the one last displayed is displayed If only a block number is specified when LOCAL is given all the data corresponding to the block number will be displayed The display format is very similar to that of the SHOW TRACE machine cycle display where all traced data are displayed in each frame A block number is also displayed when display starts and at each portion where a block is changed gt SHOW MULTITRACE STATUS 101 CHAPTER 4 Program Execution Analysis Commands 4 3 CLEAR MULTITRACE The CLEAR MULTITRACE command clears a trace buffer E Debugger Sine Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 me B Format CLEAR MULTITRACE Description The CLEAR MULTITRACE command clears a trace buffer It is valid only when the event mode is set to MULTITRACE Example gt CLEAR MULTITRACE 102 CHAPTER 4 Program Execution Analysis Commands 4 4 ENABLE MULTITRACE The ENABLE MULTITRACE command enables the trace function E Debugger Ema x Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 me B Format ENABLE MULTITRACE Descript
104. al where data written to output port by program to be stored Specify TERMINAL as the output terminal TERMINAL cannot be specified as the file name The same file name cannot be used Command qualifiers Specifying access size BYTE default when omitted Specifies port access when specified address accessed 8 bits WORD Specifies port access when specified address accessed 16 bits LONG Specifies port access when specified address accessed 32 bits ASCII When data output destination is TERMINAL the debugger converts the data output to the port CHAPTER 1 Environment Setup Commands regarded as ASCII codes to characters and displays them on the screen When data output destination is a file the debugger outputs binary codes as they are When ASCII is specified the access size is always BYTE Description Example The SET OUTPORT command specifies that data is to be stored in the specified data output destination each time the program writes data to the specified port If the disk becomes full when data output destination is a file the debugger displays the error message and does not store the subsequent data in the file When data output destination is a output terminal 8TERMINAL the debugger displays the data output to the port on the screen in hexadecimal notation However when command qualifier ASCII is specified the debugger displays the output data in characters because the debugger treats the ou
105. alias definition macro definition The default extension is Ist Map setting specification AUTOMATIC default when omitted For simulator debugger automatically sets map area at loading MANUAL For simulator debugger does not automatically set map area at loading A map area must be set by the SET MAP command previously READ For simulator debugger sets ROM area for data segment as READ attribute if AUTOMATIC qualifier is valid If this qualifier is omitted the READ CODE attribute will be set Fast loading specification monitor debugger FAST This reduces the time to load the target file However the flash memory area other than the target area for loading will be cleared because all the flash memory area must be cleared before loading NOFAST default when omitted Load the target file without reducing the loading time The flash memory area of the target area for loading will be cleared 173 CHAPTER 7 Load and Save Commands Description The LOAD command loads the specified file This command can load the following four kinds of files The file is opened adding the default extension respectively when the file name extension is omitted Load module file Absolute format object file created by linker Memory image file Memory image file saved by SAVE command An address should be always specified to load the files Coverage data file Coverage data file saved by SAVE command Alias file File contai
106. ameters debug variable name identifier Specify a debug variable to be defined replacing character string Specify a character string replacing debug variable Description The SET VARIABLE command defines a debug variable The defined debug variable can be used as part of the parameter field when the command is specified The used debug variable is replaced with the replacing character string defined by this command as it is All the variables that can be specified in the parameter field can be defined For example a character string and an expression can be defined as they are The debug variable is replaced with the defined character string as it is so take care when defining with the same debug variables e g increment 193 CHAPTER 10 Replacement Commands Example gt SET VARIABLE ADDR 0309 12 gt SET VARIABLE STR ABCDEF gt SET MEMORY STRING ADDR STR can be replaced with SET MEMORY STRING 0309 12 ABCDE gt SET VARIABLE CNT 1 gt WHILE CNT lt 5 PRINTF val d d n CNT CNT SET VARIABLE CNT EVAL SCNT 1 The EVAL function is defined so that the CNT character string will not exceed the limit ENDW 194 CHAPTER 10 Replacement Commands 10 5 SHOW VARIABLE The SHOW VARIABLE command displays the definition of the specified debug variable E Debugger Ema e Emulator MB2141 MB214
107. attern over 0x01 to Oxff Explanation The value of the specified bit pattern is other than 0x01 to Oxff Operator response Check the bit pattern and then re enter the value 40155 Invalid bit offset over 0 to 31 Explanation The specified bit offset is other than 0 to 31 Operator response Check the bit offset then re enter the command E4016S Invalid register or flag name not found Explanation The specified register name or flag name is not found Operator response Check the register name or flag name and then re enter 274 40175 APPENDIX B Error Message for Debuggers Invalid symbol not found Explanation Operator response 40185 The specified symbol is not found in the symbol table Or the specified symbol is a local variable and the symbol path name is not registered in the current scope Check whether the invalid symbol name is specified or whether the symbol data in the module to which the symbol belongs is registered in the symbol table and then re enter If the symbol data in the module to which the symbol belongs is registered in the symbol table specify the data with the symbol path name assigned or register the symbol path name in the current scope Invalid command alias not found Explanation Operator response 40195 The specified command alias does not exist Check the command alias then re enter the command Invalid line number not found
108. ays trace measurement conditions enabled disabled state of trace function and storage status of trace buffer Example gt SHOW TRACE STATUS en dis enable buffer full nobreak sampling end frame no 22639 to 00000 Step no 22639 to 00000 129 CHAPTER 4 Program Execution Analysis Commands 4 24 SHOW TRACE type 3 The SHOW TRACE command preserves the trace data stored in the trace buffer in the file E Debugger sm 9 Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 Dm 0 B Format SHOW TRACE FILE file name Parameter file name Specify a file name with full path to which the trace data will be saved When the extension is omitted log is used as the extension Command qualifier classified by function Specification of the method preserved FILE Preserves the trace data in the file Command qualifiers Specification of the method preserved APPEND Preserves the trace data in the file additionally APPEND is effective only when FILE is specified Specification of data preserved CYCLE Default when omitted when MCU operational mode is native mode Preserves the trace data at the effective bus cycle INSTRUCTION Default when omitted when MCU operational mode is debug mode Preserves the trace data by the disassemble form SOURCE Preserves the trace data by each source line 130 CHAPTER 4 Program Execution Analysis Commands Des
109. by the CALL command accidentally passes the address indicated by the current program counter the program will break in the middle of the function In this case the following message is displayed Break at address by Invalid call termination CALL command execution is continued by restarting program execution with the GO command gt CALL debug cmd p return value is H 0001 55 CHAPTER 2 Program Execution Commands 2 9 CLEAR CALL The CLEAR CALL command cancels the CALL command and restores the status set before the register is called E Debugger Ema Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 me B Format CLEAR CALL Description The CLEAR CALL command cancels the CALL command and restores the status set before the register is called Example gt CALL debug cmd p Break at FF20 by break point gt CLEAR CALL 56 CHAPTER 2 Program Execution Commands 2 10 SHOW STATUS The SHOW STATUS command displays the MCU execution status E Debugger Ema e Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 me ej B Format SHOW STATUS Description During the program running The SHOW STATUS command displays the MCU execution status During the program stopping The SHOW STATUS command displays the break factor of the immediately preceding program execution The MCU execution status is display
110. ccess break point s set by the SET DATABREAK command E Debugger Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 we Format SHOW DATABREAK breakpoint number Parameter breakpoint number default decimal number Specify the break point number Command qualifier ALL default when omitted Displays all data break points Description The SHOW DATABREAK command displays the data access break point s set by the SET DATABREAK command Example gt SHOW DATABREAK no en dis address read write pass count symbol 1 enable 2000 read only 1 0 Ntrac 2 disable 2052 write only 65535 2345 76 CHAPTER 3 Break Event Control Command 3 12 CANCEL DATABREAK The CANCEL DATABREAK command cancels the specified data access break point s E Debugger Ema o Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 Dm X B Format CANCEL DATABREAK breakpoint number Parameter breakpoint number default decimal number Specify the break point number Use the SHOW DATABREAK command to reference the set break point numbers Command qualifier ALL Cancels all data access break points Description The CANCEL DATABREAK command cancels the specified data access break point s Example gt CANCEL DATABREAK 1 gt CANCEL DATABREAK 1 2 77 CHAPTER 3 Break Event Control Command 3 13 ENA
111. ce window display mode as follows When the source window display mode is the source line display mode the program is executed in units of source lines LINE When the source window display mode is another display mode the program is executed in units of machine instructions INSTRUCTION 49 CHAPTER 2 Program Execution Commands Step operation specification INTO Executes program for each step in called function subroutine or interrupt handler OVER Executes the following instructions as one step Function call when LINE is specified Subroutine call instruction e g CALL when INSTRUCTION is specified Software interrupt instruction e g INT when INSTRUCTION is specified Specification of the interrupt mask MASK Masks interrupt When the debugger type is only the simulator debugger or the emulator debugger MB2141 this command qualifier can be specified NOMASK default at start up Does not mask interrupt When the debugger type is only the simulator debugger or the emulator debugger MB2141 this command qualifier can be specified Description The STEP command executes the program in units of source lines or machine instructions according to the condition set by the SET STEP command When the Softune workbench is started the step Invalid condition is AUTOMATIC INTO B Example gt STEP gt STEP INSTRUCTION 50 CHAPTER 2 Program Execution Commands 2 6 SET STEP The
112. ches for trace data according to the specified condition B Debugger m o Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 Dm e x B Format Format 1 gt SEARCH TRACE address amp mask data f search start number Format 2 SEARCH TRACE d data amp mask data f search start number Parameters address address formula Specify the address to be searched data data formula MB2141 Specify the data to be searched mask data data formula Specify the masking and searching of address and data Only the bits set to are to be compared for search search start number default decimal number Specify the search start frame number When this parameter is omitted the command starts data search from the beginning of the trace buffer 135 CHAPTER 4 Program Execution Analysis Commands Command qualifiers ALL default when omitted Searches for all associated frames ONEFRAME Terminates trace data search when one frame found READ MB2141 Searches trace frame or step where read access made to specified address WRITE MB2141 Searches trace frame or step where write access made to specified address LEVEL MB2141 Searches for point where level of sequencer changes If this qualifier is given parameters other than the search start number cannot be specified Description The SEARCH TRACE command searches for trace data ac
113. ck the debug area CALL command error Explanation Operator response 41215 The CALL command is already executing it cannot be nested Suspend the CALL command with a CLEAR CALL command Alternatively execute the GO or STEP command until the call operation terminates then execute the CALL command Invalid function at the top Explanation Operator response 41225 There is higher level function than this function or this function is called from a program other than a C program Check the current function Invalid function at the bottom Explanation Operator response 41235 There is no lower level function than this function or this function is called from a program other than a C program Check the current function Invalid coverage map over full Explanation Operator response 41245 The coverage area cannot be set any more Simplify coverage area specification Explanation Operator response Coverage area setting error The coverage area is not set Set the coverage area 28 APPENDIX B Error Message for Debuggers E4125S Invalid coverage area Explanation An area outside the coverage area was specified Operator response Check and specify the coverage area E4126S Invalid coverage file Explanation A file other than the coverage file was specified Operator response Check the file data 41275 Invalid d
114. cording to the specified condition When the trace data matching the condition is found the command displays it in the same format as the SHOW TRACE command When ONEFRAME is specified the debugger terminates this command when one frame is found B Example gt SEARCH TRACE F2E0 frame no address data mnemonic level xt prob 03476 2 0 81 CLRC 03184 2 0 81 CLRC 02696 2 0 81 CLRC 02391 F2EO 81 CLRC 01903 2 0 81 CLRC 01598 2 0 81 CLRC 01097 2 0 81 CLRC 00609 2 0 81 CLRC 136 CHAPTER 4 Program Execution Analysis Commands 4 29 SET RAMMONITOR The SET RAMMONITOR command sets the watching address and data size with the RAM monitor function E Debugger Emulator MB2141 MB2146 09 09A 09B O MB2146 08 MB2146 07 Monitor This command is available if only the BGM adapter MB2146 09B or the MCU board MB2146 301B E or MB2146 303B E is used B Format SET RAMMONITOR address Parameters address address formula Specify the address to be watched Command qualifiers Data size BYTE default when omitted Specifies data size by 8 bits WORD Specifies data size by 16 bits Description The SET RAMMONITOR command sets the watching address and data size with the RAM monitor function The maximum addresses count to be watched is as follows MB2146 09B 32 points MB2146 07 16 points For de
115. cription The SHOW TRACE command preserves the trace data stored in the trace buffer in the file Data is preserved by the binary form Example gt SHOW TRACE FILE trcdata 131 CHAPTER 4 Program Execution Analysis Commands 4 25 CLEAR TRACE The CLEAR TRACE command clears the trace buffer E Debugger Ema o Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 pe B Format CLEAR TRACE Description The CLEAR TRACE command clears the trace buffer Example gt CLEAR TRACE 132 CHAPTER 4 Program Execution Analysis Commands 4 26 ENABLE TRACE The ENABLE TRACE command enables the trace function E Debugger Ema Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 pee B Format ENABLE TRACE Description The ENABLE TRACE command enables the trace function Example gt ENABLE TRACE 133 CHAPTER 4 Program Execution Analysis Commands 4 27 DISABLE TRACE The DISABLE TRACE command disables the trace function E Debugger mae o Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 mae B Format DISABLE TRACE Description The DISABLE TRACE command disables the trace function B Example gt DISABLE TRACE 134 CHAPTER 4 Program Execution Analysis Commands 4 28 SEARCH TRACE The SEARCH TRACE command sear
116. ction to be executed where execution was suspended Access address indicates the address where the access that caused the break was made Break at address by guarded access access type at access address Explanation This message is displayed when a break is caused by any of the following accesses Code fetch access to a code fetch inhibited area Read access to a read inhibited area Write access to a write inhibited area There may be an error in the memory attribute or the program Address indicates the address of the next instruction to be executed where execution was suspended Access type indicates the type of the access that caused the break Access address indicates the address where the access that caused the break was made Break at address by dispatch task from task ID dispatch source task ID gt to task ID lt dispatch destination task ID gt Explanation This message is displayed when a break is caused by task dispatch Address indicates the address of the next instruction to be executed where execution was suspended 300 APPENDIX C Execution Suspension Messages List Break at address by system call lt system call name gt on task ID task ID gt Explanation This message is displayed when a break is caused by a system call Address indicates the address of the next instruction to be executed where execution was suspended System call name indicates the name of the system call that cau
117. ds eese 177 8 1 Bc uU C Lica 178 2 ASSI sao A xe ot 180 EE Se dz S MN TU 181 8 4 SHOW SGOPE uir e rece Te Pare ete dave a deae daa fe 182 ES BG J ERR IPRC NOS CN 183 184 CHAPTER9 Command Procedure Commands 185 9 1 utate rae orto AK X re RTP ee a 186 922 E een eer uapa nm as c bur sua tut ent 188 CHAPTER 10 Replacement Commands 0 0 22 1122 11 189 104 fri CE I MEER 190 10 27 SHOW AUIAS ani kamak um E Yau qapa araq ata 191 lt u a aY T qupa pumaqa yasa 192 SET WARIABDEE S Ne nama a 193 1025 SHOW VARIABEE eh 195 40 67 CANCE EVAR tmd esit ete E o eda nian 197 CHAPTER 11 Utility Commands uu e nnn rien nui og acetic andan Cu C chau Yun neun razas 199
118. e address formula Specify the coverage measurement area If this parameter is omitted this command displays the area in order from the first file name Specifies a name of source file to display a coverage measurement result When the file name is omitted the previously specified file name is used line number Specifies a line number of source to display a coverage measurement result must proceed a line number 113 CHAPTER 4 Program Execution Analysis Commands on When line number is delimited be the source within the specified range is displayed When the end line number is not specified the result is displayed by 19 lines address address formula Specifies a memory location of a code attribute Specifies this parameter to display a coverage measurement result corresponding to the memory location When a function is specified the coverage measurement result within the address range of the function is displayed When other than a function is specified the result is displayed by 19 lines address range address formula Specifies a memory area of a code attribute Specifies this parameter to display a coverage measurement result corresponding to the memory location source file name Specifies a name of source file to display a coverage rate If this parameter is omitted the coverage rate of entire load module is displayed coverage range Specifies a range of coverage rate to be displayed If this parameter is omi
119. e character string enclosed in double quotation marks is specified in a field where only parameters other than character strings can be written Example gt SET BREAK TOVAL main 236 CHAPTER 14 Built in Variables and Functions 14 16 TOSTR TOSTR encloses the specified character string in double quotation marks B Debugger mae 5 Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 me ej B Format TOSTR character string Parameter character string All parameter types can be specified Description TOSTR encloses the specified character string in double quotation marks This function is used when the specified character string is specified in a field where only character strings can be written as parameters Example gt PRINTF TOSTR main main 237 CHAPTER 14 Built in Variables and Functions 14 17 EVAL EVAL evaluates specified expression E Debugger Eme Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 we ej Format EVAL expression Parameter expression Specify an expression to be evaluated Description EVAL evaluates specified expression Example gt PRINTF Sd n 10420 30 60 238 APPENDIX These appendixes describe the Manager Related Messages Error Message for Debuggers and Execution Suspension Messa
120. e debugger type For details refer to the following sections of SOFTUNE WORKBENCH USER S MANUAL Simulator debugger Emulator debugger MB2141 Emulator debugger MB2146 09 09A 09B Emulator debugger MB2146 08 Emulator debugger MB2146 07 Monitor debugger Example Emulator debugger MB2141 F2MC 8L 8FX Family SOFTUNE Debugger type MCU type VCpu dll name VCpu dll version Monitor version MCU frequency Communication device Host name 2 1 11 Checking State of Debugger 2 2 12 Checking State of Debugger 2 3 8 Checking State of Debugger 2 4 8 Checking State of Debugger 2 5 9 Checking State of Debugger 2 5 5 Checking State of Debugger Workbench V30L33 Emulator Debugger B89W625 C Softune bin wv896el dll 01104 V03L05 10 000 MHz LAN 127 0 0 1 CHAPTER 1 Environment Setup Commands 1 13 SET MAP type 1 The SET MAP command sets a memory space area type and access attribute B Debugger mae Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 pee B Format SET MAP address address range Parameters address address formula Specify the memory address where access attribute to be set address range address formula Specify the memory area where access attribute to be set Command qualifiers Specifying access attribute READ Enables data read access The code acce
121. e default at the break point setting SOFT A software break is set as the default at the break point setting Description The SET BREAK command specifies default attributes at the break point setting Example gt SET BREAK DEFAULT SOFT gt SHOW BREAK DEFAULT default soft 66 CHAPTER 3 Break Event Control Command 3 5 SHOW BREAK The SHOW BREAK command displays the break points set by the SET BREAK command E Debugger Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 we ej B Format SHOW BREAK breakpoint number Parameter breakpoint number default decimal number Specify the break point number Command qualifiers ALL default when omitted Displays all break points DATAWATCH MB2146 09 09A 09B Only the data watch break information is displayed SEQUENCE MB2146 09 09 A 09B Only the sequence break information is displayed DEFAULT MB2146 08 MB2146 07 Displays default attributes at the break point setting Description The SHOW BREAK command displays the break points set by the SET BREAK command 67 CHAPTER 3 Break Event Control Command Example 68 Simulator debugger gt SHOW BREAK no en dis address 1 enable OF OO Control BREAK Command show timer 4 disable 20DE Control NOBREAK Command show status Emulator debugger MB2146 09 0 gt SHOW BREAK DATAWAT no e
122. e measurement range to be deleted Command qualifier ALL Deletes all coverage measurement areas Description The CANCEL COVERAGE cancels the coverage measurement area and disables the coverage measurement function Example CANCEL COVERAGE ALL 116 CHAPTER 4 Program Execution Analysis Commands 4 13 CLEAR COVERAGE The CLEAR COVERAGE clears a coverage buffer E Debugger Eme x Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 B Format CLEAR COVERAGE Description The CLEAR COVERAGE clears a coverage buffer Example gt CLEAR COVERAGE 117 CHAPTER 4 Program Execution Analysis Commands 4 14 ENABLE COVERAGE The ENABLE COVERAGE enables the coverage measurement function E Debugger s Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 Dm X B Format ENABLE COVERAGE Description The ENABLE COVERAGE enables the coverage measurement function Example gt ENABLE COVERAGE 118 CHAPTER 4 Program Execution Analysis Commands 4 15 DISABLE COVERAGE The DISABLE COVERAGE disables the coverage measurement function B Debugger Emulator MB2141 MB2146 08 O MB2146 09 09A 09B x x x MB2146 07 B Format DISABLE COVERAGE Description The DISABLE COVERAGE disables the coverage measurement function
123. e trace buffer Example 128 Sampled trace data is assigned numbers Trace data in the execution stop location trigger point is assigned number 0 The sampled trace data is assigned negative numbers until the execution stop location is reached These numbers are called frame numbers When APPEND is specified trace data is added and saved SHOW TRACE SOURCE 300 frame no source 00278 Sample c 39 00275 Sample c 43 00237 Sample c 44 00234 Sample c 30 00217 Sample c 31 00182 Sample c 32 00133 Sample c 33 00120 Sample c 34 00112 Sample c 35 00079 Sample c 43 00041 Sample c 44 00038 Sample c 30 SHOW TRACE FILE APPEND while tblp while break tblp pr L max gt 1 p tblp max 1 tblp max 1 0 max 1 while j 2 i lt max i 1 p max gt 1 C Nsample log CHAPTER 4 Program Execution Analysis Commands 4 23 SHOW TRACE type 2 The SHOW TRACE command displays the trace conditions E Debugger Ema Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 Dm xj B Format SHOW TRACE STATUS Command qualifier classified by function STATUS Displays trace measurement conditions enabled disabled state of trace function and storage status of trace buffer Description The SHOW TRACE command displays the trace conditions Displ
124. ebug data not loaded Explanation The debug data file has not been loaded Operator response Load the debug data file then specify a coverage 41285 Mapping overlap Explanation The specified map area overlaps another area Operator response Check the map specification then re enter the command 41295 Invalid address mis alignment Explanation In the FR family MCU 16 bit data must be aligned on a 16 bit boundary and 32 bit data on a 32 bit boundary respectively Operator response Review the specified address 41305 Cannot open current source window Explanation The source window that displays the current location could not be found in the set source search directory Operator response Set the directory containing the source file 41315 Cannot be used in current mode of debugger Explanation The functions that can be used depend on the type of the debugger Operator response Check the type of debugger 282 APPENDIX B Error Message for Debuggers 41325 Command error debug mode violation Explanation The function that can be used varies with the debug function Operator response Check the setting of debug function by selecting Environment Debug 41335 environment Select Debug function menu Task debugging cannot be used Explanation The task debug function cannot be used if an available object with that function is not loaded Operator response
125. ecified in parameter the command displays starting from the source line corresponding to the current program counter If the value in the program counter is rewritten due to program execution when all parameters are omitted the command starts source line display from the source line corresponding to the current program counter In other cases the command displays 19 source lines starting from the line next to the previously displayed last line 178 CHAPTER 8 Source File Symbol Commands B Example gt LIST PROGRAM C 2 3 2 x x 1 3 printf Sd n x gt LIST subdisp 20 subdisp ST 323 int d 33 34 for i p i gt 1 i 35 printf data d d i data i 36 gt LIST 53 switch s 54 case 0 2 return z 55 case 1 z a return z 56 case 2 2 return z 179 CHAPTER 8 Source File Symbol Commands 8 2 SET PATH The SET PATH command specifies the directories used to search for the source file E Debugger Ema 5 Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 me e Format SET PATH source search directory name Parameter source search directory name Specify a directory for which source file is searched Command qualifier APPEND Appends specified search directory to current setting Description The SET PATH command specifies the directories used t
126. ed although it is not open Operator response Check whether the log file is open 41155 Invalid alias name registered already Explanation The same command alias is already registered Operator response Review the command alias then re enter the command 41165 Invalid alias name not found Explanation The specified command alias does not exist Operator response Check the command alias then re enter the command 41175 Data type error Explanation The data type is unmatched Operator response Check the data type and then re enter the data type 41185 Invalid member name not specified Explanation The structure or union name cannot be specified Operator response Specify the member name 280 41195 APPENDIX B Error Message for Debuggers Break point and data break point setting error Explanation Operator response 41205 Break points and data break points cannot be set When the data monitoring break cannot set in the MB2198 or MB2147 01 emulator display the message Check the contents of break points and maximum count of break points In case of MB2198 or MB2147 01 the break point the trace trigger and the data watch break may be used same hardware point Check the status in event lists In case of MB2145 506 MB2145 507 emulator pod or MB2147 05 emulator the specified break point be set at address out of debug area and break points exceeds maximum count Che
127. ed as follows Display contents Debugger Emulator MB2141 Display result MCU execution status Simulator MB2146 09 Monitor MB2146 08 MB2146 07 Break Break user state O O O Execute Execute debug state O O O Stop Stop mode O x x Sleep Sleep mode O x x Displayed Not displayed For the break factor refer to APPENDIX C Execution Suspension Messages List 57 CHAPTER 2 Program Execution Commands Example MCU breaking gt SHOW STATUS MCU status Break at startup asm 64 H C12F by breakpoint MB2146 07 gt SHOW STATUS MCU status Break at startup asm 62 H BOOB by hardware breakpoint MCU executing gt SHOW STATUS MCU status Execute 58 CHAPTER 3 Break Event Control Command This chapter describes the Break Event Control commands 3 1 3 2 3 3 3 4 3 5 3 6 3 7 3 8 3 9 3 10 3 11 3 12 3 13 3 14 3 15 3 16 3 17 3 18 3 19 3 20 3 21 SET BREAK type 1 SET BREAK type 2 SET BREAK type 3 SET BREAK type 4 SHOW BREAK CANCEL BREAK ENABLE BREAK DISABLE BREAK SET DATABREAK type 1 SET DATABREAK type 2 SHOW DATABREAK CANCEL DATABREAK ENABLE DATABREAK DISABLE DATABREAK SET EVENT SHOW EVENT CANCEL EVENT ENABLE EVENT DISABLE EVENT SET SEQUENCE SHOW SEQUENCE 59 CHAPTER 3 Break Event Control Command 60 3 22 CANCEL SEQUENCE 3 28 ENABLE SEQUENCE 3 24 DISABLE SEQUENCE 3 25 SET DELAY 3 26 SHOW DELAY CHAPTER 3 Break
128. efined area NOGUARD default when internal ROM not provided Enables full access to undefined area Description The SET MAP command sets an access attributes to undefined area Either the command qualifier for allowing any access NOGUARD or for disallowing access GUARD can be specified for an undefined area Example gt SET MAP GUARD CHAPTER 1 Environment Setup Commands 1 15 SHOW MAP The SHOW MAP command displays the set memory space access attributes E Debugger mee s Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 me x B Format SHOW MAP Description The SHOW MAP command displays the set memory space access attributes Example gt SHOW MAP address attribute type 0000 027F code read write user C000 FFFF code read emulation undefined area guard setup possibility user 19 emulation 19 CHAPTER 1 Environment Setup Commands 1 16 CANCEL The CANCEL command assigns the undefined attribute to the specified address area E Debugger Ema Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 De xj B Format CANCEL MAP address address range Parameters address address formula Specify the address where undefined attribute to be assigned address range address formula Specify the address range where undefined attribute to be assigned Command qualifier
129. en too many device drivers are incorporated under the MS DOS PC environment Operator response Expand the free area allocated in host machine then restart the SOFTUNE Workbench EA103S OS command error Explanation An OS command cannot be executed The command shell format is incorrect Operator response Start the command shell of correct format E4104S Invalid command shell not found Explanation The command shell could not be found Operator response Review the environment variable etc so that the command shell can be started E4105S Invalid alias string Explanation The command alias includes an unregisterable character Operator response Review command alias registration then re enter the command E4106S Invalid macro command name registered already Explanation The same macro command is already registered Operator response Review the macro command name then re enter the command 278 APPENDIX B Error Message for Debuggers E4107S Invalid memory map definition Explanation Memory mapping is too complex to define the area When setting the memory area attributes the areas with different attributes are excessive causing the internal table to overflow Operator response Simplify the memory mapping E4108S Memory allocation error Explanation There is insufficient memory space for command execution by the host machine memory This error occurs when too many softwares are
130. er Description The ASSEMBLE command line assembles the entered mnemonic operand and stores the instruction code in the specified memory location When starting address is omitted input wait of mnemonic is assumed from the memory location next to the memory location previously stored last instruction code Example gt ASSEMBLE F370 MOVW gt ASSEMBLE F373 XCHW gt DISASSEMBLE F370 F370 40000 F373 43 F374 10 F375 F908 F377 10 F378 54FF 168 a 8 MOVW XCHW SWAP BC SWAP XOR 0000 A T A 0000 A T F37F A FF CHAPTER 6 Line Assemble and Disassemble Commands 6 2 DISASSEMBLE The DISASSEMBLE command disassembles data in the specified memory location E Debugger mae Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 Dm B Format DISASSEMBLE starting address address range Parameters starting address address formula Specify a starting address of memory to be disassembled address range address formula Specify a range of memory to be disassembled Description The DISASSEMBLE command disassembles data in the specified memory location and displays it in the output window When only starting address is specified the command disassembles and displays data by 16 lines When only a period is specified in parameter the command starts disassembled data display
131. es port access when specified address accessed 32 bits 24 CHAPTER 1 Environment Setup Commands ASCII Uses character codes of input data as input values When ASCII is specified the access size is always BYTE Description B Example The SET INPORT command specifies data input to a port each time the program reads data from the specified port or each time the count of program instruction execution cycles exceeds the specified cycle count When cycle count is not specified in the parameters data is read from the specified data input source each time the program reads data from the input port When cycle count is specified in the parameters port contents are updated per fixed cycle irrespective of port access If data input source is a file data input processing returns to the beginning of the file when the last data is entered If data input source is a input terminal STERMINAL the dialog box for data input request is displayed when the set port is read accessed When this dialog box appears enter the input data Up to 4096 port addresses can be simulated gt SET INPORT 0 1F INBUFO DAT gt SHOW INPORT address bit pattern size cycle input 0000 001F byte INBUFO DAT 004F 000F ascii 9 Sterminal 25 CHAPTER 1 Environment Setup Commands 1 21 SHOW INPORT The SHOW INPORT command displays the data set by the SET INPORT command E Debugger mae 8 Emulator MB2141
132. esponding to a specified memory area with data in emulation memory E Debugger Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 De x Format VERIFY collating address range Parameter collating address range Specify the collating memory area Description The VERIFY command collates data in user memory corresponding to a specified memory area with data in emulation memory If there is no difference as a result of collating the system waits for completion of command execution The collating area must be mapped as emulation memory B Example gt VERIFY 6000 60FF 166 CHAPTER 6 Line Assemble and Disassemble Commands This chapter describes the Line Assemble and Disassemble commands 6 1 ASSEMBLE 6 2 DISASSEMBLE CHAPTER 6 Line Assemble and Disassemble Commands 6 1 ASSEMBLE The ASSEMBLE command line assembles the entered mnemonic and operand and stores the instruction code in the specified memory location E Debugger mm 009 Emulator B Format MB2141 MB2146 09 09A MB2146 08 MB2146 07 we 09B ASSEMBLE starting address assemble character string Parameters starting address address formula Specify a starting address of memory containing line assembled codes assemble character string character string Specify a character string to be line assembled Please enclose the string in double quotation marks charact
133. executed Operator response Increase the memory space in the host machine to restart the SOFTUNE Workbench E4109S Object loading error Explanation The object load destination exceeds the maximum value of address Operator response Check the object size and object load destination or the specified address 41105 Log file open error already Explanation The log file is already open Operator response Close the current log file then open a new log file 41115 Memory access error Explanation Attempts were made to access undefined memory The address where access causing an error is made is displayed in the address part Operator response Check the memory mapping E4112S Invalid nest level of structure or union over 16 Explanation The debug data table could not be created in the host machine memory Operator response Increase the memory space in the host machine then restart the SOFTUNE Workbench 27 c APPENDIX B Error Message for Debuggers 41135 Debug data table creation error Explanation The debug data table cannot be created in memory of the host machine or in the directory specified in TMP in the install file Operator response Increase the memory space in the host machine and restart the SOFTUNE Workbench Or check the condition of the directory specified in TMP in the install file 41145 Logging control command error Explanation The log file was operat
134. f which is composed as follows Event number 1 used gt Pass counter Trace control Branch level number Event number 2 used Pass counter Trace control Branch level number Event number used Pass counter Trace control Branch level number Event number 4 used Pass counter Trace control Branch level number Event number 5 used Pass counter Trace control Branch level number Event number 6 used Pass counter Trace control Branch level number Event number 7 used Pass counter Trace control Branch level number Event number 8 used Pass counter Trace control Branch level number Timer condition Waiting time n o Trace control 9 Branch level number This command also sets the latch function of an emulation timer as a branch is made from a specified level to another level Example SET SEQUENCE ON 87 CHAPTER 3 Break Event Control Command 3 21 SHOW SEQUENCE The SHOW SEQUENCE command displays sequencer settings There are following way to display them E Debugger Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 Pi B Format Format 1 gt SHOW SEQUENCE LEV EL level number Format 2 gt SHOW SEQUENCE CURRENT Format 3 gt SHOW SEQUENCE
135. fficient Explanation During logging the free disk space of the storage destination disk is less than SOOMB Operator response Increase disk space of the disk E9205S The Boot ROM file was not found Please check the specified folder Boot ROM file name Explanation The Boot ROM file of MCU used was not found Operator response Check whether the Boot ROM file exists in the folder specified by Boot ROM category of Debug tab in the setting dialog of the project displayed by project setting of project menu 26 Co APPENDIX B Error Message for Debuggers 264 F9401S Invalid emulation pod or MCU cable unmatch or no connected Explanation The emulation pod or the MCU cable is not for this product Alternatively the MCU cable is not connected correctly Operator response Turn off the emulator then check the emulation pod and MCU cable If the cable is connected normally then restart the SOFTUNE Workbench F94028 Invalid emulator hardware monitor program unmatch Explanation The monitor program loaded into the emulator is not this product Operator response Start the loader program attached to this product to load the monitor program then restart the SOFTUNE debugger For details refer to 1 1 1 Version Information in SOFTUNE Workbench Installation Manual Release Note 94035 Emulator hardware error detailed information Explanation The emulator hardware cannot operate normall
136. from the kind of CPU in the project file Operator response Check the CPU on board or the kind of CPU in the project file F9407S Cannot recognize a communication device and finish a debugger Explanation Cannot recognize a communication device connecting with the debugger And terminate the debugger Operator response Check the connection between PC and emulator F9408S A consistency error Please turn off the power immediately and check the connection Explanation The connected emulator does not match emulator defined in the setup file Operator response Change the emulator type in the setup file on the setup wizard or connect a proper emulator F9409S Emulator hardware error Please turn off the power immediately and check the connection Explanation The emulator hardware cannot operate normally Operator response Turn off the power immediately and check whether the MCU is operating normally If this error occurs frequently the emulator hardware MCU and or target system may be faulty F9410S A configuration board is not connected Explanation The configuration board is not correctly connected Operator response Turn off the power supply of the emulator check the configuration board connects it normally and then restart 26 APPENDIX B Error Message for Debuggers F9411S Cannot continue debugging due to a CR trimming value error Explanation The preset CR trimming value is abnorm
137. g Operator response Shorten the directory name E4749W Directory not found Create this directory Explanation The specified directory cannot be found Operator response If the directory is correct click the OK button E4750W Already registered title Do you change contents Explanation The specified title has been already existent Operator response To change the setting click the OK button E4752W Start tool does not exist Explanation The tool to be started cannot be found Operator response Check the existent tool name and directory name E4760W The registered error syntax format cannot be converted Explanation The error message in the output window cannot be analyzed Operator response Check the setting in the syntax list in Setup Set Error Jump E4761W Syntax error Undefined Macro Explanation An undefined macro is specified Operator response Check the syntax 25 N APPENDIX A Manager Related Messages E4762W Syntax error Undefined separate of f Explanation The delimiter indicating the end of f and is not input Operator response The description of the macros f and needs the delimiter to identify the end of f and The next character in the macro description is regarded as the delimiter E4763W Syntax error Duplicate Macro syntax Explanation The macros f 1 and h are duplicated Operator response Check the syn
138. g other command qualifiers results in an error module name Specifies a module name of the coverage measurement result to be saved This is valid only when the command qualifier is COVERAGE If this parameter is omitted the coverage rate of entire module is saved 175 CHAPTER 7 Load and Save Commands Command qualifiers Kind of files BINARY default when omitted Saves memory data to memory image file in binary format The default extension is bin Address range specification cannot be omitted COVERAGE Saves coverage data in all areas specified by SET COVERAGE command The default extension is cov Address range specification is invalid This function is available only in the emulator debugger MB2141 ALIAS Saves command alias definition and macro command definition to alias file The default extension is Ist Address range specification is invalid Saving format ICSV The file is saved in CSV format This is valid only when the command qualifier is COVERAGE Description When all command qualifiers are omitted or when BINARY is specified the SAVE command saves data in the specified memory to the memory image file binary format of data only In this case address range specification cannot be omitted If COVERAGE is specified this command will save coverage measurement data in all areas specified by the SET COVERAGE command If CSV is specified at the same time the coverage measurement result of
139. ger requires a setup file If a setup file is not specified create it with the same name as that of the project name Use Project Setup Project Debug to set the items required for the automatically created setup file 24 N APPENDIX A Manager Related Messages E4233W Available setup file is not registered Registered automatically Explanation Starting the debugger requires a setup file If a setup file is not specified create it with the same name as that of the project name Operator response Use Project Setup Project Debug to set the items required for the automatically created setup file E4234W Please specify the title Explanation The title is not specified Operator response Specify the title E4240W Already a registered member Explanation The specified file is already saved in the project Operator response Check the file name E4241W This file name has already been registered Explanation The specified file has been already registered in the project Operator response Check the file name E4242W File not found Do you registered Explanation An attempt was made to register a non existent file in the project Operator response If the file name is correct register the file An inquiry is made as to whether to create a new file when starting the editor E4243W Too many select files Explanation The count of selected files exceeds the maximum value Operat
140. ges List APPENDIX A Manager Related Messages APPENDIX B Error Message for Debuggers APPENDIX C Execution Suspension Messages List 239 APPENDIX A Manager Related Messages APPENDIX A Manager Related Messages This appendix describes Manager Related Manager Related Messages E4002W Insufficient memory Explanation System memory is insufficient Operator response Terminate another program and execute this program E4011W Registration not possible Explanation Data cannot be written to the system registry Operator response Terminate another program and execute this program E4012W Failed function call Exe file is old Explanation The version of the program file does not correspond to that of the DLL file Operator response Install the latest version of SOFTUNE Workbench E4013W Failed function call DLL file is old Explanation The version of the program file does not correspond to that of the DLL file Operator response Install the latest version of SOFTUNE Workbench E4020W CPU information file version is different Contains uninterpretable information Explanation The CPU information file is old and does not contain the required information Operator response Get the latest CPU information file E4021W Chip type in CPU information file is not applicable Explanation Information file for a different CPU is specified Operator response Specify the correct CPU informati
141. gister name is omitted all registers and content of the flag are displayed For register and flag names refer to the Appendix A List of Register Names of SOFTUNE Workbench Operation Manual Command qualifier ALL default when omitted Displays contents of all registers and flags Description The SHOW REGISTER command displays the contents of the specified register or flag in hexadecimal notation on When not set each flag register displays When set it displays the flag name 158 B Example gt SHOW REGISTER IP F357 gt SHOW REGISTER PC F357 A SP 00D6 EP RP 00 RO R3 IE R4 R7 FF CHAPTER 5 Memory Register Operation Commands OOFA T 0001 IX OOFA 0019 IL 3 FLAGS 7 00 R1 00 R2 FF FF R5 R6 FF 159 CHAPTER 5 Memory Register Operation Commands 5 8 COMPARE The COMPARE command compares memory data E Debugger Ema Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 me B Format COMPARE compare origin address range comparison destination address Parameters compare origin address range address formula Specify the memory area of compare origin comparison destination address address formula Specify the comparison destination address Description The COMPARE command compares memory data When no difference is found as a result of the comparison
142. he memory last displayed as a result of previous command execution location next to the memory location Example gt 100 118 address 40 1 2 43 4 5 6 47 48 9 A B C D E F ascii 0100 00 00 41 42 43 00 00 00 00 00 00 00 00 00 00 00 ABC 0110 53 49 4D 55 4C 41 54 4F 52 SIMULATOR gt gt DUMP WORD 100 118 address 0 2 4 6 8 0100 0000 4241 0043 0000 0000 0000 0000 0000 ABC 0110 4953 554D 414C 4F54 0052 SIMULATOR gt gt DUMP BIT 5 address Cy 82 ILS HEX 0005 0 1 1 0 0 1 6A 0006 1 1 1 T 0 1 0 0 FA 164 CHAPTER 5 Memory Register Operation Commands 5 12 COPY The COPY command copies data in user memory corresponding to a specified memory area to emulation memory corresponding to a specified memory area E Debugger Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 Dm B Format COPY transfer source address range Parameter transfer source address range Specify the transfer source memory area Description The COPY command copies data in user memory corresponding to a specified memory area to emulation memory corresponding to a specified memory area The specified memory area must be mapped as emulation memory B Example COPY 6000 60FF 165 CHAPTER 5 Memory Register Operation Commands 5 13 VERIFY The VERIFY command collates data in user memory corr
143. hich the measured time is displayed graphically The unit is 1 us if the minimum measured time of a timer is 1 us and 100 ns if it is 100 ns If this parameter is omitted an appropriate value will be given Description The SHOW PERFORMANCE command displays the state of performance settings When STATUS specified The SHOW PERFORMANCE command displays the setting state of the operation of a performance measurement buffer when it is full When COUNT specified The SHOW PERFORMANCE command displays the result of counting the time an event occurs When TIME specified The SHOW PERFORMANCE command displays the result of time measurement The upper limit lower limit and interval at which the measured time is displayed graphically can be specified Example gt SHOW PERFORMANCE COUNT 110 CHAPTER 4 Program Execution Analysis Commands 4 9 CLEAR PERFORMANCE The CLEAR PERFORMANCE command clears the performance measurement values E Debugger s x Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 me xj B Format CLEAR PERFORMANCE Description The CLEAR PERFORMANCE command clears the performance measurement values Example gt CLEAR PERFORMANCE 111 CHAPTER 4 Program Execution Analysis Commands 4 10 SET COVERAGE The SET COVERAGE command specifies the coverage measurement area Up to 32 areas can be set E Debugger Emulator MB2141 M
144. igned developed and manufactured as contemplated 1 for use accompanying fatal risks or dangers that unless extremely high safety is secured could have a serious effect to the public and could lead directly to death personal injury severe physical damage or other loss i e nuclear reaction control in nuclear facility aircraft flight control air traffic control mass transport control medical life support system missile launch control in weapon system or 2 for use requiring extremely high reliability i e submersible repeater and artificial satellite Please note that FUJITSU SEMICONDUCTOR will not be liable against you and or any third party for any claims or damages arising in connection with above mentioned uses of the products Any semiconductor devices have an inherent chance of failure You must protect against injury damage or loss from such failures by incorporating safety design measures into your facility and equipment such as redundancy fire protection and prevention of over current levels and other abnormal operating conditions Exportation release of any products described in this document may require necessary procedures in accordance with the regulations of the Foreign Exchange and Foreign Trade Control Law of Japan and or US export control laws The company names and brand names herein are the trademarks or registered trademarks of their respective owners Copyright 2004 2011 FUJITSU SEMICONDUCTOR LIMITED
145. indow is specified Command qualifier ALL Deletes all watch points from the specified window Description Deletes variables from the specified watch window If two or more variables of the same name exist only the variable that first appears will be deleted Example gt CANCEL WATCH flag 1 gt CANCEL WATCH ALL 2 42 CHAPTER 2 Program Execution Commands This chapter describes the Program Execution commands 2 1 GO 2 2 SET GO 2 3 SHOW GO 2 4 ABORT 2 5 STEP 2 6 SET STEP 2 7 SHOW STEP 2 8 CALL 2 9 CLEAR CALL 2 10 SHOW STATUS 43 CHAPTER 2 Program Execution Commands 2 1 GO The GO command executes the program from the specified starting address E Debugger mas Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 ue o Format GO starting address break address1 break address2 Parameters starting address address formula Specify the address at which program execution started break address address formula Specify the address at which program execution stopped This parameter is invalid if RETURN or NOW AIT is specified For only the following debugger type break address2 can be specified Simulator debugger Emulator debugger MB2141 G Command qualifiers Return setting RETURN Executes program from function currently being executed to parent function return location Only pr
146. ion E Debugger Ema e Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 we B Format UP Description The UP command moves the scope to the parent function UP DOWN information is cleared when the MCU is executed RESET is performed or the program counter is updated Example gt UP Current Scope demo sort 183 CHAPTER 8 Source File Symbol Commands 8 6 DOWN The DOWN command moves the scope to the child function E Debugger mas 8 Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 j B Format DOWN Description The DOWN command moves the scope to the child function UP DOWN information is cleared when the MCU is executed RESET is performed or the program counter is updated Example gt DOWN Current Scope demo check 184 CHAPTER 9 Command Procedure Commands This chapter describes the Command Procedure commands 9 1 BATCH 9 2 QUIT CHAPTER 9 Command Procedure Commands 9 1 BATCH The BATCH command executes the commands in the specified command procedure file E Debugger Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 we ej BATCH file name actual parameter B Format Parameters file name Specify a name of file where command procedure to be executed is written The default extension is prc actual para
147. ion The ENABLE MULTITRACE command enables the trace function It is valid only when the event mode is set to MULTITRACE Example gt ENABLE MULTITRACE 103 CHAPTER 4 Program Execution Analysis Commands 4 5 DISABLE MULTITRACE The DISABLE MULTITRACE command disables the trace function E Debugger Ema x Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 me B Format DISABLE MULTITRACE Description The DISABLE MULTITRACE command disables the trace function It is valid only when the event mode is set to MULTITRACE Example gt DISABLE MULTITRACE 104 CHAPTER 4 Program Execution Analysis Commands 4 6 SEARCH MULTITRACE The SEARCH MULTITRACE command searches the trace data under specified conditions E Debugger Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 xj B Format SEARCH MULTITRACE address amp mask d data amp mask f 2 search starting frame number Parameters address address formula Specify the address to be searched data data formula Specify the data to be searched mask data formula Specify the mask bit of address and data search starting frame number default decimal number Specify the search starting frame number global frame number If this parameter is omitted a search will be made from the beginning of a trace buffer Command qualifier
148. ion cycle count step count and time of the executed program in decimal notation E Debugger o e Emulator MB2141 MB2146 09 09A 09B OF MB2146 08 x MB2146 07 mu This command is only available if the BGM adapter MB2146 09A or later and MCU board version 02B or later used B Format SHOW TIMER Description The SHOW TIMER command displays the instruction execution cycle count step count and time of the executed program in decimal notation The numeric values displayed are those after the RESET command has been executed and those when and after program execution is started by the preceding GO STEP or CALL command The contents of the display are different in each debugger For details refer to the following sections of SOFTUNE WORKBENCH USER S MANUAL Simulator debugger 2 1 9 Measuring Execution Cycle Count Emulator debugger MB2141 2 2 10 Measuring Execution Time Emulator debugger MB2146 09 09A 09B 2 3 8 Measuring Execution Cycle Count Example gt SHOW TIMER Simulator Debugger cycle From initialize 6410 Cycle From Last Executed 415 Cycle step From initialize 1251 Step From Last Executed 121 Step Emulator Debugger MB2141 timer From initialize 0h00m42s108ms264gus Time From Last Executed 0h00m03s623ms874us Time 123 CHAPTER 4 Program Execution Analysis Commands Note This command is available unde
149. is message is displayed when a break is caused by a hardware break point including break point specified by GO command Address indicates the address of the next instruction to be executed where execution was suspended Break at address by code event break No code event number Explanation This message is displayed when a break is caused by a code event Address indicates the address of the next instruction to be executed where execution was suspended Code event number indicates the number of the code event that caused the break Break at address by code event break sequential Explanation This message is displayed when a sequential break is caused by code event 1 or 2 Address indicates the address of the next instruction to be executed where execution was suspended APPENDIX C Execution Suspension Messages List Break at address by data event break No data event number Explanation This message is displayed when a break is caused by a data event Address indicates the address of the next instruction to be executed where execution was suspended Data event number indicates the number of the data event that caused the break Break at address by data event break sequential Explanation This message is displayed when a sequential break is caused by data event 1 or 2 Address indicates the address of the next instruction to be executed where execution was suspended Break at address by trace b
150. isplay other information When the program is breaking displays the last executed level number and its event information 4 LATCH format 3 Displays latched timer values as follows source level number destination level number emulation number display in order in min s ms us and ns S min ms us ns Latch 1 X X XX XX XXX XXX XXX Latch2 X gt X 30 900 KKK Displays the absolute xx Value or Ine giierence Gl Latch 1 and 2 89 CHAPTER 3 Break Event Control Command Example 90 gt SHOW SEQUENCE Sequencer is enabl Latchl 2 gt 3 0 01 37 gt SHOW SEQUENCE 1 level no 1 event pass count 1 1 4 1 gt SHOW SEQUENCE LATCH Latch 1 2 gt 3 Latch 2 4 7 Latchl Latch2 vell level2 level3 level4 vel5 vel6 level7 lev 1 1 gt 2 2 21 gt 3 3 3 gt end 4 4 gt 4 5 SSL 6 6 gt 7 7 gt 8 8 gt 4 T 078 582 0 Latch2 4 gt 7 0 00 00 862 405 0 trace cntl enable enable min S ms 0s Qi 244 0 00 00 0 Qd 3695 jmp level 2 4 us ns 078 582 0 862 405 0 216 177 0 18 CHAPTER 3 Break Event Control Command 3 22 CANCEL SEQUENCE The CANCEL SEQUENCE command cancels a sequencer E Debugger Ema x Emulator MB2141 MB2
151. its will be valid p pass count default decimal number Specify the number of times events generated 1 to 255 When pass count is omitted the number of times of events generated is set to 1 80 CHAPTER 3 Break Event Control Command Command qualifiers Access attributes CODE Takes code access to specified address as event generating condition READ Takes read access to specified address as event generating condition WRITE Takes write access to specified address as event generating condition MODIFY Takes changing of data at specified address as event generating condition MODIFY cannot be specified together with other qualifiers for specifying access attributes If MODIFY is given the address mask will be disabled CODE and WRITE cannot be specified When CODE and WRITE is omitted CODE is assumed to be specified Description Example The SET EVENT command sets the event that triggers a sequencer multitrace and performance If data and external probe data are omitted they will be all ignored If an address is assumed to be an event condition it will be affected by a prefetch by the MCU Setting should be performed considering the prefetch by the MCU The NATIVE mode has the following restrictions Only CODE can be specified If other access attributes are specified an error is assumed No data specifying d is allowed in parameters The event is set in each mode set by the SET MOD
152. l Command Description The SET DATABREAK command breaks the program when data at the specified address is accessed Use a command qualifier to set a break access type Breaks program both when data read accessed and when data write accessed if the command qualifier is omitted When such a size is specified a break occurs under the following condition For the simulator debugger a break occurs when a specified size access is made to the specified address Forthe emulator debugger an access is made from the specified address to a specified size area The pass count value is set again each time the program is executed The following shows the maximum number of break points Emulator Debugger MB2141 65535 Simulator Debugger Normal 65535 Simulator Debugger Fast 67 Example Simulator debugger gt SET DATABREAK amp checkflg 3 SHOW TRACE SHOW TIMER Emulator debugger MB2141 gt SET DATABREAK amp checkflg Notes If an automatic variable in the function is specified the current address at which the variable is stored is set as the data access address To break the program when a C variable is accessed specify amp before the variable as the variable address The following execution type command cannot be specified for the command list GO STEP CALL 75 CHAPTER 3 Break Event Control Command 3 11 SHOW DATABREAK The SHOW DATABREAK command displays the data a
153. lanation Simulation memory cannot be allocated to an internal memory area in the host machine Operator response Expand the internal memory area in the host machine 43075 Explanation Invalid inport data file 1 The file name assigned to the inport is incorrect or the file does not exist Operator response Check the general format of the file E4401S Explanation Verify error 1 A verify error occurred when data was being written to memory by a command Operator response Check whether that data was written to the I O area where values change and that memory is mounted Also check whether or not a memory error occurred 28 N APPENDIX B Error Message for Debuggers E4402S Parity error at emulation memory Explanation A parity error occurred at accessing to the emulation memory Operator response Reset the emulator body then restart it If the error occurs frequently it may be an emulation memory malfunction 44035 Parity error at debug memory Explanation A parity error occurred at accessing to the memory for emulator operation Operator response Reset the emulator body then restart it If the error occurs frequently it may be a malfunction of the memory for emulator operation E4404S Command error MCU is busy Explanation An unexecutable command was tried to execute during MCU execution Operator response Check the command 44085 Invalid event number
154. lue has been adjusted the debug can be continued however Fujitsu cannot guarantee the proper operation of the same device as a mass production device W 1406S Command error Now MCU stopping Explanation The command that cannot be executed during MCU stopping has been issued Operator response Check the command 270 APPENDIX B Error Message for Debuggers W1407S Do not access to debug resource Explanation When DMAC accesses the area H 10000 H 103FF of debugging during the break in the user program read and write operations cannot be normally processed Operator response Prohibit the DMA transfer at the break when there is a possibility that DMAC accesses the area of the debug resource Enabled the software break The software break is written as an instruction code in the memory 14085 Explanation If the software break is set in the FLASH area the content in the memory of the setting address is temporarily rewritten Operator response None W1601S Failed to switch to the high speed communication of DEBUG I F Explanation Because a high speed communication can not be done the setting of the high speed communication was changed to the invalidity and switched to the normal communication mode Operator response Confirm the operating frequency under the setting and make the high speed communication effective again W1901S The setup file is read only The change in setup information cannot be
155. ly macros or batch can use the IF command 216 B Example IF SRO print OK else print NG endif CHAPTER 13 Control Commands 217 CHAPTER 13 Control Commands 13 2 REPEAT The REPEAT command evaluates the UNTIL formula after the command list specified by command list has been executed This command repeats execution of the command list while the formula is false E Debugger Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 B Format REPEAT command list UNTIL formula Parameters command list Specify the commands to be executed formula Specify the execution condition formula of specified command list Description The REPEAT command evaluates the UNTIL formula after the command list specified by command list has been executed This command repeats execution of the command list while the formula is false Only macros or batch can use the REPEAT command Example REPEAT STEP UNTIL main 218 CHAPTER 13 Control Commands 133 WHILE When the specified formula is evaluated as true the WHILE command repeats execution of the specified command list E Debugger Emulator MB2141 2146 09 09 09 2146 08 2146 07 B Format WHILE formula command list ENDW Parameters formula Specify the execution condition formula of specified command list command list Specify the comma
156. mber DECIMAL Specifies that value to be checked to be displayed as decimal number HEXADECIMAL Specifies that value to be checked to be displayed as hexadecimal number Description B Example The SHOW MEMORY command displays data in the memory location specified by address or address range according to the type of specified data However when BIT is specified address range cannot be specified When address and address range are omitted the command displays data in the memory location next to the memory location last accessed by the SHOW MEMORY or SET MEMORY commands The type of the data to be displayed is the same as that of the last accessed memory data When only a period is specified in address the command displays the data in the memory location last accessed by the SHOW MEMORY or SET MEMORY commands In this case the type of data to be displayed is also the same as that of the last accessed memory data If the command qualifier type is omitted BYTE is assumed If the display base number of a command qualifier is omitted the base number specified by the SET RADIX command is assumed gt SHOW MEMORY DECIMAL C000 C000 49 gt SHOW MEMORY BINARY C000 C000 B 00110001 gt SHOW MEMORY HEXADECIMAL C000 C001 C000 H 31 C001 H 32 gt SHOW MEMORY HEXADECIMAL WORD C000 C000 H 3132 gt SHOW MEMORY HEXADECIMAL LONG C000 C000 H 31323334 gt SHOW M
157. mbol name has been already existent Operator response To change the setting click the OK button E4636W This ROM RAM area name has already been registered Change the setting Explanation The specified ROM RAM area name has been already saved Operator response To change the setting click the OK button 254 E4637W APPENDIX A Manager Related Messages This section name has already been registered Change the setting Explanation The specified section name has been already existent Operator response To change the setting click the OK button E4638W Address must be specified to leader section name Explanation The address is not specified in the leading section name Operator response Specify the address E4639W This section name has already been specified in another ROM RAM area Explanation The specified ROM RAM area name has been already existent Operator response Check the ROM RAM area name E4640W Specify exact address Explanation The address specification is incorrect Operator response Specify the correct address E4701W Specified directory does not exist Specify Explanation A non existent directory is specified Operator response If there is no error click the OK button E4702W Cannot specify multiple directories Explanation Only one directory can be specified Operator response Specify only one directory E4703W Illegal Environment
158. ment buffer becomes full NOBREAK Does not cause break when performance measurement buffer becomes full Description This command determines whether causing break or not when the buffer that stores performance measuring data became full during user program execution BREAK can be specified to cause a break when a performance measurement buffer becomes full A performance measurement buffer becomes full when the event is occurred 32767 times This command setting is valid only when the event mode is set to PERFORMANCE The point at which performance is measured is set by the SET EVENT command At performance measurement the following items are measured Time measurement The time between two events is measured in four sections The starting and ending events are combined as follows Section 1 Starting event 1 Ending event 2 Section 2 Starting event 3 Ending event 4 Section 3 Starting event 5 Ending event 6 Section 4 Starting event 7 Ending event 8 107 CHAPTER 4 Program Execution Analysis Commands Counting event occurrences The time an event occurs is counted Example gt SET PERFORMANCE 108 BR EAK CHAPTER 4 Program Execution Analysis Commands 4 8 SHOW PERFORMANCE The SHOW PERFORMANCE command displays the state of the setting performance and the measured results E Debugger Emulator MB2141 2146 09 09 09 2146 08 2146 07
159. meter Specify an actual parameter required for command procedure Command qualifier ICON Converts debugger to icon and executes it when command procedure executed When command procedure execution terminates the icon is restored to the original size Description The BATCH command executes the commands in the specified command procedure file Batch processing procedure file call can be nested for up to 8 levels Actual parameters are replaced with temporary parameters in the command procedure file 0 to P9 in the order they were specified When the count of temporary parameters is greater than that of the specified actual parameters the remaining temporary parameters are replaced by empty character strings null When the count of temporary parameters is less than that of the specified actual parameters the remaining parameters are ignored The count of the specified actual parameters can be referred by means of NP 186 CHAPTER 9 Command Procedure Commands B Example gt BATCH TST PRC 0 OFFF BRK 187 CHAPTER 9 Command Procedure Commands 9 2 QUIT Executing the QUIT command when the command procedure is being executed quits command procedure processing E Debugger Emulator MB2141 2146 09 09 09 2146 08 2146 07 QUIT B Format Description Executing the QUIT command when the command procedure is being executed quits command procedure proce
160. n all the settings of the level will be deleted If a level number is omitted all the settings will be cancelled Example gt CANCEL SEQUENCE 1 2 gt CANCEL SEQUENCE 4 gt CANCEL SEQUENCE LATCH 1 92 CHAPTER 3 Break Event Control Command 3 23 ENABLE SEQUENCE The ENABLE SEQUENCE command enables a sequencer E Debugger Ema x Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 pee B Format ENABLE SEQUENCE Description The ENABLE SEQUENCE command enables a sequencer Example gt ENABLE SEQUENCE 93 CHAPTER 3 Break Event Control Command 3 28 DISABLE SEQUENCE The DISABLE SEQUENCE command disables a sequencer B Debugger Eme x Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 B Format DISABLE SEQUENCE Description The DISABLE SEQUENCE command disables a sequencer Example gt DISABLE SEQUENCE 94 CHAPTER 3 Break Event Control Command 3 2 SET DELAY The SET DELAY command sets the delay count as a sequencer terminates and specifies whether or not to cause a break at the end of a delay count E Debugger Emulator MB2141 2146 09 09 09 2146 08 2146 07 me B Format SET DELAY delay count Parameter delay count default decimal number Specify the value 0 to 655
161. n Analysis Commands block number default decimal number Specify the block number 1 to 2048 of trace data to be displayed Command qualifiers ONEFRAME Displays only one line of trace data NEXT Displays trace data from next block Description The SHOW MULTITRACE command displays multitrace data stored in a trace buffer It can be used only when the event mode is set to MULTITRACE Sampled trace data is assigned a number a number locally given within each block is called a local number and a number given to the entire trace buffer is called a global number The local number 0 is assigned to trace data at the position where an event trigger occurs and a negative local number is assigned to trace data sampled until the position is reached where execution stops A global number is assigned to the oldest data starting with 1 Displaying trace measurement conditions enabled disabled state of trace function and storage status of trace buffer when STATUS specified en dis Disables enables trace function buffer full Specifies full break of trace buffer sampling Displays sampling state of trace data Whether sampling of trace data is on or ends is displayed This display is used to check the program execution state end is always displayed during break If on is given no trace data will be displayed blockno Information on block numbers stored in trace buffer frame no Information on frame numbers glob
162. n dis 1 enable 9A 09B CH address FF20 gt SHOW BREAK SEQUENCE h no en dis enable 2 enable Emulator debugger MB2146 08 MB2146 07 gt SHOW BREAK DEFAULT default soft SHOW BREAK no en dis ab enable 2 enable address 000 FFOO address 000 FFOO pass count 1 1 65535 symbol main level kind hard soft symbol 1234 symbol main func symbol main func CHAPTER 3 Break Event Control Command 3 6 CANCEL BREAK The CANCEL BREAK command cancels a break point at the specified break point number E Debugger Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 B Format CANCEL BREAK breakpoint number Parameter breakpoint number default decimal number Specify the break point number See the break point number by using SHOW DATABREAK command Command qualifiers ALL Cancels all break points DATAWATCH MB2146 09 09A 09B The data watch break is cancelled SEQUENCE MB2146 09 09A 09B Only the sequence break is cancelled Description The CANCEL BREAK command cancels the specified break point s Example gt CANCEL BREAK 1 gt CANCEL BREAK 3 2146 09 09 09 gt CANCEL BREAK DATAWATCH gt CANCEL BREAK SEQUENCE 69 CHAPTER 3 Break Event Control Command 3 7 ENABLE BREAK
163. n use even after the program is terminated In this case reboot Windows E4200W The project file format is illegal Explanation The project file cannot be read properly Operator response The project file may be different from that for SOFTUNE Workbench or may be damaged Create a new project file E4201W Project file cannot be opened CPU type is different Explanation The project file is different family for the MCU Operator response Create a new project file for the MCU E4202W Unable to save project file Explanation An error occurred at writing to the project file Operator response The remaining disk capacity may be insufficient or the project file may be write disabled 244 E4204W APPENDIX A Manager Related Messages Illegal CPU information of project file Setting default value Explanation CPU information in the project file is illegal and is substituted for the default Operator response Check the set value for CPU information in the project file E4205W Target file directory not found Create a directory Explanation The target project file writing directory is not specified Operator response Click the OK button to create a directory E4206W List file directory not found Create a directory Explanation The target list file writing directory is not specified Operator response Click the OK button to create a directory E4207W Object file directory not fo
164. nable to create directory Explanation The directory cannot be created Operator response The file may be write disabled E4223W Changed target MCU CPU information changed to default value Explanation When the target MCU is changed the preset CPU information returns to the default value Operator response Reset the CPU information 246 E4224W APPENDIX A Manager Related Messages Explanation Operator response E4225W Specify target MCU The target MCU is not specified Enter the target MCU name Specify project type Explanation Operator response The project type is not specified Specify the project type E4226W Includes characters that cannot be designated lt gt l Explanation Operator response E4227W These characters cannot be used Change the name Please specify Object File Directory Explanation Operator response E4228W The target object file writing directory is not specified Enter the directory name Explanation Operator response E4230W Please specify List File Directory The target list file writing directory is not specified Enter the directory name Double specification Explanation Operator response E4232W The same specification is already in use Change the specification Explanation Operator response Setup file is not registered Registered automatically Starting the debug
165. ncies is started Explanation An attempt is made to close the project during tool start up Operator response Use the Suspend button to terminate the tool and close the project 24 c APPENDIX A Manager Related Messages E4309W Tool is started Explanation An attempt is made to close the project during tool start up Operator response Use the Suspend button to terminate the tool and close the project E4400W Setup file is read only Setup information is not saved Explanation The setup file cannot be written Operator response Set the setup file to the write enabled state E4401 W Setup file not found Explanation The setup file was not found Operator response It may not be valid that the Softune Workbench was installed completely Install it again E4402W The setup file format is illegal Explanation The setup file is written invalid data Operator response It may not be valid that the SOFTUNE Workbench was installed completely Install it again E4420W Maximum of address is xxxx Explanation The address exceeds the maximum value Operator response Check the address specification E4421W The start address exceeds the end address Explanation The specified address range is incorrect Operator response Check the address range specification E4422W The designated address is already designated Explanation The specified address range has been already registered
166. nds to be executed Description When the specified formula is evaluated as true the WHILE command repeats execution of the specified command list Only macros or batch can use the WHILE command Example WHILE PC function STEP ENDW 219 CHAPTER 13 Control Commands 13 4 BREAK The BREAK command enables the program to exit the control structure E Debugger Ema Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 pe ej B Format BREAK Description The BREAK command enables the program to exit the control structure This command is valid only in the REPEAT and WHILE command lists Only macros or batch can use the BREAK command Example WHILE 1 if SPC main BREAK ENDIF STEP ENDW 220 CHAPTER 14 Built in Variables and Functions This chapter describes the Built in Variables and Functions 14 1 96CALL 14 2 ERRNUM 14 3 ENTRY 14 4 STKTOP 14 5 RADIX 14 6 SCPADR 14 7 LOADNUM 14 8 BIT W L 96S D 14 9 STRGET 14 10 STRSTR 14 11 STRCMP 14 12 STRLEN 14 13 STRCAT 14 14 SYMLEN 14 15 TOVAL 14 16 TOSTR 14 17 EVAL 221 CHAPTER 14 Built in Variables and Functions 141 CALL CALL replaces the return value with the last executed CALL command E Debugger mae Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 De j B Format CALL
167. ning command alias and macro definition If a file name extension is omitted the default extension is added and the file is opened B Example Other than monitor debugger gt LOAD debug gt LOAD BINARY data bin 00 Monitor debugger gt LOAD FAST debug Note When the fast loading is enabled in monitor debugger all data loaded before will be cleared in order to clear all data in the flash memory area Therefore when multiple modules are used in a project put those modules in a single load module 174 CHAPTER 7 Load and Save Commands 7 2 SAVE When all command qualifiers are omitted or when BINARY is specified the SAVE command saves data in the specified memory to the memory image file binary format of data only E Debugger Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 B Format SAVE file name address range module name Parameters file name Specify a name of file where memory data to be saved When the file name extension is omitted any of the following extensions is added bin valid when memory data saved in memory image cov valid when coverage data saved csv valid when the coverage measurement result saved in CSV format Ist valid when command alias or macro definition saved address range address formula Specify a memory area to be saved Address range is valid only when command qualifier BINARY is specified Specifyin
168. not found Explanation The specified event number is not found Operator response Check the event number 44095 Invalid level number not found Explanation The specified level number is not found Operator response Check the level number E4410S Command error event mode violation Explanation A command was specified that violates the event mode Operator response Check the event mode setting with the Debug Environment in the Setup menu E4411S Invalid latch number not found Explanation The specified latch number is not found Operator response Check the latch number 288 APPENDIX B Error Message for Debuggers 44125 Invalid supply voltage Explanation The supply voltage supplied from the user system is found abnormal Operator response Review the supply voltage of the user system 44135 MCU is in STOP mode or Invalid system clock Explanation This indicates one of the following MCU is in STOP mode The system clock supplied from the user system is found abnormal Operator response Review the MCU status or the system clock of the user system 44145 MCU reset error Explanation The MCU reset cannot be executed normally Operator response The mode data and the reset vector read at reset may be an incorrect value Set a correct value and retry this command When this error occurs if the mode data is read from the user memory the user memory cannot be re
169. ntax is incorrect Operator response Check the command description format and parameters then re enter the command 40025 Command qualifier error Explanation The specified command qualifier is incorrect or it does not exist in the command Operator response Check the command qualifier then re enter the command E4003S Syntax error Explanation An error is found in the command or line assembler syntax Operator response Check the syntax and parameters and then re enter the parameter 272 APPENDIX B Error Message for Debuggers E4004S Invalid parameter count over limit Explanation The parameter count is too large Operator response Check the command syntax and then re enter the parameter 40055 Invalid parameter omission Explanation A no omitted parameter is omitted Operator response Check the command syntax and then re enter the parameter E4006S Parameter error Explanation Illegal parameters are specified The parameter name is illegal or parameters cannot be recognized as numeric values Operator response Check the command syntax or input radix and then re enter the parameter 40075 Invalid operand Explanation There are invalid operands in the expression Attempts were made to perform arithmetic operations using floating point numbers Arithmetic operations using floating point numbers cannot be performed Operator response Check the operands in the statemen
170. o be set address value Specify the starting address of routine corresponding to specified vector number Description The SET VECTOR command sets the address value of the vector number in the specified area Example gt SET VECTOR 7 FF10 gt SHOW VECTOR 7 7 Vector No Address Symbol Factor 7 FF10 time base timer 35 CHAPTER 1 Environment Setup Commands 1 30 SHOW VECTOR The SHOW VECTOR command displays vector number data E Debugger mae Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 me o B Format SHOW VECTOR vector number range Parameter vector number range Specify the range of vector numbers to be displayed Specify range in starting number ending number format Description The SHOW VECTOR command displays vector number data If vector number range specifying is omitted vector number display is started from the next vector number B Example gt SHOW VECTOR 6 10 Vector No address Symbol Factor 6 0000 16 bit timer counter 7 0000 8 bit serial I O 1 8 0000 8 bit serial I O 2 9 0000 System reserved 10 10 timebase timer 36 CHAPTER 1 Environment Setup Commands 1 31 ENABLE WATCHDOG The ENABLE WATCHDOG command enables a watchdog timer E Debugger Ema x Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 Dm x B Format ENABLE WA
171. o search for the source file The command searches the specified directories for the source file in sequence from the left When user omit a parameter a debugger strikes registered source search directory name off A search directory becomes a current directory Example gt SET PATH A 180 CHAPTER 8 Source File Symbol Commands 8 3 SHOW PATH The SHOW PATH command displays currently enabled source file search directories E Debugger ma Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 me ej B Format SHOW PATH Description The SHOW PATH command displays currently enabled source file search directories Example gt SHOW PATH source file search path 181 CHAPTER 8 Source File Symbol Commands 8 4 SHOW SCOPE The SHOW SCOPE command displays the module and function names including the memory location indicated by the current program counter E Debugger Em Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 pw e B Format SHOW SCOPE Description The SHOW SCOPE command displays the module and function names including the memory location indicated by the current program counter Example gt SHOW SCOPE current scope SIEVE sub_main 182 CHAPTER 8 Source File Symbol Commands 8 5 UP The UP command moves the scope to the parent funct
172. ograms coded in C language can use this function The optimized program may not be stopped normally Setting interrupt mask MASK Masks interrupt When the debugger type is only the simulator debugger or the emulator debugger MB2141 this command qualifier can be specified 44 CHAPTER 2 Program Execution Commands NOMASK Does not mask interrupt When the debugger type is only the simulator debugger or the emulator debugger MB2141 this command qualifier can be specified Selection of command input during execution W AIT default when not specified Once the user program is run other commands are not accepted until the program stops NOWAIT Commands can be input after the user program is run without waiting for the program to stop This qualifier cannot be specified if RETURN is specified MB2141 Trace control ENABLETRACE Enables trace function at start of program execution DISABLETRACE Disables trace function at start of program execution Description The GO command executes the program from the specified starting address If starting address specifying is omitted the program is executed from the address indicated by the current program counter The break address set by the GO command is automatically deleted when program execution is stopped The command qualifiers ENABLETRACE and DISABLETRACE are specified for trace control by a sequencer If a command qualifiers is omitted program execution will star
173. on Enabling the trace buffer full break suspends program execution when the trace buffer becomes full Example SET TRACE BREAK 126 CHAPTER 4 Program Execution Analysis Commands 4 22 SHOW TRACE type 1 The SHOW TRACE command displays the trace data stored in the trace buffer E Debugger ma Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 Format SHOW TRACE DATA trace number trace number Command qualifier classified by function DATA default when omitted Displays traced data Parameter trace number default decimal number Specify the number of trace data to be displayed with decimal number Command qualifiers CYCLE Displays the trace data in valid bus cycle When the debugger type is only the emulator debugger MB2141 this command qualifier can be specified INSTRUCTION default when omitted Displays the trace data by the disassemble form SOURCE Displays the trace data by the source lines form ONEFRAME Displays trace data only by one line NEXT Displays from the frame which next level of sequencer being traced This qualifier can be specified only Emulator MB2141 127 CHAPTER 4 Program Execution Analysis Commands FILE Save trace data to a file APPEND Add and save trace data to a file Effective when FILE is specified Description The SHOW TRACE command displays the trace data stored in th
174. on The specified alias file cannot be saved Operator response Check the condition of the disk in the host machine EA208S Invalid file format Explanation The format of the file to be loaded is illegal Operator response Check the file 42095 Open file read error Explanation An error occurred during reading of the opened file Operator response Check the file drive being read 43015 Invalid interrupt factor number Explanation The specified interrupt number does not exist Operator response Specify the interrupt number which can be assigned IRQO to IRQ47 43025 Invalid buffer number Explanation The specified I O buffer number does not exist Operator response The simulator provides 0 to 3 I O buffers 286 43035 APPENDIX B Error Message for Debuggers Invalid port address Explanation An address was specified beyond the port address range Operator response A port address can be specified only in the MCU I O area Specify an address in 43045 the MCU I O area Invalid output destination Explanation A data output destination which is already in use as the data output destination was specified Operator response Specify a data output destination not in use 43055 Invalid port count Explanation The count of specified ports exceeds 4096 Operator response Specify 4096 ports or less 43065 Simulation memory allocation error Exp
175. on file 240 E4022W APPENDIX A Manager Related Messages Please enter CPU information file Explanation The CPU information file cannot be found Operator response Enter the CPU information file directory E4023W Illegal tool option data Default data is set Explanation The project file has illegal value written tool option data Operator response Reset the tool option data E4024W Invalid CPU information Set default value Explanation The CPU information file has illegal data Operator response Get the latest CPU information file E4100W Access was denied Explanation The file cannot be accessed Operator response The file may be write or read disabled Check the file attributes E4110W Explanation Too many open files 1 The maximum number of files that can be opened is exceeded Operator response Close other files E4120W Explanation Directory does not exist 1 The directory cannot be found Operator response Enter the correct directory name E4121W Explanation Drive is not ready The drive cannot be accessed Operator response Check the drive N APPENDIX A Manager Related Messages EA122W Path is invalid Explanation The directory cannot be found Operator response Enter the correct directory name E4123W Unable to create directory Explanation The directory cannot be created Operator response
176. onse Check the trace number then re enter the number E4026S Invalid format statement characters Explanation The specified format statement character string is incorrect Operator response Check the format statement character string then re enter the command 40275 Invalid symbol not found path name Explanation The specified symbol path name is not found Operator response Check the symbol path name and then re enter the name 40285 Invalid function not found or argument error Explanation The specified function is not found Or the invalid argument of the function is specified Operator response Check the function or argument and then re enter it E4029S Invalid expression used variable of structure or union type Explanation The structure or union variable cannot be used as the operand in the language expression Operator response Recheck the data format Prefix the operator amp to the variable 276 40305 APPENDIX B Error Message for Debuggers Invalid address not found Explanation Operator response 40315 The corresponding address is not found in the line number Recheck the line number Invalid automatic variable reference Explanation Operator response 40325 Attempts are made to refer the automatic variable of the function in which the variable is defined The automatic variable can be referred only within the function in which the
177. ontrol Command 3 15 SET EVENT The SET EVENT command sets the event that triggers a sequencer multitrace and performance E Debugger Emulator MB2141 MB2146 08 2146 09 09 09 x x x MB2146 07 Format SET EVENT event number address amp mask d data amp mask e external probe data amp mask p pass count Parameters event number Specify the event number 1 to 8 address amp mask address formula data formula Specify a memory location taken as an event generating condition If a mask is specified only one portion where the bit of the mask is 1 will be valid and the others will be ignored If mask data is omitted all the bits will be valid Automatic variables in C language cannot be specified d data amp mask data formula data formula Specify the data taken as an event generating condition If a mask is specified only one portion where the bit of the mask is 1 will be valid and the others will be ignored If mask data is omitted all the bits will be valid If is specified the specified data will be assumed to be not e external probe data amp mask data formula data formula Specify the external probe data 8 bits length taken as an event generating condition If a mask is specified only one portion where the bit of the mask is 1 will be valid and the others will be ignored If mask data is omitted all the b
178. or response Decrease the count of selected files E4301W Unable to create command line Explanation The option file to start the language tool cannot be created Operator response Check the access permission for the OPT subdirectory under the project directory or the disk capacity 248 E4302W APPENDIX A Manager Related Messages Failed during start Explanation The tool cannot be started Operator response The tool name may be incorrect Check the tool settings E4303W Command Line too long Explanation The command line is too long max 2048 characters Operator response Check the option parameters E4304W Failed during start editor Explanation The registered external editor cannot be started Operator response Check the executable file name of the editor E4305W Compiler Assembler is started Explanation An attempt is made to close the project during tool start up Operator response Use the Suspend button to terminate the tool and close the project E4306W Make function is started Explanation An attempt is made to close the project during tool start up Operator response Use the Suspend button to terminate the tool and close the project E4307W Build function is started Explanation An attempt is made to close the project during tool start up Operator response Use the Suspend button to terminate the tool and close the project E4308W Include Depende
179. preserved Explanation The setup file is read only Changes to the setup information cannot be saved Operator response Remove the read only attribute from the attributes for the setup file corresponding to the setup file name W1902S Invalid CPU information data Explanation Data in the CPU information file is invalid Operator response Obtain the latest CPU information file W1903S There is a possibility with an old version of DLL Explanation The version of the program does not match that of the DLL file Operator response Install the latest SOFTUNE Workbench 27 APPENDIX B Error Message for Debuggers W1904S Start Setup Wizard to update the setup file Explanation It is necessary to update information in the setup file because the information was modified Operator response Update the setup file on the setup wizard W1905S Please check There is watch variable that the realtime monitoring function becomes invalid Explanation There is a watch variable that a realtime monitoring function becomes invalid because a real time area was changed Operator response Check the setting of a real time area and the watch variable W1906S Information file is not the latest Information file name Explanation Information file is not the latest Operator response Install the latest SOFTUNE Workbench EA001S Command error Explanation The command description format or line assembler sy
180. r certain conditions when using the emulator debugger for the MB2146 09 For details refer to 2 3 Emulator Debugger MB2146 09 09A 09B of SOFTUNE Workbench User s Manual 124 CHAPTER 4 Program Execution Analysis Commands 4 20 CLEAR TIMER The CLEAR TIMER command initializes the timer measurement execution result E Debugger Emulator MB2141 MB2146 09 09A 09B 2146 08 2146 07 mu x This command is only available if the BGM adapter MB2146 09A or later and MCU board version 02B or later are used B Format CLEAR TIMER Description The CLEAR TIMER command initializes executed number of instruction execution cycles number of steps of programs and the result of a measurement at time are Example gt CLEAR TIMER Note This command is available under certain conditions when using the emulator debugger for the MB2146 09 For details refer to 2 3 Emulator Debugger MB2146 09 09A 09B of SOFTUNE Workbench User s Manual 125 CHAPTER 4 Program Execution Analysis Commands 4 21 SET TRACE The SET TRACE command controls the trace buffer full break E Debugger Ema o Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 me xj B Format SET TRACE Command qualifiers BREAK Enables trace buffer full break NOBREAK default at start up Disables trace buffer full break Descripti
181. rce Explanation The timer resource of Windows cannot be used Operator response End other applications then re execute this command E4902S The key code cannot be defined Explanation The key code cannot be defined Operator response Define another key code 296 APPENDIX B Error Message for Debuggers E4903S Write error at flash memory Explanation During programming to Flash ROM timing limit over is occurred Operator response When this error occurs contact your Fujitsu representative immediately 49045 Explanation Erase error at flash memory During erasing to Flash ROM timing limit over occurred Operator response When this error occurs contact your Fujitsu representative immediately 49055 Don t use because enabled MCU security Explanation When the MCU security was effective the function that can not be used was operated Operator response Release the MCU security 297 APPENDIX C Execution Suspension Messages List APPENDIX C Execution Suspension Messages List This appendix describes the Execution Suspension Messages List 298 Execution Suspension Messages List Break at address by break point Explanation This message is displayed when a break is caused by a software break point Address indicates the address of the next instruction to be executed where execution was suspended Break at address by hardware break point Explanation Th
182. rdware standby Mode 304 INDEX Symbols B V p 229 BIT BPP woth fas eren oa IN CERE ERES 229 CALL ToC AV Dec 222 D EET 229 ENTRY ENTRY Idee e akapa u ve derer 224 ERRNUM PERRA M 223 EVAL Va 238 AL EPEE T 229 LOADNUM 228 RADIX PRADIX CE 226 S vC 229 SCPADR P CPA DR 227 STKTOP ToSTK TOP E eek Gate ee 225 STRCAT G STRCAT eroe daniels eee eene va 234 96S TRCMP JOSTREMP 232 STRGET JOST RGET eee naaien yaron aiaiai dianik 230 STRLEN ZARA D A H AN mn 233 STRSTR TOS VRS TR iiit cares ERRARE UR RENNES 231 SYMLEN JOY MILEN rte 235 96 TOSTR PTOS TR ME 237 TOVAL Thiaspi uwa Ga Sis ase 236 W OW etiain au luu asuy 229 INDEX A ALIAS CANCEL ALIAS 192 SETAALIAS 190 SHOW ALIAS esc postre cia 191 ASSEMBLE ASSEMBLE yasa tatis eodd dad 168 B BATCH BATO Gat asus Sun siu lots 186 BREAK BREAK c ond odia 220 CANCEL BREAK teret ttt ioa 69 DISABLE BREAK a 71 ENABLE BREAK eineteset 70 61 SET BREAK type 2 cette 64 SET BREAK type 3 ecce 65 66 SHOW BREA
183. re execution of the CALL command is completed Restart execution of the CALL command with the GO command as is or suspend execution with the CLEAR CALL command Address indicates the address of the next instruction to be executed where execution was suspended Break at address by EIT attached information Explanation This message is displayed when a break is caused by EIT Address indicates the address of the next instruction to be executed where execution was suspended For attached information refer to the hardware manual of the product used Break at address by step command Explanation This message is displayed by the SHOW STATUS command when a break is caused by step INTO execution Address indicates the address of the next instruction to be executed where execution was suspended Break at address by call command Explanation This message is displayed when a break occurs after execution of the CALL command is completed Address indicates the address of the next instruction to be executed where execution was suspended Break at address by violation to combine instructions Explanation Displayed when a combined instruction that is not allowed in 1 parallel instruction is executed and there is a break in the simulator debugger Address indicates the address of the next instruction to be executed where execution was suspended APPENDIX C Execution Suspension Messages List Break at address by slot i
184. s Access specifying CODE Searches trace frames where code access made to specified address READ Searches trace frames where read access made to specified address WRITE Searches trace frames where write access made to specified address 105 CHAPTER 4 Program Execution Analysis Commands Operation specifying ALL default when omitted Searches all corresponding frames ONEFRAME Terminates command execution when one frame is found Description The SEARCH MULTITRACE command searches the trace data under specified conditions If trace data is found it will be displayed in the same format as that in the SHOW MULTITRACE command However disassemble display is not executed If ONEFRAME is specified command execution will be terminated when one frame is found If trace data is found the frame number will be set in the built in variable 7FRMNUM If multiple trace data are found the frame number in which the last data is found will be set in the built in variable Example gt S 106 EARCH MULTITRACI E 186 CHAPTER 4 Program Execution Analysis Commands 4 7 SET PERFORMANCE The SET PERFORMANCE command sets the operation of a performance measurement buffer when it is full B Debugger Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 De B Format SET PERFORMANCE Command qualifiers BREAK default when omitted Causes break when performance measure
185. s necessary to set the data break before using this command However when this function is used the data break function does not work Example SET BREAK DATAWATCH ff00 64 CHAPTER 3 Break Event Control Command 33 SET BREAK type 3 The SET BREAK command sets a break point at the specified break address E Debugger Ema Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 Dm X Format SET BREAK SEQUENCE code address1 code address2 Parameters code address1 address formula Specify the address 1 of code that serves as a sequence condition code address2 address formula Specify the address 2 of code that serves as a sequence condition Description When the condition is succeeded the order of the specified code address 1 code address 2 this function is used to stop the program Example gt SET BREAK SEQUENCE 000 ff00 65 CHAPTER 3 Break Event Control Command 34 SET BREAK type 4 The SET BREAK command specifies default attributes at the break point setting E Debugger Ema x Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 pee x B Format SET BREAK DEFAULT SOFTI HARD Command qualifiers DEFAULT Omission prohibition Specifies attributes at the break point setting HARD default when omitted A hardware break is set as th
186. s on the command qualifier address address formula Specify a memory location address where memory image file is loaded This parameter is valid only when command qualifier BIN ARY is specified Specifying other command qualifiers results in an error file offset data formula Specify an offset of read start data in specified file When file offset is omitted data is read from the beginning of the file This parameter is valid only when command qualifier BINARY is specified Specifying other command qualifiers results in an error byte count data formula Specifies the loaded number of data by each bytes for the specified file name When byte count is omitted all data is read This parameter is valid only when command qualifier BIN ARY is specified Specifying other command qualifiers results in an error 172 CHAPTER 7 Load and Save Commands Command qualifiers Specifies the file format the operation when loading it and the data length File format specification OBJECT default when omitted Loads load module file The default extension is abs DEBUG Loads only debug information from load module file The default extension is abs BINARY Loads binary format memory image file The default extension is bin Addressing cannot be omitted COVERAGE Loads coverage data file The default extension is cov This function is available only in the emulator debugger MB2141 ALIAS Loads alias file command
187. s specified value in specified memory location as single precision floating point number DOUBLE Stores specified value in specified memory location as double precision floating point number 150 CHAPTER 5 Memory Register Operation Commands STRING Stores value specified in character string in specified memory location as ASCII code data Description Example The SET MEMORY command stores the specified data in the specified memory location by storage address according to the type of the specified command qualifier When storage address is omitted the command stores the specified data in the memory location next to the memory location last accessed by the SHOW MEMORY or SET MEMORY commands The type of the data to be stored is the same as that of the last accessed memory data When only a period is specified in storage address the command stores the data in the memory location last accessed by the SHOW MEMORY or SET MEMORY commands In this case the type of the data to be stored is also the same as that of the last accessed memory data If the type of command qualifier is omitted BYTE is assumed gt SE EMORY BYTE 1000 10 gt SE EMORY HALFWORD 1030 6A5 gt SE EMORY WORD 1050 1DF2BF gt SE EMORY STRING 2000 ST gt SE EMORY 45 gt SE EMORY BIT 8000 3 1 gt SE EMORY SINGLE 2050 F 10 55S 2 151 CHAPTER 5 Memory Regis
188. se Check unnecessary settings E4774W The same syntax has already been set in the SYSTEM It cannot be changed Explanation The same syntax has been already set in the SYSTEM Operator response Syntax that has been already existent in the SYSTEM cannot be changed E4780W Title not specified Explanation The title is not found Operator response Specify the title E4781W Execute filename not specified Explanation The execution file name is not specified Operator response Specify the execution file name 25 APPENDIX A Manager Related Messages E4782W Option not specified Explanation The option is not specified Operator response Specify the option E4783W Already a registered title Do you change contents Explanation The specified title has been already existent Operator response To change the setting click the OK button E4784W Syntax error Undefined Macro Explanation An undefined macro is specified Operator response Check the syntax E4785W Syntax error Duplicate Macro syntax Explanation The macros f 1 and h are duplicated Operator response Check the syntax E4786W Syntax error Don t describe f or h Explanation The macro f or h is not described Operator response Specify f or h in the error jump setting syntax E4789W The registration count is maximum You cannot register any more Explanation The count
189. sed 268 W1104S APPENDIX B Error Message for Debuggers Invalid address mis alignment Explanation Operator response W1201S In the FR family MCU 16 bit data must be accessed on a 16 bit boundary and 32 bit data on a 32 bit boundary respectively Review the specified address Explanation Operator response W1202S Invalid HELP command file not found The HELP command file is not placed in a correct location Place the HELP command file in a correct location Loaded different series s file Explanation Operator response W1203S The load module file of the MCU series that is different from the target MCU specified by the project was loaded The instruction operation may not be executed normally in case of the invalid load module Do the reload after the file is confirmed when the specified load module file is not a file of the purpose Invalid file format Explanation Operator response W1204S The file format tried to be loaded is different Check the file contents Loaded different series s file FPU instructions are included Explanation Operator response W1401S The load module file made with the tool of a series different from the chip specification of the installation file was loaded FPU instructions are included In the load module of a different MCU series the instruction might not operate correctly Do the reload after the file is confirmed
190. sed the break Task ID indicates the ID of the task that issued the system call Break at address by command abort request Explanation This message is displayed when a break is caused by the ABORT command on the Debug menu Address indicates the address of the next instruction to be executed where execution was suspended Break at address by output file overflow Explanation This message is displayed when a break occurs because data could not be written to the data output file of an output port Check the data output file of the output port Address indicates the address of the next instruction to be executed where execution was suspended Break at address by stop abnormal action Explanation This message is displayed when a break occurs because a non executable instruction was added after a prefix instruction Check the program because it may be incorrect Address indicates the address of the next instruction to be executed where execution was suspended 301 APPENDIX C Execution Suspension Messages List 302 Break at address by invalid call termination Explanation The CALL command is executed after a break point is set in the address indicated by the current PC and the RP register is set so that control will return to the address For this reason a break occurs if the address of the original PC is executed during execution of the CALL command In this way this message is displayed when a break occurs befo
191. ss is also handled as READ WRITE Enables data write access CODE Enables code read access If command qualifier is omitted READ WRITE is set Specifying area type USER MB2141 Sets area to user memory area EMULATION default when omitted MB2141 Sets area to emulation memory area CHAPTER 1 Environment Setup Commands Description The SET MAP command sets a memory space area type and access attribute Simulator Debugger Up to 31 areas can be set Enabled to specify in byte When the load module file is loaded by the LOAD command appropriate access attributes are automatically set according to the file information Emulator Debugger MB2141 User memory area USER Up to 20 areas can be specified with the emulation area in one byte There is no restriction on the size of one area Emulation area EMULATION Up to 20 areas can be specified with the user memory area in one byte There is no restriction on the size of one area Example gt SET MAP READ WRITE 1000 1FFF CHAPTER 1 Environment Setup Commands 1 14 SET MAP type 2 The SET MAP command sets an undefined area access attributes B Debugger Ema Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 De x B Format SET MAP GUARD NOGUARD Command qualifiers Setting undefined area access attributes GUARD default when internal ROM provided Disables access to und
192. ssing Example Data in command procedure file IF SNP lt 2 QUIT DIF SET VARIABLE I 0 SET VARIABLE ADDR PO W HILE I lt 1 SET MEMORY ADDR 51 SET VARIABLE I 61 41 IF ADDR H FFFF QUIT ELSE SET VARIABLE ADDR SADDR 1 ENDIF ENDW 188 CHAPTER 10 Replacement Commands This chapter describes the Replacement commands 10 1 SET ALIAS 10 2 SHOW ALIAS 10 3 CANCEL ALIAS 10 4 SET VARIABLE 10 5 SHOW VARIABLE 10 6 CANCEL VARIABLE 189 CHAPTER 10 Replacement Commands 10 1 SET ALIAS The SET ALIAS command defines a command alias E Debugger Ema Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 me ej Format SET ALIAS alias command character string Parameters alias identifier Specify a command alias command character string Specify a command character string command name command qualifier and parameter to be replaced with specified alias enclosed in double quotation marks Description The SET ALIAS command defines a command alias It is convenient to define command aliases for frequently used commands No command alias can be nested Other command aliases cannot be included in command alias definition B Example pi gt SE IAS BP SET BREAK FF00 3 gt SE IAS E ENTER gt SET ALIAS SH
193. ssue violation Explanation Displayed when an instruction that cannot be issued to a slot in 1 parallel instruction is executed and there is a break in the simulator debugger Address indicates the address of the next instruction to be executed where execution was suspended Break at address by resource write write confliction Explanation Displayed when executing a plurality of write access of the same memory or register of 1 parallel instruction in the simulator debugger The address is the one of the parallel instruction executed after the instruction that had the cause of the break Break at address by data watch break Explanation Displayed when a break is caused by a data watch break point in the emulator debugger Address indicates the address of the break factor instruction Break at address by unknown break factor Explanation Displayed when a break is caused by indefinite factor Address indicates the address of the next instruction to be executed where execution was suspended Break at address by trace end break Explanation Displayed when the break is caused by the break on the completion of trace Address indicates the address of the next instruction to be executed where execution was suspended Break at address by breakpoint data watch Explanation Displayed when the break is caused by the data watch break Address indicates the address where the command has caused the break 30 APPEND
194. string 1 and character string 2 E Debugger Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 De ej Format 7o STRCAT character string 1 character string 2 Parameter character string 1 character string 2 Specify a character strings to be linked Description STRCAT replaces character string created by linking character string 1 and character string 2 Example gt TOSTR S STRCAT abcde fg abcdefg 234 14 14 SYMLEN CHAPTER 14 Built in Variables and Functions SYMLEN returns the size of a specified symbol E Debugger Eme Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 me ej B Format SYMLEN symbol name Parameter symbol name Specify a symbol Description SYMLEN returns the size of a specified symbol Example gt Sd n SYMLEN abcde 2 235 CHAPTER 14 Built in Variables and Functions 14 15 TOVAL TOVAL deletes double quotation marks from both ends of the specified character string E Debugger Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 me ej Format 96 TOV AL character string Parameter character string Specify a character string Description TOVAL deletes double quotation marks from both ends of the specified character string This function is used when th
195. t GO STEP CALL The STUB function restart command execution and instruction execution is not executed in STEP INTO and STEP OVER After the break point is hit execution is stopped A hardware break setting does not stop the program if one of the following operations is performed while a user program is executing with the emulator debugger MB2146 08 MB2146 07 Input the reset signal from the target board Select Debug Reset MCU menu Specify the starting address of an instruction when a breakpoint is set by using the following debuggers If the other address is specified the program may run away Simulator debugger Emulator debugger MB2146 09 09A 09B Emulator debugger MB2146 08 Emulator debugger MB2146 07 63 CHAPTER 3 Break Event Control Command 32 SET BREAK type 2 The SET BREAK command sets a break point at the specified break address E Debugger Ema x Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 me xj B Format SET BREAK DATAWATCH code address Parameter code address address formula Specify the address of code that serves as a data monitoring condition Description The SET BREAK command sets the code break point for the data watch break function The data watch break function is used to stop the program when the program execution hits the code break point with the data break points hit state It i
196. t and then re enter the operands 40085 Invalid operator Explanation There are invalid operators in the expression Operator response Check the operators in the expression and then re enter the operators E4009S Syntax error operand not found Explanation The operand is not found in the polynomial operator in the expression Operator response Check the expression and then input the operand correctly E4010S Syntax error or not found o o Explanation or on the right side of or is not found in the expression and the character constant is consisted of one or more characters Operator response Check the expression and then input quotation marks correctly 27 APPENDIX B Error Message for Debuggers 40115 Invalid nest level over limit Explanation The nest level of and in the expression exceeds 16 Or the nest level of the structure or union exceeds 16 Operator response Simplify the expression E40128 Syntax error dividing by zero Explanation Division by 0 is found in the expression Operator response Check the operand in the expression and then re enter the parameter E40138 Invalid address specifying Explanation The ending address may be less than the starting address or the specified address range may extend over multiple areas Operator response Check the addresses then re enter the command E4014S Invalid bit p
197. t as set by the SET GO command Example GO power 20 Break at main 10 gt GO power 20 main 5 45 CHAPTER 2 Program Execution Commands 2 2 SET GO The SET GO command specifies the execution conditions for the GO command as command qualifiers are omitted E Debugger Ema o Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 we B Format SET GO Command qualifiers Setting interrupt mask MASK Masks interrupt NOMASK default at start up Does not mask interrupt MB2141 Trace control ENABLETRACE default at start up Enables trace function at start of program execution DISABLETRACE Disables trace function at start of program execution Description The SET GO command specifies the execution conditions for the GO command as command qualifiers are omitted Example gt SET GO MASK gt GO 46 CHAPTER 2 Program Execution Commands 2 3 SHOW GO The SHOW GO command displays the current execution conditions SET GO command settings for the GO command E Debugger Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 De B Format SHOW GO Description The SHOW GO command displays the current execution conditions SET GO command settings for the GO command Example gt SHOW GO Interrupt mask nomask Trace control enable 47 CHAPTER 2 Program Execution Commands 2 4 ABORT The ABORT command
198. t number in the services file For details refer to the Appendix C Setting LAN Interface of SOFTUNE Workbench Operation Manual E4606S Communication Cannot open device Explanation Abnormality is found in the specified device or not connected correctly Operator response Please confirm whether the specified device is correctly connected 29 APPENDIX B Error Message for Debuggers 46075 Communication Time out Explanation Reception information on transmission information was not received within the fixed time Operator response Please confirm whether the specified device is correctly connected EA608S Communication DEBUG I F error Explanation The problem occurred by the communication in DEBUG I F Operator response Confirm the connection of the DEBUG I F cable EA609S Communication USB error Explanation The problem occurred by the USB communication Operator response Confirm the connection of the USB cable 46105 Communication Time out DEBUG I F Explanation It is not possible to communicate with the target The possibility that there is a problem in the target is high Operator response Reactivate the target E4611S Communication Time out debug program Explanation It is not possible to communicate with the target The possibility that there is a problem in the target is high Operator response Reactivate the target 49015 Not enough timer resou
199. tail of the RAM monitoring function refer to each section of SOFTUNE Workbench user s manual MB2146 09B 2 3 7 RAM Monitoring MB2146 07 2 5 7 RAM Monitoring 137 CHAPTER 4 Program Execution Analysis Commands Example gt SET RAMMONITOR WORD WMmain Ndata 1 gt SHOW RAMMONITOR RAM Monitoring enable ch 0 0140 word main data_1l ch 1 1200 byte ch 2 1240 byte 138 CHAPTER 4 Program Execution Analysis Commands 4 30 SHOW RAMMONITOR The SHOW RAMMONITOR command displays the content set by the RAM monitor function E Debugger Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 This command is available if only the BGM adapter MB2146 09B or the MCU board MB2146 301B E or MB2146 303B E is used B Format SHOW RAMMONITOR Description Displays the content set by the RAM monitor function Set contents are displayed by the following priority 1 The order rearranged by RAM monitor dialog Refer to 4 4 15 RAM Monitoring in SOFTUNE Workbench operation manual for details 2 The order specified by SET RAMMONITOR command Example gt SHOW RAMMONITOR RAM Monitoring enable ch 0 0140 word main data_1l ch 1 1200 byte ch 2 1240 byte 139 CHAPTER 4 Program Execution Analysis Commands 4 31 CANCEL RAMMONITOR The CANCEL RAMMONITOR command cancels the address watching by the RAM monitor function E Debugger Emulator MB2141
200. tax E4764W Syntax error Invalid V syntax Explanation Invalidl V syntax is used for other than V V and Operator response Check the syntax E4765W Syntax error Invalid syntax Explanation The description of the macro is illegal Operator response There may be no correspondence in Check the syntax E4766W Syntax error Don t describe f Explanation The macro f or h is not described Operator response Specify f or h in the error jump setting syntax E4767W Syntax error Invalid Macro into Explanation An illegal macro is described in the macro Operator response Only the macro 9696 or can be described in the macro E4768W Already a registered syntax Do you change contents Explanation The same syntax has been already saved Operator response To change the contents click the OK button 258 E4769W APPENDIX A Manager Related Messages Syntax not specified Explanation The syntax is not found Operator response Specify the syntax E4771W Syntax too long Explanation The character string in the syntax is too long Operator response Shorten the syntax EA772W Comment too long Explanation The comment is too long Operator response Shorten the comment E4773W The registration count is maximum You cannot register any more Explanation The count of existent settings exceeds the maximum value Operator respon
201. ter Operation Commands 5 4 SHOW MEMORY The SHOW MEMORY command displays data in the memory location specified by address or address range according to the type of specified data E Debugger Emulator MB2141 2146 09 09 09 2146 08 2146 07 we B Format SHOW MEMORY address address range Parameters address address formula Specify the address in memory location to be checked address range address formula Specify the memory area range to be checked Command qualifiers BIT Specifies that value to be checked to be displayed as 1 bit length BYTE default when omitted Specifies that value to be checked to be displayed as 8 bit length WORD Specifies that value to be checked to be displayed as 16 bit length LONG Specifies that value to be checked to be displayed as 32 bit length SINGLE Specifies that value to be checked to be displayed as single precision floating point number DOUBLE Specifies that value to be checked to be displayed as double precision floating point number 152 CHAPTER 5 Memory Register Operation Commands ASCII Specifies that value to be checked to be displayed as ASCII characters STRING Specifies that value to be checked to be displayed as character string BINARY Specifies that value to be checked to be displayed as binary number OCTAL Specifies that value to be checked to be displayed as octal nu
202. ter describes the Program Execution commands CHAPTER 3 Break Event Control Command This chapter describes the Break Event Control commands CHAPTER 4 Program Execution Analysis Commands This chapter describes the Program Execution Analysis commands CHAPTER 5 Memory Register Operation Commands This chapter describes the Memory Register Operation commands CHAPTER 6 Line Assemble and Disassemble Commands This chapter describes the Line Assemble and Disassemble commands CHAPTER 7 Load and Save Commands This chapter describes the Load and Save commands CHAPTER 8 Source File Symbol Commands This chapter describes the Source File Symbol commands CHAPTER 9 Command Procedure Commands This chapter describes the Command Procedure commands CHAPTER 10 Replacement Commands This chapter describes the Replacement commands CHAPTER 11 Utility Commands This chapter describes the Utility commands CHAPTER 12 Task Debug Commands This chapter describes the Task Debug commands CHAPTER 13 Control Commands This chapter describes the Control commands CHAPTER 14 Built in Variables and Functions This chapter describes the Built in Variables and Functions APPENDIX These appendixes describe the Manager Related Messages Error Message for Debuggers and Execution Suspension Messages List The contents of this document are subject to change without notice Customers are advised to consult with sales representatives before ordering
203. the COMPARE command displays Not found When a difference is found the command displays in hexadecimal notation the memory location of the compare origin to the left and the memory location of the comparison destination to the right Example COMPARE 2000 3000 4000 address source destination address 2050 35 10 4050 2051 40 00 4051 160 CHAPTER 5 Memory Register Operation Commands 5 9 FILL The FILL command fills the specified memory area with any data E Debugger Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 xj B Format FILL address range data Parameters address range address formula Specify the memory range to be filled data data formula Specify the data filling Command qualifiers Data length BYTE default when omitted Specifies filling the data with 8 bit length data WORD Specifies filling the data with 16 bit length data LONG Specifies filling the data with 32 bit length data ASCII Specifies filling the data with ASCII character string data Description The FILL command fills the specified memory area with any data Example gt FILL 2000 2FFF 23 161 CHAPTER 5 Memory Register Operation Commands 5 10 MOVE The MOVE command transfers data from the specified memory area to the specified transfer destination E Debugger Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 De
204. the current set point count and state then delete the unnecessary points and set the point again 41405 Invalid point number Explanation Cannot find the specified point number If the invalid point number is specified e g deleting event point this message appears Operator response Please check the point number EA141S The same address is set Explanation It is duplicate that the function is set at one address For example the same address is specified to the multiple levels on each sequencer this message appears Operator response Please check the current set point count and state then delete the unnecessary points and set the point again EA142S Invalid break condition Explanation The data break condition is not set with MB2198 emulator for FR Operator response Please check the current set point count and state then delete the unnecessary points and set the point again 284 APPENDIX B Error Message for Debuggers 41435 No supported function with this device Explanation No supported function with this device was specified Operator response This message appears when the evaluation chip or the emulator does not have the specified function Please see the hardware manual of the product used or SOFTUNE Workbench Command Reference Manual based on MBXXXXXX in the error message EA144S Please use the RAM checker function with an USB device Explanation The RAM Checker cannot be
205. tput data as character codes Up to 4096 port addresses can be simulated gt SET OUTPORT 0 1 DAT gt SHOW OUTPORT address bit pattern size output 0000 003F byte 01 DAT 0040 OOFF ascii STERMINAL 29 CHAPTER 1 Environment Setup Commands 1 24 SHOW OUTPORT The SHOW OUTPORT command displays the data set by the SET OUTPORT command E Debugger Ema e Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 pee B Format SHOW OUTPORT Description The SHOW OUTPORT command displays the data set by the SET OUTPORT command Example gt SHOW OUTPORT address bit pattern size output 0000 003F byte 001 DAT 0040 OOFF ascii STERMINAL 30 CHAPTER 1 Environment Setup Commands 1 25 CANCEL OUTPORT The CANCEL OUTPORT command cancels the simulation of the specified port address E Debugger Ema 5 Emulator MB2141 MB2146 09 09A 09B MB2146 08 MB2146 07 E Format CANCEL OUTPORT port address Parameter port address Specify the port address Command qualifier ALL Cancels simulation of port set by SET OUTPORT command Description The CANCEL OUTPORT command cancels the simulation of the specified port address Example gt CANCEL OUTPORT ALL 31 CHAPTER 1 Environment Setup Commands 1 26 SET INTERRUPT The SET INTERRUPT command sets interrupt generation condition
206. tted the entire range is displayed number of columns Specifies a column position for a coverage rate number of characters from the beginning of a line When this parameter is omitted the number of columns is 40 Command qualifiers STATUS Displays enabled disabled state of coverage measurement function and coverage measurement area TOTAL Displays coverage rate in entire specified measurement range GENERAL default when omitted Displays result of coverage measurement in 16 addresses DETAIL Displays result of coverage measurement in an addresses SOURCE Displays a coverage measurement result in source lines INSTRUCTION Displays a coverage measurement result in machine instructions When SET SOURCE is set to the mode to add a source line and the memory location corresponds to the source line this command also displays that source line MODULE Displays the coverage rate of the load module Description The SHOW COVERAGE command displays the result of coverage measurement in a specified measurement range If a command qualifier is omitted the operation assumes a previous qualifier is specified 114 CHAPTER 4 Program Execution Analysis Commands If GENERAL is specified the access count will be displayed as follows No access 1toF Count of addresses accessed out of 16 addresses 16 addresses accessed If DETAIL is specified the access count will be displayed as follows No access
207. uffer full Explanation This message is displayed when a break is caused by a trace buffer full Address indicates the address of the next instruction to be executed where execution was suspended Break at address by alignment error break code Explanation This message is displayed when a break is caused by a code fetch alignment error Address indicates the address of the next instruction to be executed where execution was suspended Break at address by alignment error break data Explanation This message is displayed when a break is caused by a data access alignment error Address indicates the address of the next instruction to be executed where execution was suspended Break at address by external trigger break Explanation This message is displayed when a break is caused by the input of an external signal to the TRIG pin of the emulator Address indicates the address of the next instruction to be executed where execution was suspended 29 APPENDIX C Execution Suspension Messages List Break at address by trace lost break Explanation This message is displayed when a break is caused by the trace data loss Address indicates the address of the next instruction to be executed where execution was suspended Break at address by data break at access address Explanation This message is displayed when a break is caused by a data break point Address indicates the address of the next instru
208. ult decimal number Specify the event number D 1 to D 8 to be set as a trigger factor pass count default decimal number Specify the pass count D 1 to D 16777215 of the event specified as a condition When this parameter is omitted 1 is assumed 86 CHAPTER 3 Break Event Control Command waiting time default decimal number Sets the waiting time D 1 to D 16777215 after entering the level Elapse of the set waiting time will be a trigger The unit is set to either 1 us or 100 ns by the SET TIMERSCALE command level number default decimal number Specify the identification number 1 or 2 of the latch function branch level number default decimal number Specify the level number to which a branch is made when a condition holds If this parameter is omitted the next level will be set If the level number is given 0 the end is assumed to be specified delay counter starts branch source level number default decimal number Specify the level number indicating the branch source and branch destination of a condition for starting the latch function Command qualifiers ENABLETRACE default when omitted Enables trace sampling This qualifier can be used only when EVENT or TIMER is specified DISABLETRACE default when omitted Disables trace sampling This qualifier can be used only when EVENT or TIMER is specified Description The SET SEQUENCE command sets a sequencer The sequencer has 8 levels each o
209. und Create a directory Explanation The target object file writing directory is not specified Operator response Click the OK button to create a directory E4210W Please specify the project name Explanation The project name is not specified Operator response Enter the project name E4211W Please specify the project directory Explanation The project directory is not specified Operator response Enter the project directory name E4212W Please specify the target file name Explanation The target file name is not specified Operator response Enter the target file name 24 APPENDIX A Manager Related Messages E4213W Includes characters that cannot be designated V 2 lt gt Explanation These characters cannot be used Operator response Change the name E4214W Includes characters that cannot be designated lt gt Explanation These characters cannot be used Operator response Change the name E4215W Includes characters that cannot be designated lt gt Explanation These characters cannot be used Operator response Change the name E4220W Please specify the target file name Explanation The target file name is not specified Operator response Enter the target file name E4221W Directory not found Do you create this directory Explanation The directory is not found Operator response Enter the directory name E4222W U
210. up Sets a return value displayed NODISPLAY Sets a return value not displayed Description The CALL command executes the specified function and displays a return value However if the return value is structure union or class type an error occurs The CALL command can be used only when the program coded in C language is compiled with debug information If a break point is reached when a function is being executed by the CALL command the program breaks at that position 54 Example CHAPTER 2 Program Execution Commands CALL command execution is continued by subsequently restarting program execution with the GO command To suspend CALL command execution use the CLEAR CALL command The CALL command cannot be nested The register and flag values before the function is called are retained These values are restored to the original values after the function has been executed The argument of the specified function is evaluated and executed in dummy argument type If the count of specified actual arguments is greater than that of dummy arguments extra actual arguments are evaluated in int type The return value is set in built in variable CALL The CALL command sets a break point at the address indicated by the current program counter and sets the return address at the address so that control will return to the break point The command then calls the function For this reason if the function executed
211. y Or processing is stopped because an exception in detailed information is detected Operator response RAM checker overflow Log data cannot be obtained at the specified interval due to the effect of other applications etc and so logging by the RAM Checker is stopped During logging do not perform operation that burdens the machine No detailed information is displayed or ERRID is displayed Check whether MCU operates normally Reset and restart the emulator If the problem occurs frequently the emulator hardware MCU or target system may be down F94048 Invalid emulator hardware monitor program version old Explanation The monitor program version in the emulator hardware is old so the system cannot be normally operated Operator response Use the monitor loader program to load the monitor attached to this product For details refer to 1 1 1 Version Information in SOFTUNE Workbench Installation Manual Release Note MB2100 01 Enable the automatic loading of the monitor program with the setup wizard APPENDIX B Error Message for Debuggers F9405S A bus error occurs To issue reset is necessary for restore Explanation When the emulator accessed the memory the bus error occurred Operator response As the bus error occurred the emulator cannot control CPU Please issue reset to restore F9406S Invalid either chip classification in project or chip on board Explanation The CPU on board is different
212. y be denied E4134W File cannot be create Explanation The file cannot be created Operator response Permission to access the file or directory may be denied E4135W File cannot be delete Explanation The file cannot be deleted Operator response Permission to access the file or directory may be denied E4136W File cannot be change name Explanation The file cannot be renamed Operator response Permission to access the file or directory may be denied E4137W File cannot be copied Explanation The file cannot be copied Operator response Permission to access the file or directory may be denied 24 APPENDIX A Manager Related Messages EA138W File not found Explanation The file cannot be found Operator response Check the file name E4140W File not found Do you create this file Explanation The file cannot be found Operator response To create a new file click the OK button E4142W A sharing violation occurred while accessing Explanation The same file is being used by another process Operator response Terminate the other program In some rare cases the file may remain in use even after the program is terminated In this case reboot Windows E4143W A locking violation occurred while accessing Explanation The same file is being used by another process Operator response Terminate the other program In some rare cases the file may remain i

Download Pdf Manuals

image

Related Search

CM25 00323 5E

Related Contents

DA-682 Series WinXP Embedded User`s Manual  MegaRAID SAS Device Driver Installation User Guide  Vodafone R203-Z Mobile Wi-Fi User Guide  Wireless Mirroring Adapter EHDMC10      取扱説明書ダウンロード  Nokia 6235 Manual do Usuário  

Copyright © All rights reserved.
Failed to retrieve file