Sergey> With my custom config of
Sergey>
Sergey> source [find interface/jlink.cfg]
Sergey> telnet_port 4444
Sergey> gdb_port 3333
Sergey> source [find target/at91rm9200.cfg]
Sergey>
Hmm, above seems *wrong* - ie: rm9200 - or the sam9260...
I assume a typo in you remail.
Sergey> In target/at91sam9260minimal.cfg I have changed [.....]
Sergey> [snip]
Sergey> set _CPUTAPID 0x0792603f
Sergey> [snip]
That is not the end of the problems, it should be $_TAPNAME, not $_TAP_NAME
I have commited fixes to SVN, they are here below.
The commit also fixes the $_TAPID
And I found another typo in another file.
I believe the commit should fix your problem.
Commit is below for reference.
-Duane.
====
bash-3.2$ svn diff
Index: src/target/target/at91r40008.cfg
===================================================================
--- src/target/target/at91r40008.cfg (revision 1219)
+++ src/target/target/at91r40008.cfg (working copy)
@@ -29,7 +29,7 @@
#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf
-expected-id $_CPUTAPID
set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
-target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position
$_TARGENAME -variant arm7tdmi
+target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position
$_TARGETNAME -variant arm7tdmi
$_TARGETNAME configure -event gdb-flash-erase-start {
Index: src/target/target/at91sam9260.cfg
===================================================================
--- src/target/target/at91sam9260.cfg (revision 1219)
+++ src/target/target/at91sam9260.cfg (working copy)
@@ -9,7 +9,7 @@
# Target configuration
######################
-$_TARGET_NAME configure -event reset-init {
+$_TARGETNAME configure -event reset-init {
# at reset chip runs at 32khz
jtag_khz 8
mww 0xfffffd08 0xa5000501 # RSTC_MR : enable user reset
Index: src/target/target/at91sam9260minimal.cfg
===================================================================
--- src/target/target/at91sam9260minimal.cfg (revision 1219)
+++ src/target/target/at91sam9260minimal.cfg (working copy)
@@ -18,7 +18,7 @@
set _CPUTAPID $CPUTAPID
} else {
# force an error till we get a good number
- set _CPUTAPID 0xffffffff
+ set _CPUTAPID 0x0792603f
}
reset_config trst_and_srst
@@ -37,6 +37,6 @@
target create $_TARGETNAME arm926ejs -endian $_ENDIAN -chain-position
$_TARGETNAME -variant arm926ejs
# Internal sram1 memory
-$_TARGET_NAME configure -work-area-virt 0 -work-area-phys 0x00300000
-work-area-size 0x1000 -work-area-backup 1
+$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x00300000
-work-area-size 0x1000 -work-area-backup 1
bash-3.2$
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development