background image

5. Troubleshooting 

Page 36 

5

3.  Make sure you are working with the correct hardware model. To view/change the 

hardware model in use, choose 

inDART-HCS12 > MCU Configuration 

from the 

CodeWarrior HC(S)12 debugger’s main menu. 

4.  If the 

inDART-HCS12 

menu is not present in the CodeWarrior HC(S)12 debugger’s 

main menu, this is because the target has not been recognized by CodeWarrior (“No 
link to Target” appears in the status bar). In this case, from the 

GDI

 menu, choose 

MCU 

Configuration

 and verify that the hardware code is set correctly. 

Stepping Execution 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 provided free to all customers. For technical assistance, 
documentation and information about products and services, please refer to your local 
SofTec Microsystems partner. 

SofTec Microsystems offers its customers a free technical support service at 

[email protected]

. Before getting in contact with us, we advise you to check that 

you are working with the latest version of the PK-HCS12E128 system software (upgrades 
are available free of charge at 

http://www.softecmicro.com

). Additional resources can be 

found on our HCS12 online discussion forum.

Содержание PK-HCS12E128

Страница 1: ......

Страница 2: ...PK HCS12E128 Starter Kit for Motorola MC9S12E128 User s Manual Copyright 2003 SofTec Microsystems DC00713...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 11: ......

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 19: ......

Страница 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...

Страница 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...

Страница 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...

Страница 23: ......

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 35: ......

Страница 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...

Страница 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...

Страница 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...

Страница 39: ......

Страница 40: ......

Страница 41: ......

Страница 42: ......

Отзывы: