flash/nor/nrf5: handle ERROR_WAIT during nRF91 flash erase
[openocd.git] / tcl / target / imx7.cfg
blobbd9e3ddc021904b93b92cf44159cac91a9430e2c
1 # SPDX-License-Identifier: GPL-2.0-or-later
3 if { [info exists CHIPNAME] } {
4    set  _CHIPNAME $CHIPNAME
5 } else {
6    set  _CHIPNAME imx7
9 # CoreSight Debug Access Port
10 if { [info exists DAP_TAPID] } {
11         set _DAP_TAPID $DAP_TAPID
12 } else {
13         set _DAP_TAPID 0x5ba00477
16 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x01 -irmask 0x0f \
17         -expected-id $_DAP_TAPID
20 # Cortex-A7 target
22 # GDB target: Cortex-A7, using DAP, configuring only one core
23 # Base addresses of cores:
24 # core 0  -  0x80070000
25 # core 1  -  0x80072000
26 set _TARGETNAME $_CHIPNAME.cpu_a7
28 dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
30 target create $_TARGETNAME.0 cortex_a -dap $_CHIPNAME.dap \
31         -coreid 0 -dbgbase 0x80070000
33 target create $_TARGETNAME.1 cortex_a -dap $_CHIPNAME.dap \
34         -coreid 1 -dbgbase 0x80072000 -defer-examine
36 # Cortex-M4 target
38 set _TARGETNAME_2 $_CHIPNAME.cpu_m4
39 target create $_TARGETNAME_2 cortex_m -dap $_CHIPNAME.dap -ap-num 4 \
40         -defer-examine
43 # AHB mem-ap target
45 target create $_CHIPNAME.ahb mem_ap -dap $_CHIPNAME.dap -ap-num 0
47 targets $_TARGETNAME.0