beautypg.com

Renesas M16C FAMILY User Manual

Page 5

background image

Table of Content

4.2.Other Functions ............................................................................................................................................48

5.

Using the KD ..................................................................................................................................................49

5.1 Using the KD.................................................................................................................................................49

5.1.1 Before Starting the KD ..........................................................................................................................49

5.1.2 Starting the KD......................................................................................................................................50

5.1.3 Program Download ...............................................................................................................................55

5.1.4 Program Execution ...............................................................................................................................56

5.1.5 Program Stop........................................................................................................................................56

5.1.6 Program Step Execution.......................................................................................................................56

5.1.7 Software Break Method ........................................................................................................................57

5.1.8 Reset Execution....................................................................................................................................57

5.1.9 KD Completion......................................................................................................................................57

5.1.10 If a Communication Error Occurs .......................................................................................................58

5.1.11 Error Except a Communication Error Occurs.....................................................................................58

5.1.12 Operation Method ...............................................................................................................................58

5.2 KD Limitations...............................................................................................................................................59

5.2.1 Limitations on Special Page Vector......................................................................................................59

5.2.2 A limitation item about the C language.................................................................................................60

5.2.3 Limitations on Memory Extension.........................................................................................................61

5.2.4 Precautions on Internal Reserved Area Expansion Bit........................................................................61

5.2.5 Limitations on Stop and Wait Modes....................................................................................................62

5.2.6 Realtime Capability of the User Program.............................................................................................62

5.3 Memory Map Limitations ..............................................................................................................................63

5.4 Peripheral Function Related Limitations ......................................................................................................66

5.5 FoUSB Debugger Principle..........................................................................................................................66

5.5.1 Communication Function with FoUSB .................................................................................................67

5.5.2 Command Execution ............................................................................................................................67

5.5.3 The difference from an actual CPU operation......................................................................................68

6.

Troubleshooting..............................................................................................................................................69

6.1 FoUSB cannot communicate with the Target MCU Why?..........................................................................69

6.2 The MCU cannot enter standerd serial I/O why? ........................................................................................69

6.3 The MCU cannot be programmed using FoUSB Why? .............................................................................69

6.4 FoUSB cannot operate Why? ......................................................................................................................69

6.4.1 Compulsive download procedure of firmware......................................................................................71

6.5 Can FoUSB information be transmitted to KD?...........................................................................................74

6.6 A communication error occurs when the KD starts. What is the cause of this problem?...........................74

ii