User`s manual
3. Click Build button, select Assemble option, or click the assembler button on the toolbar to
assemble your code and generate an s19 file. If the assembler detects an error, the error
message will show the line numbers of your source code that caused the error. You have
to correct all errors in your program.
4. Go to the line and correct the errors and go back to step 3 until there are no errors.
5. Press the reset button on the board, you will see:
D-Bug12 v4.0.0b32
Copyright 1996 - 2005 Freescale Semiconductor
For Commands type "Help"
>
6. Type “LOAD” <Enter>
7. Click Build button, select Download option and browse to the file named ‘Flash_7seg.s19”’
for downloading. After download is done, type “G 2000” and hit <Enter> key to run the
program.
For your convenience, we have included this sample program, flash_7seg.asm, on the CD.
3.3 Software development
3.3.1 Use on-chip 12K RAM for software development in EVB mode.
You can download your s19 file into the RAM and debug it with the D-Bug12 monitor in
this mode. You must place your interrupt vectors at $3E00-$3E7F, because real interrupt
vector addresses are taken by the bootloader. The bootloader and the D-Bug12 monitor
will redirect interrupts to the RAM interrupt vector addresses at $3E00-$3E7F
Because RAM will lose its contents after power off, you have to load your program every
time after power-up. In the beginning of your program, you must initialize the interrupt
vectors at $3E00-$3E7F.
In all sample programs, the user program code locations are at $2000-$3FFF. The user
data RAM locations are at $1000-$1FFF. The 64 RAM interrupt vector addresses are at
$3E00-$3E7F.
The 64 RAM interrupt vector addresses (128 bytes of RAM) are assigned by the D-Bug12
monitor to different interrupt sources. The listing of interrupt sources is show on chapter 8.
3.3.2 Use on-chip 3K EEPROM for testing your code in EVB mode.
If your program is small enough to fit into a 3K range, then you can download your code
into the EEPROM. In this way, your program can be auto started from $0400 upon reset.
You cannot set software breakpoints and single step in the EEPROM in EVB mode, so it
makes sense to do development work in the RAM. When your code is completely
debugged in RAM, then re-assemble or re-compile it at $0400 and download the final s19
file into the EEPROM for the auto start feature.
Like the RAM-based development, your interrupt vectors are at $3E00-$3E7F. In the
beginning of your program, you must initialize the interrupt vectors at $3E00-$3E7F.
24