User`s manual
Chapter 5: Code Warrior and serial monitor
Code Warrior is a very powerful and professional IDE. The main feature of Code Warrior IDE is the
source level debugger in assembler and C. Code Warrior Special Edition is a wonderful gift from
Freescale to all of us and it’s free for educational use. What's more, by Code Warrior supporting
serial monitor, they have made it very affordable to support Code Warrior for the OEM.
Freescale has invested millions of dollar into Code Warrior and the current versions work very well.
What's more, Freescale knows they will never sell enough copies of Code Warrior to make back what
they have invested. They did it to drive chip sales.
As a software developer, the first thing you look at is available tools and what it will cost.
There are many companies making MCU chips these days and for the most part they all have about
the same features at a similar price. Special Edition Code Warrior sets Freescale apart from others.
Code Warrior IDE does not work with D-Bug12, but it works with serial monitor. Before Freescale
created the serial monitor a BDM is needed as an interface between the PC and HCS12. Freescale
created the serial monitor for working with Code Warrior to eliminate the cost of a BDM.
Now a student can use the serial monitor with Code Warrior to debug his program and in fact, many
universities have been using the serial monitor with Code Warrior without a BDM in their classrooms.
Without spending money on a BDM, a student will be able to spend his savings on purchasing a more
advanced trainer, like the MiniDragon-Plus3 board with many on-board peripherals. Purchasing an
EVB board that comes with a BDM at a reasonable price, most likely leaves the student with an EVB
of only limited functionality.
Some universities use D-Bug12 monitor first, then replace the D-Bug12 monitor with serial monitor to
be used with Code Warrior IDE. In this case, a school laboratory only needs to have one BDM or use
one Dragon12 board as a BDM POD, to program all students' boards with serial monitor.
Some universities use Code Warrior IDE only. In this case, we pre-load the on-chip flash memory
with serial monitor.
If your board is pre-loaded with D-Bug12 monitor, the 7-segment display will show the letter ‘E’ and
the speaker will chirp once when the board is turned on
If your board is pre-loaded with SM ( Serial Monitor ) the speaker will chirp once when the board is
turned on and:
1. The 7-segment display will show ‘5’ in LOAD mode, the number ‘5’ means letter ‘S’ which stands
for SM or
2. The 7-segment display will show ‘U’ in RUN mode, the letter ‘U’ stands for running User
programs
The left DIP switch of S7 is used to select RUN or LOAD mode. The left DIP switch is set in the “up”
position for RUN mode and in the “low” position for LOAD mode.
31