This is an automated email from Gerrit.

Uwe Hermann (u...@hermann-uwe.de) just uploaded a new patch set to Gerrit, 
which you can find at http://openocd.zylin.com/34

-- gerrit
commit bc144f4ff2d4564bb6528755f5a32313fd5617e1
Author: Uwe Hermann <u...@hermann-uwe.de>
Date:   Wed Oct 19 01:09:44 2011 +0200

    Toshiba TMPA900 config: Fix incorrect working area.
    
    The Toshiba TMPA900 series (TMPA900/901) only has internal RAM regions
    RAM-0 (16kB) and RAM-1 (8kB) which we can use as working area.
    
    This is probably a copy-paste error from tmpa910.cfg, which has the
    correct values and sizes for the TMPA910 series (TMPA910/911/912/913):
    there are RAM-0, RAM-1, and RAM-2 (each 16kB).
    
    Also, change "built-in RAM" to "internal RAM" to match what the
    datasheet uses.
    
    Change-Id: I993cd6b7fadc28cf34e5cc18426bb2bb42597670
    Signed-off-by: Uwe Hermann <u...@hermann-uwe.de>

diff --git a/tcl/target/tmpa900.cfg b/tcl/target/tmpa900.cfg
index d5b458f..90851f6 100644
--- a/tcl/target/tmpa900.cfg
+++ b/tcl/target/tmpa900.cfg
@@ -42,15 +42,9 @@ jtag_ntrst_delay 20
 set _TARGETNAME $_CHIPNAME.cpu
 target create $_TARGETNAME arm926ejs -endian $_ENDIAN -chain-position 
$_TARGETNAME
 
-# built-in RAM0
-#working_area 0 0xf8004000 0x4000 nobackup
-# built-in RAM1
-#working_area 1 0xf8008000 0x4000 nobackup
-# built-in RAM2
-#working_area 2 0xf800c000 0x4000 nobackup
-# built-in RAM 0-2 48k total
-#working_area 0 0xf8004000 0xc000 nobackup
-
-# Internal sram1 memory
-$_TARGETNAME configure -work-area-phys 0xf8004000 -work-area-size 0x8000 \
+# Internal RAM-0 (16kB): 0xf8004000
+# Internal RAM-1 (8kB): 0xf8008000
+
+# Use internal RAM-0 and RAM-1 as working area (24kB total).
+$_TARGETNAME configure -work-area-phys 0xf8004000 -work-area-size 0x6000 \
 -work-area-backup 0
diff --git a/tcl/target/tmpa910.cfg b/tcl/target/tmpa910.cfg
index fa6f87b..36874d9 100644
--- a/tcl/target/tmpa910.cfg
+++ b/tcl/target/tmpa910.cfg
@@ -42,15 +42,10 @@ jtag_ntrst_delay 20
 set _TARGETNAME $_CHIPNAME.cpu
 target create $_TARGETNAME arm926ejs -endian $_ENDIAN -chain-position 
$_TARGETNAME
 
-# built-in RAM0
-#working_area 0 0xf8004000 0x4000 nobackup
-# built-in RAM1
-#working_area 1 0xf8008000 0x4000 nobackup
-# built-in RAM2
-#working_area 2 0xf800c000 0x4000 nobackup
-# built-in RAM 0-2 48k total
-#working_area 0 0xf8004000 0xc000 nobackup
-
-# Internal sram1 memory
+# Internal RAM-0 (16kB): 0xf8004000
+# Internal RAM-1 (16kB): 0xf8008000
+# Internal RAM-2 (16kB): 0xf800c000
+
+# Use internal RAM-0, RAM-1, and RAM-2 as working area (48kB total).
 $_TARGETNAME configure -work-area-phys 0xf8004000 -work-area-size 0xc000 \
 -work-area-backup 0

-- 
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to