background image

4. Debugging Features 

Page 26 

4

 

The 

Set Target 

Dialog Box 

3.  A dialog box will appear asking you to locate the GDI DLL file needed to interface with 

PK-HCS12E128. Select the 

SofTec_BDM12.dll

 file located into the 

\Program 

Files\Metrowerks\CodeWarrior CW12\prog\

 directory. 

 

 

The 

GDI Setup 

Dialog Box 

4.  The 

MCU Configuration

 dialog box will appear allowing you to select the PK-

HCS12E128 board as the hardware debugger. 

Summary of Contents for PK-HCS12E128

Page 1: ......

Page 2: ...PK HCS12E128 Starter Kit for Motorola MC9S12E128 User s Manual Copyright 2003 SofTec Microsystems DC00713...

Page 3: ...ccurate and reliable However SofTec Microsystems assumes no responsibility for its use nor for any infringements of rights of third parties which may result from its use SOFTEC MICROSYSTEMS WILL NOT B...

Page 4: ...Software 12 Installing Metrowerks CodeWarrior IDE 12 Installing SofTec Microsystems Additional Components 12 Installing the Hardware 13 Application Tutorial 13 Additional Examples 17 3 Hardware Featu...

Page 5: ...ng when Execution is Stopped 29 Real Time Memory Update 29 PLL Usage 29 Hardware Breakpoints and Software Breakpoints 30 Advanced Debugging Features 30 DataBlaze Programming Utility 31 DataBlaze Notes...

Page 6: ...SPI An Inter IC Bus IIC Three 4 channel 16 bit timer module TIM 6 channel 8 bit Pulse Width Modulator PWM 6 channel Pulse Width Modulator with Fault Protection PMF 16 channel 10 bit Analog to Digital...

Page 7: ...ws you to wire your own small application PK HCS12E128 offers you the following benefits Real time code execution In circuit debugging In system programming and debugging through a BDM compatible inte...

Page 8: ...following hardware features 1 A USB to BDM Interface section It contains the circuitry needed to electrically and logically translate BDM like commands sent by the host PC through the USB cable to th...

Page 9: ...on CodeWarrior Development Studio for HC S 12 is a powerful and easy to use tool suite designed to increase your software development productivity Its Integrated Development Environment IDE provides u...

Page 10: ...is documentation covers the basic setup and operation of the CodeWarrior IDE but does not cover all of its functions For further information please refer to the CodeWarrior on line help and on line do...

Page 11: ......

Page 12: ...poster 6 This user s manual Host System Requirements The PK HCS12E128 in circuit debugger is controlled by an Integrated Development Environment running under Windows CodeWarrior HC S 12 The followin...

Page 13: ...0 or above Installing Metrowerks CodeWarrior IDE To install the CodeWarrior IDE insert the CodeWarrior CD ROM into your computer s CD ROM drive A startup window will automatically appear Follow the on...

Page 14: ...cable into the USB connector on the PK HCS12E128 board The green POWER LED on the instrument should turn on Windows will automatically recognize the instrument and will load the appropriate USB drive...

Page 15: ...rrior HC S 12 IDE by selecting Start Programs Metrowerks CodeWarrior CW12 CodeWarrior IDE The CodeWarrior HC S 12 IDE will open 3 From the main menu choose File Open Select the adc mcp workspace file...

Page 16: ...al Page 15 2 The Example s Source Code 5 From the main menu choose Project Debug This will compile the source code generate an executable file and download it to the PK HCS12E128 board 6 A new debugge...

Page 17: ...executed in real time By rotating the potentiometer on the PK HCS12E128 board you affect the results of the A D conversion and the value of each conversion is displayed on the LEDs 8 From the main men...

Page 18: ...rom where it was previously stopped The application will stop at the breakpoint location as soon as the next A D conversion is done 12 Issue a Single Step command Run Single Step The new value of the...

Page 19: ......

Page 20: ...This means that all microcontroller s peripherals timers A D converters I O pins etc are not reconstructed or simulated by an external device but are the very same target microcontroller s peripherals...

Page 21: ...s the power supply for the board To protect the USB bus against short circuits that may occur during experiments the power supply circuitry features a 200 mA auto restore fuse Note even though USB spe...

Page 22: ...microcontroller s RESET pin A potentiometer connected to the microcontroller s PAD00 pin Please note that VRH and VRL the reference voltages for the analog to digital converter are connected to 5 V an...

Page 23: ......

Page 24: ...your own application by including a project wizard specific for HCS12 based SofTec Microsystems boards To create a new PK HCS12E128 project 1 From the main menu select File New 2 A dialog box will ap...

Page 25: ...board is based on the SofTec Microsystems inDART debugging engine Starting your first Debugging Session The first time you enter a debugging session by selecting Project Debug from the CodeWarrior s m...

Page 26: ...3 0 make sure that the target command line option specifies the GDI target interface To do so a Open your existing project s settings dialog box b In the Target Settings Panels section click on the B...

Page 27: ...the GDI DLL file needed to interface with PK HCS12E128 Select the SofTec_BDM12 dll file located into the Program Files Metrowerks CodeWarrior CW12 prog directory The GDI Setup Dialog Box 4 The MCU Con...

Page 28: ...d complex watchpoints and a trace buffer All these features are implemented by taking advantage of the target microcontroller s debug peripheral Note the number of available hardware breakpoints depen...

Page 29: ...a debug session the device is always unsecured regardless of other user settings Reading Peripheral Status Care must be taken when reading some peripheral s status data registers since a reading oper...

Page 30: ...cause the COP and RTI peripherals to stop when you stop program execution the RSBCK in the COPCTL register must have been previously set Real Time Memory Update During program execution it is possibl...

Page 31: ...g peripheral To set a software breakpoints there are two possibilities you can set a software breakpoint in RAM or in FLASH In both cases an unlimited number of software breakpoints can be set To set...

Page 32: ...ng Blank check erase program verify read operations Project handling One button multiple operations programming Auto feature Serial numbering Note due to the evaluation purposes of the PK HCS12E128 st...

Page 33: ...tion is programmed with 0xFE The Blank Check operation doesn t blank check the FLASH Options Security Byte location The Program operation automatically verifies the programmed data by reading back the...

Page 34: ...the FLASH Options Security Byte location The bit 0 of this byte is always programmed to 0 so any attempt to program it to 1 will cause a verifying error In the Auto operation a Run option is availabl...

Page 35: ......

Page 36: ...tly installed on your system Unplugging and replugging the USB cable is of no use since Windows has marked the device as disabled As a consequence CodeWarrior cannot communicate with the PK HCS12E128...

Page 37: ...on is Slow When the Memory window is open step commands may execute slower since the Memory window contents need to be refreshed after every step Getting Technical Support Technical assistance is prov...

Page 38: ...ations Operating Voltage 4 75 to 5 0 V DC provided by the USB connection Power Consumption 200 mA max Dimensions 137 x 86 x 15 mm Weight 55 g Operating Temperature 0 C to 50 C Storage Temperature 20 C...

Page 39: ......

Page 40: ......

Page 41: ......

Page 42: ......

Reviews: