首页 > 其他分享 >DE10-Nano开发板OpenOCD设置

DE10-Nano开发板OpenOCD设置

时间:2022-09-06 23:14:03浏览次数:84  
标签:OpenOCD set Nano DE10 CHIPNAME dap TAPID TARGETNAME1 DAP

 1 #
 2 # Altera cyclone V SoC Family
 3 #
 4 adapter driver usb_blaster
 5 usb_blaster_vid_pid  0x09fb 0x6010 0x09fb 0x6810
 6 usb_blaster_lowlevel_driver ublast2
 7 usb_blaster_firmware /home/software/altera/quartus/linux64/blaster_6810.hex
 8 
 9 if { [info exists CHIPNAME] } {
10    set _CHIPNAME $CHIPNAME
11 } else {
12    set _CHIPNAME fpgasoc
13 }
14 
15 # Subsidiary TAP: fpga
16 if { [info exists FPGA_TAPID] } {
17    set _FPGA_TAPID $FPGA_TAPID
18 } else {
19    set _FPGA_TAPID 0x02d020dd
20 }
21 jtag newtap $_CHIPNAME tap -irlen 10 -expected-id $_FPGA_TAPID
22 
23 # CoreSight Debug Access Port
24 if { [info exists DAP_TAPID] } {
25         set _DAP_TAPID $DAP_TAPID
26 } else {
27         set _DAP_TAPID 0x4ba00477
28 }
29 jtag newtap $_CHIPNAME cpu -irlen 4 -expected-id $_DAP_TAPID
30 
31 #
32 # Cortex-A9 target
33 #
34 
35 # GDB target: Cortex-A9, using DAP, configuring only one core
36 # Base addresses of cores:
37 # core 0  -  0x80110000
38 # core 1  -  0x80112000
39 
40 set _TARGETNAME1 $_CHIPNAME.cpu.0
41 set _TARGETNAME2 $_CHIPNAME.cpu.1
42 
43 # A9 core 0
44 dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
45 target create $_TARGETNAME1 cortex_a -dap $_CHIPNAME.dap -coreid 0 -dbgbase 0x80110000
46 
47 $_TARGETNAME1 configure -event reset-start { adapter speed 1000 }
48 $_TARGETNAME1 configure -event reset-assert-post "cycv_dbginit $_TARGETNAME1"
49 
50 # A9 core 1
51 #target create $_TARGETNAME2 cortex_a -dap $_CHIPNAME.dap -coreid 1 -dbgbase 0x80112000
52 
53 #$_TARGETNAME2 configure -event reset-start { adapter speed 1000 }
54 #$_TARGETNAME2 configure -event reset-assert-post "cycv_dbginit $_TARGETNAME2"
55 
56 proc cycv_dbginit {target} {
57         # General Cortex-A8/A9 debug initialisation
58         cortex_a dbginit
59 }

 

标签:OpenOCD,set,Nano,DE10,CHIPNAME,dap,TAPID,TARGETNAME1,DAP
From: https://www.cnblogs.com/lyuyangly/p/16663664.html

相关文章

  • openocd
    ssr-zenan@ssrzenan:~/esp/esp-idf/examples/get-started/blink$openocd--versionOpenOn-ChipDebuggerv0.11.0-esp32-20220411(2022-04-11-08:47)LicensedunderGN......
  • leetcode10-正则表达式匹配
    正则表达式匹配dpdp[i][j]表示s[0:i]和p[0:j]是否匹配。如果i==0&&j==0,那么说明两个字符串都没有选择字符,是true如果j==0,那么说明匹配串没有字符而原字符串......
  • leetcode1033-移动石子直到连续
    移动石子直到连续分类讨论classSolution{publicint[]numMovesStones(inta,intb,intc){if(a>b){intt=a;a=b;b=t;}if(a>......