PQIII Debugger | 8
©
1989-2021 Lauterbach GmbH
Quick Start
Starting up the Debugger is done as follows:
5. Select the CPU to load the CPU specific settings. SYStem.DETECT CPU can set the appropriate
CPU automatically.
6. Specify that on-chip breakpoints should be used by the debugger, e.g. for program in FLASH.
7. Reset processor and enter debug mode
The core is now stopped at the reset address.
8. After SYStem.Up, only the boot page is visible for the CPU. Initialize MMU TLBs to configure
which memory is visible to the CPU at which address. See MMU.Set for details.
9. This step prepares the target memory for program loading. To configure the CPU for the access
to all memories either run the initialization code on your target or configure the CPU by using the
Data.Set command. For complete example scripts, see ~~/demo/powerpc/hardware.
10. Load the program.
The option of the Data.LOAD command depends on the file format generated by the compiler. A detailed
description of the Data.LOAD command is given in the “General Commands Reference”.
SYStem.CPU MPC85XX
SYStem.DETECT CPU
MAP.BOnchip 0xFF800000--0xFFFFFFFF
SYStem.Up
; set up TLB entry starting from address 0 for SDRAM
MMU.Set TLB1 1. 0x80000600 0x00000000 0x0000003f
; set CCSR base address to 0xE0000000
Data.Set ANC:iobase() %LONG 0x000E0000
; local access window
Data.Set ANC:iobase()+0x0C08 %long 0x00000000
Data.Set ANC:iobase()+0x0C10 %long 0x80F0001C
...
Data.LOAD.ELF demo.elf (ELF specifies the format,
demo.elf is the file name)