bdi
GDB
for BDI3000 (QorIQ P3/P4/P5)
User Manual
43
© Copyright 1997-2012 by ABATRON AG Switzerland
V 1.03
3.5 Multi-Core Support
The bdiGDB system supports concurrent debugging of up to 8 e500mc cores. For every core you can
start its own GDB session. The default port numbers used to attach the remote targets are 2001 ...
2008. In the Telnet you switch between the cores with the command "select <0..7>". In the configu-
ration file, simply begin the line with the appropriate core number. If there is no #n in front of a line,
the BDI assumes core #0.
The following example defines 4 cores for debugging. For a complete example, look at the configu-
ration examples.
[TARGET]
; common parameters
POWERUP 5000 ;start delay after power-up detected in ms
JTAGCLOCK 1 ;use 16 MHz JTAG clock
WAKEUP 200 ;give reset time to complete
;
;========================================================
; !!!! define the core ID (the #x) without any holes !!!!
; !!!! no need that core ID matches the core number !!!!
; !!!! A valid example is: #1 CPUTYPE P4080 5 0 !!!!
;========================================================
;
; Core#0 parameters (active vCPU after reset)
#0 CPUTYPE P4080 0 0 ;Core0 / SOC0
#0 STARTUP STOP 5000 ;let U-boot setup the system
#0 BREAKMODE HARD ;SOFT or HARD, HARD uses PPC hardware breakpoint
#0 STEPMODE HWBP ;ICMP or HWBP, HWBP uses a hardware breakpoint
;
; Core#1 parameters
#1 CPUTYPE P4080 1 0 ;Core1 / SOC0
#1 STARTUP RUN ;let core run
;
; Core#2 parameters
#2 CPUTYPE P4080 2 0 ;Core2 / SOC0
#2 STARTUP RUN ;let core run
;
; Core#3 parameters
#3 CPUTYPE P4080 3 0 ;Core3 / SOC0
#3 STARTUP RUN ;let core run
;
[HOST]
IP 151.120.25.112
;
#0 PROMPT P4080#0>
#1 PROMPT P4080#1>
#2 PROMPT P4080#2>
#3 PROMPT P4080#3>
;
Note:
Be aware that via Telnet you select the e500mc core by its BDI core ID (#n). This BDI core ID is not
necessary the core number within the SOC. Assuming there are two P4040 daisy chained, you may
use BDI core ID #4 to select core 0 in the second P4040.