EVB+

 

Home

University web sites

Sample programs

HANtune

CodeWarrior IDE

 

 

 

 

 

 

 

 
   
 

CodeWarrior is a very powerful and professional IDE. The main feature of CodeWarrior IDE is the source level debugger in assembler and C. 

CodeWarrior IDE works with Serial Monitor firmware.  

Code Warrior does not work with D-Bug12 monitor firmware, but AsmIDE does.

If you use CodeWarrior IDE only, your need the Dragon12 board pre-loaded with serial monitor.

If you use AsmIDE or MiniIDE, your need the Dragon12 board pre-loaded with D-Bug12 monitor.

To replace D-Bug12 monitor with serial monitor, you need a BDM POD to perform the task. The procedure to program the on-chip flash memory is provided at: www.evbplus.com/TinyBDM_9s12/TinyBDM_9s12.html

 

A quick check of monitor type on your board:

For the Dragon12-Light and Dragon12-Plus boards:

If your board is pre-installed with D-Bug12 monitor for AsmIDE, the Port B LED indicators will light up from left to right sequentially and the speaker will chirp once when the board is turned on.

If you ordered the board with serial monitor for Code Warrior, it would be pre-installed with serial monitor and a factory test program. The state of the left switch of the 2-position DIP switch (S7) is tested by the serial monitor for selecting RUN or LOAD mode during power up or reset, and the Port B LED indicators will light up from right to left sequentially and the speaker will chirp once to indicate that the serial monitor is functioning.

If the left switch is placed in "LOAD" mode (in the "low" position) the monitor will wait for a command from PC.

If the left switch is placed in "RUN" mode (in the "up" position) the LED indicators will light up again from left to right sequentially to indicate that the program execution is diverted to the user code.

Code Warrior communicates with serial monitor only in LOAD mode and so in order to interface with Code Warrior you have to reset the left switch in the “low “position. The Port B LED indicators will light up from right to left sequentially and the speaker will chirp once when the board is turned on.

If the serial monitor is not installed or erased by a BDM, the LED indicators will not light up sequentially during power up or reset.

 

Codewarrior tutorial videos:
 

http://www.youtube.com/watch?v=RkPiurLHKyo&feature=related   How to use Codewarrior for the first time.

For simulation only, you can select full chip simulation for the connection.  For simulation, you don't even need any hardware.

If you are going to use CodeWarrior debugger, then your trainer board has to be installed with serial monitor and make sure that you select the correct MCU and serial monitor for the connection.

http://www.youtube.com/watch?v=aHMxjU9FBTQ  How To Load Values Into Accumulators and Registers

http://www.youtube.com/watch?v=ujJ0DGOW9ak Codewarrior LAB 1

http://www.youtube.com/watch?v=uMwGCW0cw8M&feature=related  Codewarrior LAB 2

 

Codewarrior sample programs:

http://www.microdigitaled.com/HCS12/Hardware/Dragon12-Plus-Support.htm

http://www.lbebooks.com/index.htm