EVB+
|
|
|
|
|
USBDM-1-JS16
features:
Win 8.1 Installation instructions: ( For reference only, software version may be upgraded by the author from time to time) PGO has provided complete documentation on each of his USBDMs. http://usbdm.sourceforge.net/ Our USBDM-1 is pre-programmed with PGO's firmware version 4.10 for the HCS12. The installation is done total automatically. You don't even have to connect the USBDM.
The installation steps are as follows ( Do not plug in the USBDM-1 until
the step 3 ):
To verify the installation of the USBDM without CodeWarrior:
Operating instructions:
Programming application 1: Replacing D-Bug12 monitor with serial monitor using HCS12_FlashProgrammer: PGO has provided a cool utility program to turn
our USBDM-1 into a standalone programmer without invoking
the CodeWarrior. 1. Download and unzip the serial monitor 2. Connect your USBDM-1 to a PC USB port ( not a USB hub ) via the USB cable and connect it to the Dragon12 via the 6-pin ribbon cable as shown on the following pictures. ( Please note that it's connected to the header labeled with "BDM IN" ). The power LED on the Dragon12 should be lit. If the Dragon12 board keeps resetting itself ( the speaker keeps beeping and the 8 port B LEDs below the 7-segment LEDs keep cycling through ), you need to use the AC adapter that came with the package for the Dragon12 and remove the jumper from the J2 on the USBDM, so the Dragon12 will provide power to the USBDM.
The reason that the
Dragon12 board keeps resetting itself is that
the supply voltage provided by the USBDM dropped too much.
It mainly is caused by the resettable fuse on
the USBDM. You also need to make sure that
the USBDM is connected to a USB port ( rated at
500mA ), not a USB hub ( rated at 100mA ) and
your USB cable length is 6 feet maximum, no USB
extension cord is allowed)
On our newly manufactured USBDMs the trip current of the resettable fuse is rated higher so this problem should not occur any more.
3. Run the
HCS12_FlashProgrammer.exe from the folder C:\Program
Files\pgo\USBDM 4.8.0,
Notice that the USBDM is
detected above. The versions of the USBDM firmware and DLL are
also shown. They should be the same. The picture
shows version 4.8, but the latest version is V4.9. If the firmware version is 4.x, you can run PGO's bootloader.exe to upgrade it, but if the firmware version is 3.x, then you need to upgrade it in a special bootloader mode ( by shorting two pads in solder side) and run Freescale's bootloader GUI software, or you can use another BDM, such as USBDM or P & E multilink USB BDM, to upgrade it
4. Switch to the Target tab, click the "Detect Chip", notice that the HCS12 MCU is detected, make sure to change it to the MC9S12DG256. Then click the "Load Hex Files", and browse to the s19 file "sm_and_test_dr12p_rgb_8mhz.s19" and click "Open"
Notice that the serial monitor s19 file is loaded above.
5. In order to
program the flash memory you need to mass-erase it
first. There is an option for
the mass-erase in the DLL version V4.9.
6. Finally select the "Program Flash", after a short delay you will see:
7. It's done. Place the left DIP switch of the SW7 in the "UP" position, press the reset button on the Dragon12, the test program should run. 8. Disconnect the Dragon12 from the USBDM-1 and place the left DIP switch of the SW7 back in the LOW" position. Your Dragon12 will be ready to talk to CodeWarrior. Warning: We added LCD display routines in D-Bug12 monitor firmware, so the LCD will display a message after power up, but the same message will not appear with the serial monitor firmware and you will only see 16 squares on the LCD. The serial monitor does not have enough memory space for LCD routines. The LCD routines can only be included in our test program or any user programs.
Programming application 2: Replacing serial monitor with D-Bug12 monitor using HCS12_FlashProgrammer: D-Bug12 monitor firmware actually consists of two components: Bootloader and D-Bug12 monitor. The D-Bug12 monitor is provided by Freescale in an s29 file. It cannot be programmed by USBDM, but can be programmed by bootloader. So this programming application must be accomplished in two steps. At first, you need to use a USBDM to replace the serial monitor with the bootloader, then use the bootloader to install the D-Bug12 monitor. 1. Download and unzip the Bootloader and the D-Bug12 monitor. (these files are for the Dragon12P-USB board rev. G and rev. H) 2. Connect your USBDM-1 to a PC USB port ( not a USB hub ) via the USB cable and connect it to the Dragon12 via the 6-pin ribbon cable as shown on the following pictures. ( Please note that it's connected to the header labeled with "BDM IN" ). The power LED on the Dragon12 should be lit. 3. Following the instructions in the Programming Application 1 to program the bootloader. All instructions apply to this application, only when you click the "Load Hex Files", then browse to the s19 file "Boot_DR12P_8MHz.s19" and click "Open" 4. When programming is successful disconnect the Dragon12 from the USBDM-1 and place both the DIP switches of the SW7 in the "UP" positions. Your Dragon12 will be ready to be programmed with D-Bug12 monitor in bootloader mode. 5. Disconnect the USBDM from the USB cable and put the USBDM aside. You don't need it anymore. 6. Connect the USB cable to the USB jack on the Dargon12 board. Make sure that the other end of the USB cable is still connected to a PC USB port. 7. Before programming D-Bug12 monitor into flash memory you should know what the bootloader is for. The bootloader allows you to erase/program flash memory and erase EEPROM. It is mainly used to program the D-Bug12 monitor into flash memory or program user’s fully debugged code into the D-Bug12 portion of flash memory. The latter allows the Dragon12 board to auto start your code in EVB mode every time the board is turned on or reset. When you program your code into the D-Bug12 portion of flash memory, it wipes out the D-Bug12 monitor. You can restore it any time, just as if you were downloading another application program since the bootloader is not erased. You can erase and program the D-Bug12 monitor portion of the flash memory of the MC9S12DG256 in bootloader mode, but you cannot erase and program bootloader by itself. The bootloader can only be erased by an external BDM via BDM-in port. See details of 4 operating modes on page 15 of the user's manual. 8. If both the DIP switches of the SW7 in the "UP" positions, press the reset button on the Dragon12 board, the LCD should display the following message:
“DRAGON12plus EVB” 9. Invoke AsmIDE, you should see the bootloader menu in the AsmIDE terminal window: MC9S12DG256 bootloader menu:
10. Place both the DIP switches of the SW7 in the "LOW" positions. Press the reset button on the Dragon12 board, the LCD should display the following message:
“DRAGON12plus EVB”
Tech support:
|
|||||||||