Motorola MPC564EVB Manuel d'utilisateur Page 8

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 17
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 7
MPC562BC 10/31/02
8
Tutorial
The following brief tutorial will help you become familiar with software development on this board quickly.
Using the Debug Monitor
This board ships with a dBUG monitor installed in the flash memory. See the dBUG Monitor manual provided on the support CD
for complete commands and instructions, see the reference document list for the CD loactation.
Applying the monitor program and any serial communications terminal program, it is possible to display and modify memory and
registers on the board from any host PC. Debug operations are also supported such as loading object code and symbols, stepping or
tracing code operation, and setting breakpoints to halt execution at a certain point. These are performed by typing commands into the
terminal program on the PC. Type help at the dBUG command prompt and hit <enter> for a complete list of available commands.
Experiment with some of the commands like reading (MD) and modifying (MM) memory. Make sure that memory space being
manipulated is mapped to valid addresses or the monitor program will perform an exception process. When applying the monitor be
aware that it also requires resources for operation such as memory and the serial port. Review the Memory map section to identify
User space and Monitor memory space. Note that User SRAM memory is provided from 0x3FA000 to 0x3FFFFF. The monitor
program applies SRAM from 0x3F9800 - 0x3F9FFF for its own use. If the monitor ram memory region is modified while the
monitor is operating, it may require a RESET sequence. The monitor will also apply the external flash memory for user code space
from 0xFF00 0000 to 0xFFEF FFFF and monitor space from 0xFFF0 0000 to 0xFFFF FFFF.
EXAMPLE:
A simple "hello world" program example is provided on the CD in the \Examples\MPC562BC directory. Follow these steps to load
and execute the example from internal RAM using the dBUG monitor program:
1. At the monitor prompt dBUG> type DL and hit <enter>.
2. Select the AXIDE Upload button (or send text file command from your terminal program) and locate the file named
"HELLO_R.S19" included on the support CD in the \Examples\MPC562BC directory. Send this file to the board.
3. When finished uploading, type go 3FA004 at the command prompt. You should see the phrase "Hello World!" echoed
back to the screen, which is all that this simple test program does, each time you hit a key.
4. To exit from this test program, hit a RESET button on the board.
This example program was compiled with the Diab Data compiler. The source files and scripts used are included on the support CD
as follows:
HELLO.C
Main source code file
SERIAL.C
Serial port I/O and ASCII text conversion routines
HELLO_R.DLD
Diab Linker script - specifies the programs memory organization
HELLO_R.BAT
DOS batch file used to build the program
Vue de la page 7
1 2 3 4 5 6 7 8 9 10 11 12 13 ... 16 17

Commentaires sur ces manuels

Pas de commentaire