From: oharboe at B. <oh...@ma...> - 2009-06-30 13:50:05
|
Author: oharboe Date: 2009-06-30 13:50:04 +0200 (Tue, 30 Jun 2009) New Revision: 2431 Modified: trunk/tcl/board/olimex_stm32_h103.cfg trunk/tcl/target/stm32.cfg Log: fre...@op... fix handling of workarea Modified: trunk/tcl/board/olimex_stm32_h103.cfg =================================================================== --- trunk/tcl/board/olimex_stm32_h103.cfg 2009-06-30 09:11:10 UTC (rev 2430) +++ trunk/tcl/board/olimex_stm32_h103.cfg 2009-06-30 11:50:04 UTC (rev 2431) @@ -1,11 +1,7 @@ -# # Olimex STM32-H103 eval board -# # http://olimex.com/dev/stm32-h103.html -# -#Set flash size to 128k for STM32103RB device -set WORKAREASIZE 0x20000 +# Work-area size (RAM size) = 20kB for STM32F103RB device +set WORKAREASIZE 0x5000 source [find target/stm32.cfg] - Modified: trunk/tcl/target/stm32.cfg =================================================================== --- trunk/tcl/target/stm32.cfg 2009-06-30 09:11:10 UTC (rev 2430) +++ trunk/tcl/target/stm32.cfg 2009-06-30 11:50:04 UTC (rev 2431) @@ -12,16 +12,16 @@ 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 |