background image

 

DEBUG MODE 

Debug Mode supports application development and debug.  Debug mode is available to the 
user through the factory loaded serial monitor, integrated USB-BDM on the PBMCUSLK or an 
external HC(S)12 BDM cable.  Refer to the PBMCUSLK User Guide for details on using the 
integrated USB-BDM.   

The steps below describe the steps to put a device in debug mode using the serial cable OR 
BDM options. 

1.  Install and launch the latest CodeWarrior Development Studio.   

2. Configure Application specific components.  Set jumpers, connect auxiliary equipment to 

the module, connect COM port, and launch supporting host communication software, as 
needed by the application. 

A DB9 serial communications (COM) cable supports the use of serial programming.  The steps 
below describe using a serial DB9 cable with CodeWarrior for programming and debug. 

i. 

Power-On the device. 

ii. 

Connect COM port serial communication cable between application module and host 
PC.   

iii. 

Press and hold simultaneously SW1 and RESET push buttons. 

iv. 

Continue holding SW1 while releasing RESET.  Wait 3 seconds, and then release 
SW1.  The serial monitor is now waiting for the development software to establish 
DEBUG communication. 

v. 

Verify that your CodeWarrior debug target is HCS12Serial Monitor. 

A 6-pin BDM interface header (BDM_PORT) supports the use of an external HC(S)12 BDM 
cable.  The steps below describe using an external HC(S)12 BDM cable to access DEBUG 
mode. 

i. 

Connect the HC(S)12 BDM cable to the BDM_PORT header. 

ii. 

Connect the supplied USB cable between an available USB port on the host PC and 
the USB connector on the board.  

iii. 

Verify that your CodeWarrior debug target is “P&E MultiLink/Cyclone” 

(or as required 

by your hardware selection). 

3.   Compile project and execute debugger in CodeWarrior.  The development software will 

establish the DEBUG communication. 

NOTE 

Upon hardware RESET, the device will default to RUN mode.   You will need to do parts of the 

above steps to get the hardware back in to DEBUG mode. 

 
 

                                                                                                                                                                                                                                
8                                                                                                                                                            Freescale Semiconductor 
 

Summary of Contents for APS12DT256SLK

Page 1: ...ductor Inc 2006 All rights reserved _______________________________________________________________________ APPLICATION MODULE STUDENT LEARNING KIT FEATURING FREESCALE MC9S12DT256 For use with the fol...

Page 2: ...9 SOFTWARE DEVELOPMENT 9 MEMORY MAP 9 BDM_PORT HEADER 10 EXPANDED MODE OPERATION 10 MODE 10 POWER 10 POWER SELECT 11 PWR_SEL 11 RESET SWITCH 11 LOW VOLTAGE RESET 12 TIMING 12 COMMUNICATIONS 12 RS 232...

Page 3: ...ORT Connector 14 Figure 7 Connector J1 17 TABLE OF TABLES Table 1 DT256 Memory Map 9 Table 2 COM Connections 12 Table 3 ATD Reference Voltage 14 Table 4 User I O 16 Table 5 USER Option Header 16 Revis...

Page 4: ...atory c In a domestic environment this product may cause radio interference in which case the user may be required to take adequate prevention measures d Attaching additional wiring to this product or...

Page 5: ...Provided 1 DIP Switch 4 pos MC9S12DT256 MCU 80 LQFP 3 Push Button Switches 2 User RESET 256 KB Flash EEPROM 5 LED Indicators 4 User 5V 4KB EEPROM Jumpers 12 KB RAM USER_EN SAE J1850 Byte Data Link Con...

Page 6: ...operation APS12DT256_DEMO zip CodeWarrior Project to support APS12DT256PG The following reference documents are available online for using the application module in conjunction with the Freescale Mic...

Page 7: ...debug of application code See the related sections below for quickly starting the board in the desired operation mode RUN MODE Run mode allows user application to execute when power is applied to the...

Page 8: ...etween application module and host PC iii Press and hold simultaneously SW1 and RESET push buttons iv Continue holding SW1 while releasing RESET Wait 3 seconds and then release SW1 The serial monitor...

Page 9: ...tely out of reset Refer to the Device User Guide for the specific MCU installed for further details Table 1 DT256 Memory Map 0x0000 0x03FF Registers 1K bytes Mappable to any 2K block in the first 32K...

Page 10: ...ingle chip operation The MODE option header allows the user to configure the board for expanded bus operation In default configuration this header is not installed in default configurations Figure 2 M...

Page 11: ...ough connector J1 Use caution when configuring this selection header Applying power to the module through the on board regulator and connector J1 at the same time may cause damage to the module PWR_SE...

Page 12: ...e RS 232 channel is configured as a DCE device This allows a straight through cable between the module and the host PC Also the MCU provides 2 additional CAN ports 2 SPI ports and 1IIC port Access to...

Page 13: ...nnector A standard 9 pin Dsub connectors provide external connection for COM1 The Dsub shell is connected to board ground through a ferrite bead The ferrite bead provides noise isolation on the RS 232...

Page 14: ...ple Either or both references may be isolated to provide alternate ATD input references A test point via on each signal labeled VRH or VRL provides an easy way to attach an alternate reference voltage...

Page 15: ...nable each switch LED s The APS12DT256SLK target board provides 4 green LEDs for output indication Each LED is an active low output A current limit resistor prevents excessive diode current Writing a...

Page 16: ...y User I O includes 4 green LEDs 2 push button switches one 4 position DIP switch a Light Sensor and a potentiometer Installing a shunt enables the associated option Removing a shunt disables the asso...

Page 17: ...01 AN01 PM5 TXCN2 TXCAN0 TXCAN4 SCK0 21 22 PAD02 AN02 PM3 TXCAN1 TXCAN0 SS0 23 24 PAD03 AN03 PA7 ADDR15 DATA15 25 26 PJ7 KWJ7 TXCAN4 SCL0 PA6 ADDR14 DATA14 27 28 PJ6 KWJ6 RXCAN4 SDA0 PA5 ADDR13 DATA13...

Page 18: ...products herein Freescale Semiconductor makes no warranty representation or guarantee regarding the suitability of its products for any particular purpose nor does Freescale Semiconductor assume any...

Reviews: