Hi,
here's a patch which adds basic support for the Toshiba TMPA9xx series
ARM9 microcontrollers.
jtag> detect
IR length: 4
Chain length: 1
Device Id: 00000111100100100110000000110001 (0x07926031)
Manufacturer: Toshiba (0x031)
Part(0): TMPA9xx (0x7926)
Stepping: 0
Filename: /home/uwe/ur/share/urjtag/toshiba/tmpa9xx/tmpa9xx
I haven't tested more than "detect", but the info in the tmpa9xx file
is all correct as per datasheets of the various TMPA90x/91x devices.
Uwe.
--
http://hermann-uwe.de | http://sigrok.org
http://randomprojects.org | http://unmaintained-free-software.org
Index: ChangeLog
===================================================================
--- ChangeLog (Revision 2008)
+++ ChangeLog (Arbeitskopie)
@@ -1,3 +1,13 @@
+2011-11-02 Uwe Hermann <[email protected]>
+
+ * data/toshiba/tmpa9xx/tmpa9xx, data/toshiba/tmpa9xx/STEPPINGS: Add stepping
+ and basic JTAG register/instruction info for Toshiba TMPA9xx series
+ microcontrollers (ARM9 / ARM926EJ-S).
+
+ * data/toshiba/PARTS: Add entry for Toshiba TMPA9xx.
+
+ * data/Makefile.am: Add new STEPPINGS and tmpa9xx files.
+
2011-10-24 Jie Zhang <[email protected]>
* data/analog/bf592/STEPPINGS: Add silicon revision 0.2.
Index: data/toshiba/PARTS
===================================================================
--- data/toshiba/PARTS (Revision 2008)
+++ data/toshiba/PARTS (Arbeitskopie)
@@ -24,3 +24,7 @@
# bits 27-12 of the Device Identification Register
0000000000011110 tx4925 TX4925
0000000000011111 tx4926 TX4926
+
+# Same ID for TMPA900/901 and TMPA910/911/912/913, it seems.
+0111100100100110 tmpa9xx TMPA9xx
+
Index: data/toshiba/tmpa9xx/tmpa9xx
===================================================================
--- data/toshiba/tmpa9xx/tmpa9xx (Revision 0)
+++ data/toshiba/tmpa9xx/tmpa9xx (Revision 0)
@@ -0,0 +1,60 @@
+#
+# Copyright (C) 2011 Uwe Hermann <[email protected]>
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+# 02111-1307, USA.
+#
+# Documentation:
+# [1] TOSHIBA Original RISC 32-Bit Microprocessor, ARM Core Family,
+# TMPA900CMXBG (2010-07-08)
+# [2] TOSHIBA Original RISC 32-Bit Microprocessor, ARM Core Family,
+# TMPA901CMXBG (2010-07-29)
+# [3] TOSHIBA 32-Bit RISC Microcontroller, TX09 Series,
+# TMPA910CRAXBG (2010-06-02)
+# [4] TOSHIBA 32-Bit RISC Microcontroller, TX09 Series,
+# TMPA911CRXBG (2011-03-09)
+#
+
+# TODO: Add 'signal' lines.
+
+# See [1], chapter 3.2.6, page 39, "Boundary Scan Register".
+
+# mandatory data registers
+register BSR 231 # Boundary Scan Register
+register BR 1 # Bypass Register
+
+# optional data registers
+register DIR 32 # Device Identification Register
+
+
+# See [1], chapter 3.2.5, page 37, "Instruction register", table 3.2.1.
+
+instruction length 4
+
+# mandatory instructions
+instruction EXTEST 0000 BSR
+instruction SAMPLE/PRELOAD 0001 BSR
+instruction BYPASS 1111 BR
+
+# optional instructions
+instruction HIGHZ 0010 BR
+instruction CLAMP 0011 BR
+
+# Toshiba TMPA9xx MCUs are always little endian as per datasheet.
+# See [1], chapter 3.1.1, page 31, "Reset Operation".
+endian little
+
+# TODO: Add 'bit' lines.
+
Index: data/toshiba/tmpa9xx/STEPPINGS
===================================================================
--- data/toshiba/tmpa9xx/STEPPINGS (Revision 0)
+++ data/toshiba/tmpa9xx/STEPPINGS (Revision 0)
@@ -0,0 +1,21 @@
+#
+# Copyright (C) 2011 Uwe Hermann <[email protected]>
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+# 02111-1307, USA.
+#
+
+# bits 31-28 of the Device Identification Register
+0000 tmpa9xx 0
Index: data/Makefile.am
===================================================================
--- data/Makefile.am (Revision 2008)
+++ data/Makefile.am (Arbeitskopie)
@@ -192,6 +192,8 @@
toshiba/tx4925/tx4925 \
toshiba/tx4926/STEPPINGS \
toshiba/tx4926/tx4926 \
+ toshiba/tmpa9xx/STEPPINGS \
+ toshiba/tmpa9xx/tmpa9xx \
xilinx/PARTS \
xilinx/xc18v02pc44/xc18v02pc44 \
xilinx/xc18v02pc44/STEPPINGS \
------------------------------------------------------------------------------
RSA® Conference 2012
Save $700 by Nov 18
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
UrJTAG-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/urjtag-development