User`s manual

You first must set the target speed with the choice 1). After entering the first choice, you
will be prompted to enter the target speed. It’s the crystal frequency, not the bus speed
that is boosted up by the on-chip PLL. After a reset, before the PLL is enabled, the target
MC9S12DG256 is running from the crystal frequency, not the PLL frequency. Enter
16000 for the target speed. After the correct speed is entered, the master will try to
communicate with the target board. If it‘s not successful, enter choice 2) to reset the target
board.
Can't Communicate With Target CPU
1.) Set Target Speed (16000 KHz)
2.) Reset Target
3.) Reattempt Communication
4.) Erase & Unsecure
? 1
Enter Target Crystal Frequency (kHz): 16000
Can't Communicate With Target CPU
1.) Set Target Speed (16000 KHz)
2.) Reset Target
3.) Reattempt Communication
4.) Erase & Unsecure
? 2
When the communication is established, you will see the following sign-on message:
D-Bug12 v4.0.0b32
Copyright 1996 - 2005 Freescale Semiconductor
For Commands type "Help"
S>
You will notice that the debug prompt is “S>” in the POD mode, not just a “>” in the EVB
mode. The S> tells that this is the POD mode and the MC9S12DG256 on target (slave
board) is stopped. Sometimes the prompt could be a R> that means the target MCU is
running. If you see the “R>”, just type “reset” then <Enter> to reset the target and it will
come back to the “S>” prompt.
R>Reset <Enter>
S>
Note: The initial communication in POD mode does not always work smoothly and
sometimes the PC screen would only display an incomplete sign-on message. You need
to re-start it all over again by pressing reset buttons on both master board and target
board, then press the Enter key on PC keyboard. You cannot go to the next step until PC
screen shows the prompts>’.
In order to program the flash memory, you have to erase it by using the FBULK command.
S>fbulk <Enter>
S>
When the prompt “s>” returns, the FBULK command has already erased all of the flash
memory contents of the target MC9S12DG256 including the bootloader. If it returns with a
messageFlash or EEPROM Failed To Erase” the MC9S12DG256 is defective.
19