Dragon12-Light Rev A and Rev B Board:
Download
Dragon12-Light software and documentation
Extract the zip file to any folder. For the simplicity, you can extract
it into C:\
The c:\Dragon12_Light\asmchanges.txt
is an important file to read and it covers the history of AsmIDE’s
upgrades.
The user's manual can be found in
c:\Dragon12_Light\document.
The software tool AsmIDE including the assembler (AS12.exe) is used with Freescale D-Bug12 monitor. All sample programs are tested under the D-Bug12 monitor. If you plan to use the CodeWarrior IDE with Freescale serial monitor, or you have been using the MiniIDE, you can ignore the AsmIDE and AS12.exe, but all sample programs can run under the MiniIDE or can be converted to run under the CodeWarrior.
Verify the type of monitor firmware on your Dragon12-Light board:
Apply power to your Dragon12-Light board
either by an AC adapter or a USB cable. The board will automatically
select the power source.
Observe the 8 port B LED indicators.
If your board is pre-installed
with Freescale D-Bug12 monitor firmware, the 8 port B LED indicators will flash
sequentially from
left to right and the speaker will chirp once when the
board is powered up. If the chirp is too soft you can remove the label sticker
on the speaker to increase volume.
If
you ordered the board with Freescale serial monitor firmware for the CodeWarrior, it would be
pre-installed with the serial monitor and a factory test program. The state of the left switch of the 2-position DIP switch (SW7) is
tested by the serial monitor for selecting RUN or LOAD mode during power up or
reset, and the 8 port B LED indicators will flash sequentially from right to left and the speaker will chirp once to indicate that the serial monitor
firmware
is functioning.
For more information please see this video:
http://www.youtube.com/watch?v=gmwBMWII0p8&feature=related
If the left switch is placed in the "LOAD"
mode (in the "low" position) the monitor will wait for a command from
the host PC.
If the left switch is placed in
the "RUN" mode (in the "up" position) the 8 port B LED indicators will
flash sequentially again from left to right to indicate that the program execution is diverted
to the user code.
The
CodeWarrior communicates with Freescale serial
monitor firmware only in LOAD mode and so in order to interface with the CodeWarrior you have to
place the left switch
in the “low “ position. The 8 port B
LED indicators will flash sequentially from right to left and
the speaker will chirp once
when the board is
powered up.
If
your board does not communicate with CodeWarrior, the first thing
you should check is that if the left DIP switch of the SW7 is in the
LOAD mode ( in the "low" position).
If the Freescale monitor firmware is not installed or is erased by a BDM, the 8 port B LED indicators will not flash sequentially during power up or reset.
The Dragon12-Light board comes with a built-in USB interface based on the FT231XS. The driver for the FT231XS will be installed automatically by Win10.
Verify USB driver:
Before connecting the
Dragon12-Light board to your PC's USB port for the first time, make
sure that the AC adapter is unplugged. You do not need the AC adapter since the
board can be powered by a USB port.
Go to the FT232RL driver
verification page for operating procedures:
http://www.evbplus.com/TinyUSB_9s12/ft232rl.html.
The FT231XS driver verification is
the same.
Once you have verified that the USB
driver is properly installed, you may
invoke the IDE (CodeWarrior or AsmIDE).
If you
are going to use CodeWarrior IDE and have not installed it you need to
Download and configure CodeWarrior
http://www.evbplus.com/Code_Warrior_hcs12.html
If the
AsmIDE does not communicate with your Dragon12-Light board then you need to check if
the COM port number that is assigned by the AsmIDE matches the
USB-to-Serial COM port number that is
assigned by Windows' Device Manager. The Device Manager assigns the
USB-to-Serial COM port number randomly and it does not know which COM port
number that AsmIDE is going to use.
In order to find the USB-to-Serial COM port number
that is assigned by Device Manager, you can click through
"Control Panel -> Systems -> Hardware -> Device Manager -> Ports".
The
USB-to-Serial COM port number will appear.
For setting the COM port of the AsmIDE to match that USB-to-Serial COM port
number, you can click through "View-> Option->Terminal Window Options" menu,
then select the correct COM port from COM1 to COM4.
In order to establish a reliable USB communication, always connect the Dragon12-Light board to your PC's USB port first before invoking the IDE (CodeWarrior or AsmIDE), otherwise the IDE may not be able to communicate with the Dragon board. During a debugging session, if you accidentally unplug the USB cable from the Dragon board, you need to re-establish the USB communication. The IDE will not recognize the Dragon board again if you just simply plug back the USB cable.
To re-establish the USB communication you need to exit the IDE, then re-invoke it to re-establish its communication with the Dragon board. If this does not work, you need to restart your PC. If the restart does not solve the problem, the board may be defective or the D-Bug12 monitor may be corrupted.
Download the MC9S12DG256 Device User Guide
http://www.datasheetcatalog.org/datasheet/motorola/9S12DT256DGV3.pdf
Download the D-Bug12 Reference
Guide, DB12RG4.pdf
http://eecs.vanderbilt.edu/courses/ee276/Fall2006_downloads/Doc/DB12RG4.pdf
Download the AN2548.pdf
(serial monitor)
http://www.freescale.com/files/microcontrollers/doc/app_note/AN2548.pdf
Download the AN2153.pdf
(serial bootloader)
http://www.freescale.com/files/microcontrollers/doc/app_note/AN2153.pdf