Dragon12-Plus-USB Board:

Download Dragon12-Plus-USB software and documentation
After download is done, extract the zip file and then click on setup.bat.

The c:\Dragon12P\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:\Dragon12P\document.

If you are interested in auto-starting your code every time when the board is turned on, please read the files named readme_EEPROM.pdf and readme_flash.pdf . They can be found at c:\Dragon12P\EEPROM_programming and c:\Dragon12P\flash_programming, respectively.

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 monitor type on your Dragon12-Plus-USB board:

  1. Plug in the AC adapter that comes with your package and observe the LEDs. 
     

  2. If your board is pre-installed with Freescale D-Bug12 monitor firmware, the 8 portB LED indicators will light up 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 sticker on the label speaker to increase the volume.
     

  3. If you ordered the board with Freescale serial monitor firmware for 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 portB LED indicators will light up from right to left and the speaker will chirp once to indicate that the serial monitor 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 a PC.
    If the left switch is placed in the "RUN" mode (in the "up" position) the 8 port B LED indicators will light up again from left to right to indicate that the program execution is diverted to the user code.

    The CodeWarrior communicates with Freescale serial monitor 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 portB LED indicators will light up 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).
     

  4. If the Freescale monitor firmware is not installed or is erased by a BDM, the 8 port B LED indicators will not light up sequentially during power up or reset.

The Dragon12-Plus-USB board comes with a built-in USB interface based on the FT232RL. The driver for the FT232RL must be installed properly before using the Dragon12-Plus-USB board.

Install and verify USB driver:

  1. Before connecting the Dragon12-Plus-USB board to your PC's USB port for the first time, make sure that the AC adapter is unplugged. You do not need to turn on the board to install USB driver.
     

  2. Go to the FT232RL driver installation and verification page for operating procedures: http://www.evbplus.com/TinyUSB_9s12/ft232rl.html.
     

  3. Once you have verified that the USB driver is properly installed, you may now turn on your Dragon12-Plus-USB board.  Invoke the CodeWarrior if your board is pre-loaded with Freescale serial monitor, otherwise invoke the AsmIDE.
     

  4. For using CodeWarrior with Freescale serial monitor you need to Download and configure CodeWarrior if you have not installed CodeWarrior in your PC
    http://www.evbplus.com/Code_Warrior_hcs12.html

     

  5. If the AsmIDE does not communicate with your Dragon12-Plus-USB 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 (In Windows Vista, you left click on Start, right click on Computer, left click on propriety, then Device Manager and then Continue).

    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 COM8.

In order to establish a reliable USB communication, always connect the Dragon12-Plus-USB board to your PC's USB port first before invoking the IDE (CodeWarrior or AsmIDE), otherwise the IDE will 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 and disconnect the USB cable from the Dragon board, wait for a few seconds before re-plugging in the USB cable, then wait for a few more seconds and allow the USB communication to be re-established with the Dragon board. After re-establishing the USB communication you can invoke the IDE again and the IDE will start to communicate with the Dragon board. If this does not work, you need to restart your PC.

If restarting the PC does not solve the problem, you may need to re-install the USB driver.

 

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