; bdiGDB configuration file for Cavium CN78xx ; ------------------------------------------- ; ; Note: ; Make sure there is no Jumper present in the 10-pin JTAG ; connector that forces TMS to Ground !!! ; ; [INIT] ; #00 WREG status 0x504000e4 ;enable access to 64-bit segment ; ; Release cores from Reset #00 WREG ciu3_pp_rst 0x0000000000000000 ;release core#0 ... core#47 #00 DELAY 100 #01 WREG status 0x504000e4 #02 WREG status 0x504000e4 #03 WREG status 0x504000e4 #04 WREG status 0x504000e4 #05 WREG status 0x504000e4 #06 WREG status 0x504000e4 #07 WREG status 0x504000e4 #08 WREG status 0x504000e4 #09 WREG status 0x504000e4 #10 WREG status 0x504000e4 #11 WREG status 0x504000e4 #12 WREG status 0x504000e4 #13 WREG status 0x504000e4 #14 WREG status 0x504000e4 #15 WREG status 0x504000e4 #16 WREG status 0x504000e4 #17 WREG status 0x504000e4 #18 WREG status 0x504000e4 #19 WREG status 0x504000e4 #20 WREG status 0x504000e4 #21 WREG status 0x504000e4 #22 WREG status 0x504000e4 #23 WREG status 0x504000e4 #24 WREG status 0x504000e4 #25 WREG status 0x504000e4 #26 WREG status 0x504000e4 #27 WREG status 0x504000e4 #28 WREG status 0x504000e4 #29 WREG status 0x504000e4 #30 WREG status 0x504000e4 #31 WREG status 0x504000e4 #32 WREG status 0x504000e4 #33 WREG status 0x504000e4 #34 WREG status 0x504000e4 #35 WREG status 0x504000e4 #36 WREG status 0x504000e4 #37 WREG status 0x504000e4 #38 WREG status 0x504000e4 #39 WREG status 0x504000e4 #40 WREG status 0x504000e4 #41 WREG status 0x504000e4 #42 WREG status 0x504000e4 #43 WREG status 0x504000e4 #44 WREG status 0x504000e4 #45 WREG status 0x504000e4 #46 WREG status 0x504000e4 #47 WREG status 0x504000e4 ; ; Write test loop to L2 cache #00 WM32 0x80010000 0x00000000 ;nop #00 WM32 0x80010004 0x00000000 ;nop #00 WM32 0x80010008 0x00000000 ;nop #00 WM32 0x8001000c 0x00000000 ;nop #00 WM32 0x80010010 0x00000000 ;nop #00 WM32 0x80010014 0x00000000 ;nop #00 WM32 0x80010018 0x00000000 ;nop #00 WM32 0x8001001c 0x1000fffc ;b -4 ; #00 WREG pc 0x80010000 #01 WREG pc 0x80010000 #02 WREG pc 0x80010000 #03 WREG pc 0x80010000 #04 WREG pc 0x80010000 #05 WREG pc 0x80010000 #06 WREG pc 0x80010000 #07 WREG pc 0x80010000 #08 WREG pc 0x80010000 #09 WREG pc 0x80010000 #10 WREG pc 0x80010000 #11 WREG pc 0x80010000 #12 WREG pc 0x80010000 #13 WREG pc 0x80010000 #14 WREG pc 0x80010000 #15 WREG pc 0x80010000 #16 WREG pc 0x80010000 #17 WREG pc 0x80010000 #18 WREG pc 0x80010000 #19 WREG pc 0x80010000 #20 WREG pc 0x80010000 #21 WREG pc 0x80010000 #22 WREG pc 0x80010000 #23 WREG pc 0x80010000 #24 WREG pc 0x80010000 #25 WREG pc 0x80010000 #26 WREG pc 0x80010000 #27 WREG pc 0x80010000 #28 WREG pc 0x80010000 #29 WREG pc 0x80010000 #30 WREG pc 0x80010000 #31 WREG pc 0x80010000 #32 WREG pc 0x80010000 #33 WREG pc 0x80010000 #34 WREG pc 0x80010000 #35 WREG pc 0x80010000 #36 WREG pc 0x80010000 #37 WREG pc 0x80010000 #38 WREG pc 0x80010000 #39 WREG pc 0x80010000 #40 WREG pc 0x80010000 #41 WREG pc 0x80010000 #42 WREG pc 0x80010000 #43 WREG pc 0x80010000 #44 WREG pc 0x80010000 #45 WREG pc 0x80010000 #46 WREG pc 0x80010000 #47 WREG pc 0x80010000 [TARGET] ; common parameters POWERUP 5000 ;power-up delay 5 seconds JTAGCLOCK 16000000 ;use 16 MHz JTAG clock RESET HARD ;hard reset via RST pin ; ;====================================================== ; !!!! defines the cores numbers without any holes !!!! ;====================================================== ; ; Core#0 parameters #00 CPUTYPE CNMIPS3 #00 ENDIAN BIG #00 JTAGDELAY 5 #00 STARTUP HALT #00 BREAKMODE HARD #00 MCDEBUG 0x00001107 #00 SCANPRED 47 235 #00 SCANSUCC 00 000 ; ; Core#1 parameters #01 CPUTYPE CNMIPS3 #01 ENDIAN BIG #01 JTAGDELAY 5 #01 STARTUP WAIT #01 BREAKMODE HARD #01 MCDEBUG 0x00001107 #01 SCANPRED 46 230 #01 SCANSUCC 01 005 ; ; Core#2 parameters #02 CPUTYPE CNMIPS3 #02 ENDIAN BIG #02 JTAGDELAY 5 #02 STARTUP WAIT #02 BREAKMODE HARD #02 MCDEBUG 0x00001107 #02 SCANPRED 45 225 #02 SCANSUCC 02 010 ; ; Core#3 parameters #03 CPUTYPE CNMIPS3 #03 ENDIAN BIG #03 JTAGDELAY 5 #03 STARTUP WAIT #03 BREAKMODE HARD #03 MCDEBUG 0x00001107 #03 SCANPRED 44 220 #03 SCANSUCC 03 015 ; ; Core#4 parameters #04 CPUTYPE CNMIPS3 #04 ENDIAN BIG #04 JTAGDELAY 5 #04 STARTUP WAIT #04 BREAKMODE HARD #04 MCDEBUG 0x00001107 #04 SCANPRED 43 215 #04 SCANSUCC 04 020 ; ; Core#5 parameters #05 CPUTYPE CNMIPS3 #05 ENDIAN BIG #05 JTAGDELAY 5 #05 STARTUP WAIT #05 BREAKMODE HARD #05 MCDEBUG 0x00001107 #05 SCANPRED 42 210 #05 SCANSUCC 05 025 ; ; Core#6 parameters #06 CPUTYPE CNMIPS3 #06 ENDIAN BIG #06 JTAGDELAY 5 #06 STARTUP WAIT #06 BREAKMODE HARD #06 MCDEBUG 0x00001107 #06 SCANPRED 41 205 #06 SCANSUCC 06 030 ; ; Core#7 parameters #07 CPUTYPE CNMIPS3 #07 ENDIAN BIG #07 JTAGDELAY 5 #07 STARTUP WAIT #07 BREAKMODE HARD #07 MCDEBUG 0x00001107 #07 SCANPRED 40 200 #07 SCANSUCC 07 035 ; ; Core#8 parameters #08 CPUTYPE CNMIPS3 #08 ENDIAN BIG #08 JTAGDELAY 5 #08 STARTUP WAIT #08 BREAKMODE HARD #08 MCDEBUG 0x00001107 #08 SCANPRED 39 195 #08 SCANSUCC 08 040 ; ; Core#9 parameters #09 CPUTYPE CNMIPS3 #09 ENDIAN BIG #09 JTAGDELAY 5 #09 STARTUP WAIT #09 BREAKMODE HARD #09 MCDEBUG 0x00001107 #09 SCANPRED 38 190 #09 SCANSUCC 09 045 ; ; Core#10 parameters #10 CPUTYPE CNMIPS3 #10 ENDIAN BIG #10 JTAGDELAY 5 #10 STARTUP WAIT #10 BREAKMODE HARD #10 MCDEBUG 0x00001107 #10 SCANPRED 37 185 #10 SCANSUCC 10 050 ; ; Core#11 parameters #11 CPUTYPE CNMIPS3 #11 ENDIAN BIG #11 JTAGDELAY 5 #11 STARTUP WAIT #11 BREAKMODE HARD #11 MCDEBUG 0x00001107 #11 SCANPRED 36 180 #11 SCANSUCC 11 055 ; ; Core#12 parameters #12 CPUTYPE CNMIPS3 #12 ENDIAN BIG #12 JTAGDELAY 5 #12 STARTUP WAIT #12 BREAKMODE HARD #12 MCDEBUG 0x00001107 #12 SCANPRED 35 175 #12 SCANSUCC 12 060 ; ; Core#13 parameters #13 CPUTYPE CNMIPS3 #13 ENDIAN BIG #13 JTAGDELAY 5 #13 STARTUP WAIT #13 BREAKMODE HARD #13 MCDEBUG 0x00001107 #13 SCANPRED 34 170 #13 SCANSUCC 13 065 ; ; Core#14 parameters #14 CPUTYPE CNMIPS3 #14 ENDIAN BIG #14 JTAGDELAY 5 #14 STARTUP WAIT #14 BREAKMODE HARD #14 MCDEBUG 0x00001107 #14 SCANPRED 33 165 #14 SCANSUCC 14 070 ; ; Core#15 parameters #15 CPUTYPE CNMIPS3 #15 ENDIAN BIG #15 JTAGDELAY 5 #15 STARTUP WAIT #15 BREAKMODE HARD #15 MCDEBUG 0x00001107 #15 SCANPRED 32 160 #15 SCANSUCC 15 075 ; ; Core#16 parameters #16 CPUTYPE CNMIPS3 #16 ENDIAN BIG #16 JTAGDELAY 5 #16 STARTUP WAIT #16 BREAKMODE HARD #16 MCDEBUG 0x00001107 #16 SCANPRED 31 155 #16 SCANSUCC 16 080 ; ; Core#17 parameters #17 CPUTYPE CNMIPS3 #17 ENDIAN BIG #17 JTAGDELAY 5 #17 STARTUP WAIT #17 BREAKMODE HARD #17 MCDEBUG 0x00001107 #17 SCANPRED 30 150 #17 SCANSUCC 17 085 ; ; Core#18 parameters #18 CPUTYPE CNMIPS3 #18 ENDIAN BIG #18 JTAGDELAY 5 #18 STARTUP WAIT #18 BREAKMODE HARD #18 MCDEBUG 0x00001107 #18 SCANPRED 29 145 #18 SCANSUCC 18 090 ; ; Core#19 parameters #19 CPUTYPE CNMIPS3 #19 ENDIAN BIG #19 JTAGDELAY 5 #19 STARTUP WAIT #19 BREAKMODE HARD #19 MCDEBUG 0x00001107 #19 SCANPRED 28 140 #19 SCANSUCC 19 095 ; ; Core#20 parameters #20 CPUTYPE CNMIPS3 #20 ENDIAN BIG #20 JTAGDELAY 5 #20 STARTUP WAIT #20 BREAKMODE HARD #20 MCDEBUG 0x00001107 #20 SCANPRED 27 135 #20 SCANSUCC 20 100 ; ; Core#21 parameters #21 CPUTYPE CNMIPS3 #21 ENDIAN BIG #21 JTAGDELAY 5 #21 STARTUP WAIT #21 BREAKMODE HARD #21 MCDEBUG 0x00001107 #21 SCANPRED 26 130 #21 SCANSUCC 21 105 ; ; Core#22 parameters #22 CPUTYPE CNMIPS3 #22 ENDIAN BIG #22 JTAGDELAY 5 #22 STARTUP WAIT #22 BREAKMODE HARD #22 MCDEBUG 0x00001107 #22 SCANPRED 25 125 #22 SCANSUCC 22 110 ; ; Core#23 parameters #23 CPUTYPE CNMIPS3 #23 ENDIAN BIG #23 JTAGDELAY 5 #23 STARTUP WAIT #23 BREAKMODE HARD #23 MCDEBUG 0x00001107 #23 SCANPRED 24 120 #23 SCANSUCC 23 115 ; ; Core#24 parameters #24 CPUTYPE CNMIPS3 #24 ENDIAN BIG #24 JTAGDELAY 5 #24 STARTUP WAIT #24 BREAKMODE HARD #24 MCDEBUG 0x00001107 #24 SCANPRED 23 115 #24 SCANSUCC 24 120 ; ; Core#25 parameters #25 CPUTYPE CNMIPS3 #25 ENDIAN BIG #25 JTAGDELAY 5 #25 STARTUP WAIT #25 BREAKMODE HARD #25 MCDEBUG 0x00001107 #25 SCANPRED 22 110 #25 SCANSUCC 25 125 ; ; Core#26 parameters #26 CPUTYPE CNMIPS3 #26 ENDIAN BIG #26 JTAGDELAY 5 #26 STARTUP WAIT #26 BREAKMODE HARD #26 MCDEBUG 0x00001107 #26 SCANPRED 21 105 #26 SCANSUCC 26 130 ; ; Core#27 parameters #27 CPUTYPE CNMIPS3 #27 ENDIAN BIG #27 JTAGDELAY 5 #27 STARTUP WAIT #27 BREAKMODE HARD #27 MCDEBUG 0x00001107 #27 SCANPRED 20 100 #27 SCANSUCC 27 135 ; ; Core#28 parameters #28 CPUTYPE CNMIPS3 #28 ENDIAN BIG #28 JTAGDELAY 5 #28 STARTUP WAIT #28 BREAKMODE HARD #28 MCDEBUG 0x00001107 #28 SCANPRED 19 095 #28 SCANSUCC 28 140 ; ; Core#29 parameters #29 CPUTYPE CNMIPS3 #29 ENDIAN BIG #29 JTAGDELAY 5 #29 STARTUP WAIT #29 BREAKMODE HARD #29 MCDEBUG 0x00001107 #29 SCANPRED 18 090 #29 SCANSUCC 29 145 ; ; Core#30 parameters #30 CPUTYPE CNMIPS3 #30 ENDIAN BIG #30 JTAGDELAY 5 #30 STARTUP WAIT #30 BREAKMODE HARD #30 MCDEBUG 0x00001107 #30 SCANPRED 17 085 #30 SCANSUCC 30 150 ; ; Core#31 parameters #31 CPUTYPE CNMIPS3 #31 ENDIAN BIG #31 JTAGDELAY 5 #31 STARTUP WAIT #31 BREAKMODE HARD #31 MCDEBUG 0x00001107 #31 SCANPRED 16 080 #31 SCANSUCC 31 155 ; ; Core#32 parameters #32 CPUTYPE CNMIPS3 #32 ENDIAN BIG #32 JTAGDELAY 5 #32 STARTUP WAIT #32 BREAKMODE HARD #32 MCDEBUG 0x00001107 #32 SCANPRED 15 075 #32 SCANSUCC 32 160 ; ; Core#33 parameters #33 CPUTYPE CNMIPS3 #33 ENDIAN BIG #33 JTAGDELAY 5 #33 STARTUP WAIT #33 BREAKMODE HARD #33 MCDEBUG 0x00001107 #33 SCANPRED 14 070 #33 SCANSUCC 33 165 ; ; Core#34 parameters #34 CPUTYPE CNMIPS3 #34 ENDIAN BIG #34 JTAGDELAY 5 #34 STARTUP WAIT #34 BREAKMODE HARD #34 MCDEBUG 0x00001107 #34 SCANPRED 13 065 #34 SCANSUCC 34 170 ; ; Core#35 parameters #35 CPUTYPE CNMIPS3 #35 ENDIAN BIG #35 JTAGDELAY 5 #35 STARTUP WAIT #35 BREAKMODE HARD #35 MCDEBUG 0x00001107 #35 SCANPRED 12 060 #35 SCANSUCC 35 175 ; ; Core#36 parameters #36 CPUTYPE CNMIPS3 #36 ENDIAN BIG #36 JTAGDELAY 5 #36 STARTUP WAIT #36 BREAKMODE HARD #36 MCDEBUG 0x00001107 #36 SCANPRED 11 055 #36 SCANSUCC 36 180 ; ; Core#37 parameters #37 CPUTYPE CNMIPS3 #37 ENDIAN BIG #37 JTAGDELAY 5 #37 STARTUP WAIT #37 BREAKMODE HARD #37 MCDEBUG 0x00001107 #37 SCANPRED 10 050 #37 SCANSUCC 37 185 ; ; Core#38 parameters #38 CPUTYPE CNMIPS3 #38 ENDIAN BIG #38 JTAGDELAY 5 #38 STARTUP WAIT #38 BREAKMODE HARD #38 MCDEBUG 0x00001107 #38 SCANPRED 09 045 #38 SCANSUCC 38 190 ; ; Core#39 parameters #39 CPUTYPE CNMIPS3 #39 ENDIAN BIG #39 JTAGDELAY 5 #39 STARTUP WAIT #39 BREAKMODE HARD #39 MCDEBUG 0x00001107 #39 SCANPRED 08 040 #39 SCANSUCC 39 195 ; ; Core#40 parameters #40 CPUTYPE CNMIPS3 #40 ENDIAN BIG #40 JTAGDELAY 5 #40 STARTUP WAIT #40 BREAKMODE HARD #40 MCDEBUG 0x00001107 #40 SCANPRED 07 035 #40 SCANSUCC 40 200 ; ; Core#41 parameters #41 CPUTYPE CNMIPS3 #41 ENDIAN BIG #41 JTAGDELAY 5 #41 STARTUP WAIT #41 BREAKMODE HARD #41 MCDEBUG 0x00001107 #41 SCANPRED 06 030 #41 SCANSUCC 41 205 ; ; Core#42 parameters #42 CPUTYPE CNMIPS3 #42 ENDIAN BIG #42 JTAGDELAY 5 #42 STARTUP WAIT #42 BREAKMODE HARD #42 MCDEBUG 0x00001107 #42 SCANPRED 05 025 #42 SCANSUCC 42 210 ; ; Core#43 parameters #43 CPUTYPE CNMIPS3 #43 ENDIAN BIG #43 JTAGDELAY 5 #43 STARTUP WAIT #43 BREAKMODE HARD #43 MCDEBUG 0x00001107 #43 SCANPRED 04 020 #43 SCANSUCC 43 215 ; ; Core#44 parameters #44 CPUTYPE CNMIPS3 #44 ENDIAN BIG #44 JTAGDELAY 5 #44 STARTUP WAIT #44 BREAKMODE HARD #44 MCDEBUG 0x00001107 #44 SCANPRED 03 015 #44 SCANSUCC 44 220 ; ; Core#45 parameters #45 CPUTYPE CNMIPS3 #45 ENDIAN BIG #45 JTAGDELAY 5 #45 STARTUP WAIT #45 BREAKMODE HARD #45 MCDEBUG 0x00001107 #45 SCANPRED 02 010 #45 SCANSUCC 45 225 ; ; Core#46 parameters #46 CPUTYPE CNMIPS3 #46 ENDIAN BIG #46 JTAGDELAY 5 #46 STARTUP WAIT #46 BREAKMODE HARD #46 MCDEBUG 0x00001107 #46 SCANPRED 01 005 #46 SCANSUCC 46 230 ; ; Core#47 parameters #47 CPUTYPE CNMIPS3 #47 ENDIAN BIG #47 JTAGDELAY 5 #47 STARTUP WAIT #47 BREAKMODE HARD #47 MCDEBUG 0x00001107 #47 SCANPRED 00 000 #47 SCANSUCC 47 235 ; [HOST] #00 PROMPT cn7800#0> #01 PROMPT cn7800#1> #02 PROMPT cn7800#2> #03 PROMPT cn7800#3> #04 PROMPT cn7800#4> #05 PROMPT cn7800#5> #06 PROMPT cn7800#6> #07 PROMPT cn7800#7> #08 PROMPT cn7800#8> #09 PROMPT cn7800#9> #10 PROMPT cn7800#10> #11 PROMPT cn7800#11> #12 PROMPT cn7800#12> #13 PROMPT cn7800#13> #14 PROMPT cn7800#14> #15 PROMPT cn7800#15> #16 PROMPT cn7800#16> #17 PROMPT cn7800#17> #18 PROMPT cn7800#18> #19 PROMPT cn7800#19> #20 PROMPT cn7800#20> #21 PROMPT cn7800#21> #22 PROMPT cn7800#22> #23 PROMPT cn7800#23> #24 PROMPT cn7800#24> #25 PROMPT cn7800#25> #26 PROMPT cn7800#26> #27 PROMPT cn7800#27> #28 PROMPT cn7800#28> #29 PROMPT cn7800#29> #30 PROMPT cn7800#30> #31 PROMPT cn7800#31> #32 PROMPT cn7800#32> #33 PROMPT cn7800#33> #34 PROMPT cn7800#34> #35 PROMPT cn7800#35> #36 PROMPT cn7800#36> #37 PROMPT cn7800#37> #38 PROMPT cn7800#38> #39 PROMPT cn7800#39> #40 PROMPT cn7800#40> #41 PROMPT cn7800#41> #42 PROMPT cn7800#42> #43 PROMPT cn7800#43> #44 PROMPT cn7800#44> #45 PROMPT cn7800#45> #46 PROMPT cn7800#46> #47 PROMPT cn7800#47> ;Assign GDB session (maximal 32 sessions) ;---------------------------------------- ;#00 DEBUGPORT 7800 ;#01 DEBUGPORT 7801 ;#02 DEBUGPORT 7802 ;#03 DEBUGPORT 7803 ;#04 DEBUGPORT 7804 ;#05 DEBUGPORT 7805 ;#06 DEBUGPORT 7806 ;#07 DEBUGPORT 7807 ;#08 DEBUGPORT 7808 ;#09 DEBUGPORT 7809 ;#10 DEBUGPORT 7810 ;#11 DEBUGPORT 7811 ;#12 DEBUGPORT 7812 ;#13 DEBUGPORT 7813 ;#14 DEBUGPORT 7814 ;#15 DEBUGPORT 7815 ;#16 DEBUGPORT 7816 ;#17 DEBUGPORT 7817 ;#18 DEBUGPORT 7818 ;#19 DEBUGPORT 7819 ;#20 DEBUGPORT 7820 ;#21 DEBUGPORT 7821 ;#22 DEBUGPORT 7822 ;#23 DEBUGPORT 7823 ;#24 DEBUGPORT 7824 ;#25 DEBUGPORT 7825 ;#26 DEBUGPORT 7826 ;#27 DEBUGPORT 7827 ;#28 DEBUGPORT 7828 ;#29 DEBUGPORT 7829 ;#30 DEBUGPORT 7830 ;#31 DEBUGPORT 7831 ;#32 DEBUGPORT 7832 ;#33 DEBUGPORT 7833 ;#34 DEBUGPORT 7834 ;#35 DEBUGPORT 7835 ;#36 DEBUGPORT 7836 ;#37 DEBUGPORT 7837 ;#38 DEBUGPORT 7838 ;#39 DEBUGPORT 7839 ;#40 DEBUGPORT 7840 ;#41 DEBUGPORT 7841 ;#42 DEBUGPORT 7842 ;#43 DEBUGPORT 7843 ;#44 DEBUGPORT 7844 ;#45 DEBUGPORT 7845 ;#46 DEBUGPORT 7846 ;#47 DEBUGPORT 7847 ; ;Enable NS-MT mode (only one GDB session is used in this case) ;------------------------------------------------------------- ;To enable Non-Stop MT Mode in GDB use: ; set target-async 1 ; set pagination off ; set non-stop on ; target remote bdi3000:2001 ; DEBUGPORT 2001 NS-MT ;this overrides all other GDB port assignments ; [FLASH] [REGS] ;used for all cores unless overridden DMM1 0xFF300000 ;DSU base address DMM2 0x80000000_0 ;xkphys segment FILE $regCN7800.def