From: oharboe at B. <oh...@ma...> - 2009-04-23 16:03:43
|
Author: oharboe Date: 2009-04-23 16:03:42 +0200 (Thu, 23 Apr 2009) New Revision: 1516 Modified: trunk/doc/openocd.texi trunk/src/target/target/stm32.cfg Log: stm32.cfg can expect one of 4 id's. Modified: trunk/doc/openocd.texi =================================================================== --- trunk/doc/openocd.texi 2009-04-23 13:24:56 UTC (rev 1515) +++ trunk/doc/openocd.texi 2009-04-23 14:03:42 UTC (rev 1516) @@ -1606,7 +1606,9 @@ @itemize @bullet @item @b{-expected-id NUMBER} @* By default it is zero. If non-zero represents the -expected tap ID used when the JTAG chain is examined. See below. +expected tap ID used when the JTAG chain is examined. Repeat +the option as many times as required if multiple id's can be +expected. See below. @item @b{-disable} @item @b{-enable} @* By default not specified the tap is enabled. Some chips have a Modified: trunk/src/target/target/stm32.cfg =================================================================== --- trunk/src/target/target/stm32.cfg 2009-04-23 13:24:56 UTC (rev 1515) +++ trunk/src/target/target/stm32.cfg 2009-04-23 14:03:42 UTC (rev 1516) @@ -37,15 +37,15 @@ # See STM Document RM0008 # Section 26.6.2 # Low density devices, Rev A - set _BSTAPID 0x06412041 + set _BSTAPID1 0x06412041 # Medium density devices, Rev A - set _BSTAPID 0x06410041 + set _BSTAPID2 0x06410041 # Medium density devices, Rev B and Rev Z - set _BSTAPID 0x16410041 + set _BSTAPID3 0x16410041 # High density devices, Rev A - set _BSTAPID 0x06414041 + set _BSTAPID4 0x06414041 } -jtag newtap $_CHIPNAME bs -irlen 5 -ircapture 0x1 -irmask 0x1 -expected-id $_BSTAPID +jtag newtap $_CHIPNAME bs -irlen 5 -ircapture 0x1 -irmask 0x1 -expected-id $_BSTAPID1 -expected-id $_BSTAPID2 -expected-id $_BSTAPID3 -expected-id $_BSTAPID4 set _TARGETNAME [format "%s.cpu" $_CHIPNAME] target create $_TARGETNAME cortex_m3 -endian $_ENDIAN -chain-position $_TARGETNAME |