freddie_chopin@op.pl fix handling of workarea

git-svn-id: svn://svn.berlios.de/openocd/trunk@2431 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
oharboe
2009-06-30 11:50:04 +00:00
parent 41057944b5
commit d3c77fdbb2
2 changed files with 6 additions and 10 deletions

View File

@@ -12,16 +12,16 @@ if { [info exists ENDIAN] } {
set _ENDIAN little
}
#Checking if user had set the work-area-size for the chip
#If not, the value will be set to 16k
# Work-area is a space in RAM used for flash programming
# By default use 16kB
if { [info exists WORKAREASIZE] } {
set _WORKAREASIZE $WORKAREASIZE
} else {
set _WORKAREASIZE 0x4000
}
# jtag speed
jtag_khz 500
# JTAG speed should be <= F_CPU/6. F_CPU after reset is 8MHz, so use F_JTAG = 1MHz
jtag_khz 1000
jtag_nsrst_delay 100
jtag_ntrst_delay 100