Add missing STM32 "0x06412041, Revision A" BSTAPID to list of available ones.

This is checked against revision 8, 11-Feb-2009, of the RM0008 manual
from http://www.st.com/stonline/products/literature/rm/13902.pdf.


Also, I noticed that stm32.cfg will _not_ work for some targets per se,
as it basically does:

   set _BSTAPID 0x06410041
   set _BSTAPID 0x16410041
   set _BSTAPID 0x06414041

which will (unless I'm mistaken) overwrite the variable and only the
last one will take effect. So stm32.cfg shouldn't normally be used
standalone, but rather 'source'd by another (board) file which overrides
the _BSTAPID, correct?


Uwe.
-- 
http://www.hermann-uwe.de  | http://www.holsham-traders.de
http://www.crazy-hacks.org | http://www.unmaintained-free-software.org
Index: src/target/target/stm32.cfg
===================================================================
--- src/target/target/stm32.cfg	(Revision 1440)
+++ src/target/target/stm32.cfg	(Arbeitskopie)
@@ -36,11 +36,13 @@
 } else {
   # See STM Document RM0008
   # Section 26.6.2
-  # Medium Density RevA
+  # Low density devices, Rev A
+  set _BSTAPID 0x06412041
+  # Medium density devices, Rev A
   set _BSTAPID 0x06410041
-  # Rev B and Rev Z
+  # Medium density devices, Rev B and Rev Z
   set _BSTAPID 0x16410041
-  # High Density Devices, Rev A
+  # High density devices, Rev A
   set _BSTAPID 0x06414041
 }   
 jtag newtap $_CHIPNAME bs  -irlen 5 -ircapture 0x1 -irmask 0x1 -expected-id $_BSTAPID
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to