User Tools

Site Tools


openocd

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
openocd [2019/03/17 23:18]
weilawei
openocd [2019/03/17 23:27] (current)
weilawei
Line 9: Line 9:
 sudo make install</​code>​ sudo make install</​code>​
  
-==== Raspberry Pi 3 B+ Board Config (raspi.cfg) ==== 
- 
-**Warning:​** This is a work-in-progress,​ and segfaults as soon as you try to connect to the GDB server instance. You need a copy of the latest OpenOCD (0.10+dev) built from the source repository for this configuration. 
- 
-<​code>​transport select jtag 
- 
-#​reset_config trst_and_srst 
-reset_config srst_only 
- 
-#jtag_rclk 4000 
-adapter_khz 1000 
-jtag_ntrst_delay 500 
- 
-if { [info exists CHIPNAME] } { 
-  set _CHIPNAME $CHIPNAME 
-} else { 
-  set _CHIPNAME rpi3 
-} 
- 
-if { [info exists DAP_TAPID] } { 
-   set _DAP_TAPID $DAP_TAPID 
-} else { 
-   set _DAP_TAPID 0x4ba00477 
-} 
- 
-set _DAPNAME ​     $_CHIPNAME.dap 
-set _TARGETNAME_0 $_CHIPNAME.cpu0 
-set _TARGETNAME_1 $_CHIPNAME.cpu1 
-set _TARGETNAME_2 $_CHIPNAME.cpu2 
-set _TARGETNAME_3 $_CHIPNAME.cpu3 
-set _CTINAME_0   $_CHIPNAME.cti0 
-set _CTINAME_1   $_CHIPNAME.cti1 
-set _CTINAME_2   $_CHIPNAME.cti2 
-set _CTINAME_3   $_CHIPNAME.cti3 
- 
-jtag newtap $_CHIPNAME dap -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_DAP_TAPID -enable 
- 
-dap create $_CHIPNAME -chain-position $_DAPNAME ​ 
- 
-target create $_TARGETNAME_0 aarch64 -dap $_CHIPNAME -coreid 0 -dbgbase 0x80010000 ​ 
-target create $_TARGETNAME_1 aarch64 -dap $_CHIPNAME -coreid 1 -dbgbase 0x80012000 ​ 
-target create $_TARGETNAME_2 aarch64 -dap $_CHIPNAME -coreid 2 -dbgbase 0x80014000 ​ 
-target create $_TARGETNAME_3 aarch64 -dap $_CHIPNAME -coreid 3 -dbgbase 0x80016000 ​ 
- 
-cti create $_CTINAME_0 -dap $_CHIPNAME -ap-num 0 -ctibase 0x80018000 ​ 
-cti create $_CTINAME_1 -dap $_CHIPNAME -ap-num 0 -ctibase 0x80019000 ​ 
-cti create $_CTINAME_2 -dap $_CHIPNAME -ap-num 0 -ctibase 0x8001A000 ​ 
-cti create $_CTINAME_3 -dap $_CHIPNAME -ap-num 0 -ctibase 0x8001B000 ​ 
- 
-$_TARGETNAME_0 configure -event reset-assert-post "​aarch64 dbginit"​ 
-$_TARGETNAME_0 configure -event gdb-attach { halt } 
-$_TARGETNAME_1 configure -event reset-assert-post "​aarch64 dbginit"​ 
-$_TARGETNAME_1 configure -event gdb-attach { halt } 
-$_TARGETNAME_2 configure -event reset-assert-post "​aarch64 dbginit"​ 
-$_TARGETNAME_2 configure -event gdb-attach { halt } 
-$_TARGETNAME_3 configure -event reset-assert-post "​aarch64 dbginit"​ 
-$_TARGETNAME_3 configure -event gdb-attach { halt }</​code>​ 
openocd.txt ยท Last modified: 2019/03/17 23:27 by weilawei