mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #3253 from gebart/pr/mulle-openocd-090
mulle: Update OpenOCD conf to work with 0.9.0
This commit is contained in:
commit
b0e34b1c9d
@ -39,16 +39,18 @@ source [find target/k60.cfg]
|
||||
|
||||
#
|
||||
# Bank definition for the 'program flash' (instructions and/or data)
|
||||
# OpenOCD 0.9.0 has a definition of the first flash bank in target/kx.cfg, but
|
||||
# not OpenOCD 0.8.0 and earlier.
|
||||
#
|
||||
flash bank $_CHIPNAME.pflash.0 kinetis 0x00000000 0x20000 0 4 $_TARGETNAME
|
||||
flash bank $_CHIPNAME.pflash.1 kinetis 0x00020000 0x20000 0 4 $_TARGETNAME
|
||||
catch {flash bank $_CHIPNAME.flash kinetis 0 0 0 0 $_TARGETNAME}
|
||||
catch {flash bank $_CHIPNAME.flash2 kinetis 0 0 0 0 $_TARGETNAME}
|
||||
|
||||
# Work-area is a space in RAM used for flash programming
|
||||
# By default use 16kB
|
||||
# By default use 4 kB
|
||||
if { [info exists WORKAREASIZE] } {
|
||||
set _WORKAREASIZE $WORKAREASIZE
|
||||
} else {
|
||||
set _WORKAREASIZE 0x4000
|
||||
set _WORKAREASIZE 0x1000
|
||||
}
|
||||
|
||||
$_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE -work-area-backup 0
|
||||
|
@ -38,16 +38,18 @@ source [find target/k60.cfg]
|
||||
|
||||
#
|
||||
# Bank definition for the 'program flash' (instructions and/or data)
|
||||
# OpenOCD 0.9.0 has a definition of the first flash bank in target/kx.cfg, but
|
||||
# not OpenOCD 0.8.0 and earlier.
|
||||
#
|
||||
flash bank $_CHIPNAME.pflash.0 kinetis 0x00000000 0x40000 0 4 $_TARGETNAME
|
||||
flash bank $_CHIPNAME.pflash.1 kinetis 0x00040000 0x40000 0 4 $_TARGETNAME
|
||||
catch {flash bank $_CHIPNAME.flash kinetis 0 0 0 0 $_TARGETNAME}
|
||||
catch {flash bank $_CHIPNAME.flash2 kinetis 0 0 0 0 $_TARGETNAME}
|
||||
|
||||
# Work-area is a space in RAM used for flash programming
|
||||
# By default use 16kB
|
||||
# By default use 4 kB
|
||||
if { [info exists WORKAREASIZE] } {
|
||||
set _WORKAREASIZE $WORKAREASIZE
|
||||
} else {
|
||||
set _WORKAREASIZE 0x4000
|
||||
set _WORKAREASIZE 0x1000
|
||||
}
|
||||
|
||||
$_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE -work-area-backup 0
|
||||
|
Loading…
Reference in New Issue
Block a user