ix
2.5.7 Measuring Performance ............................................................................................................ 266
2.5.7.1 Performance Measurement Procedures ................................................................................. 267
2.5.7.2 Display Performance Measurement Data ............................................................................... 268
2.5.8 Execution Time Measurement ................................................................................................... 269
2.5.9 Power-On Debugging ................................................................................................................ 271
2.6 Emulator Debugger (MB2100-01) ................................................................................................... 272
2.6.1 Starting debugging .................................................................................................................... 273
2.6.1.1 Operating Environments of the Target ................................................................................... 274
2.6.1.2 Security ................................................................................................................................... 276
2.6.2 Ending debugging ...................................................................................................................... 277
2.6.3 Efficiently Executing Debugging ................................................................................................ 278
2.6.3.1 Increasing Communication Speed during Debugging ............................................................ 279
2.6.3.2 Switching Debug Function ...................................................................................................... 280
2.6.4 Executing Program .................................................................................................................... 281
2.6.4.1 Setting/Release of Debug Functions ...................................................................................... 282
2.6.4.2 Monitoring ............................................................................................................................... 284
2.6.4.3 Power-on Debug ..................................................................................................................... 285
2.6.4.4 Notes on Commands for Executing Program ......................................................................... 287
2.6.5 To Access the Flash Memory .................................................................................................... 289
2.6.6 To Interrupt the Program Execution [Break] .............................................................................. 293
2.6.6.1 Code Break (Hardware) .......................................................................................................... 294
2.6.6.2 Code Break (Software) ........................................................................................................... 296
2.6.6.3 Data Break .............................................................................................................................. 297
2.6.6.4 Forced Break .......................................................................................................................... 298
2.6.6.5 Data Watch Break .................................................................................................................. 299
2.6.6.6 Sequencer .............................................................................................................................. 301
2.6.7 Measuring the Program Execution Cycle Count ........................................................................ 304
2.6.8 Measuring Event-to-Event Execution Cycle Count [Performance Measurement] ..................... 306
2.6.8.1 Measuring Performance ......................................................................................................... 308
2.6.9 Viewing Program Execution History [Trace] .............................................................................. 310
2.6.9.1 Displaying Trace Data ............................................................................................................ 312
2.6.9.2 Trace Data Display Examples (RAW Data) ............................................................................ 314
2.6.9.3 Trace Data Display Example (Instruction) .............................................................................. 315
2.6.9.4 Trace Data Display Example (Source) ................................................................................... 316
2.6.9.5 Saving Trace Data .................................................................................................................. 317
2.6.9.6 Searching for Trace Data ....................................................................................................... 318
2.6.10 How to Display the Output Message from User Program to the Debugger ............................... 319
2.6.11 Checking Debugger Information ................................................................................................ 321
2.7 Monitor Debugger ........................................................................................................................... 323
2.7.1 Resources Used by Monitor Program ....................................................................................... 324
2.7.2 Break ......................................................................................................................................... 325
2.7.2.1 Software Break ....................................................................................................................... 326
2.7.2.2 Forced Break .......................................................................................................................... 327
INDEX................................................................................................................................... 329