mirror of
https://github.com/linux-msm/openocd.git
synced 2026-02-25 13:15:07 -08:00
kinetis: update support for all program flash granularities
Updates the Kinetis NOR flash support to handle all known block and sector sizes. Previously only 2kiB sectors were hard-coded, now all four known combinations non-volatile sector sizes are supported. The premise of separating Kinetis Program Flash (PFLASH) from FlexNVM is also introduced. This means each "block" of flash (in Freescale terms) is treated as a bank in OpenOCD. Correspondingly, the existing board configuration for the TWR-K60M512 eval system is updated to recognize two banks instead of one. A board config for the TWR-K60F120M is also added. Bank and sector erase and programming has been checked with both of the mentioned eval boards. Change-Id: Iae2d10ebf8f548d0a3698df5430bbbe1ccadc58a Signed-off-by: Christopher Kilgour <techie@whiterocker.com> Reviewed-on: http://openocd.zylin.com/663 Tested-by: jenkins Reviewed-by: Mathias Küster <kesmtp@freenet.de> Reviewed-by: Jan Dakinevich <jan.dakinevich@gmail.com> Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
This commit is contained in:
committed by
Spencer Oliver
parent
4b6af97978
commit
aeb3c4f37e
File diff suppressed because it is too large
Load Diff
17
tcl/board/twr-k60f120m.cfg
Normal file
17
tcl/board/twr-k60f120m.cfg
Normal file
@@ -0,0 +1,17 @@
|
||||
#
|
||||
# Freescale TWRK60F120M development board
|
||||
#
|
||||
|
||||
source [find target/k60.cfg]
|
||||
|
||||
$_TARGETNAME configure -event reset-init {
|
||||
puts "-event reset-init occured"
|
||||
}
|
||||
|
||||
#
|
||||
# Bank definition for the 'program flash' (instructions and/or data)
|
||||
#
|
||||
flash bank pflash.0 kinetis 0x00000000 0x40000 0 4 $_TARGETNAME
|
||||
flash bank pflash.1 kinetis 0x00040000 0x40000 0 4 $_TARGETNAME
|
||||
flash bank pflash.2 kinetis 0x00080000 0x40000 0 4 $_TARGETNAME
|
||||
flash bank pflash.3 kinetis 0x000c0000 0x40000 0 4 $_TARGETNAME
|
||||
@@ -11,4 +11,5 @@ $_TARGETNAME configure -event reset-init {
|
||||
#
|
||||
# Bank definition for the 'program flash' (instructions and/or data)
|
||||
#
|
||||
flash bank pflash.pflash kinetis 0x00000000 0x80000 0 4 $_TARGETNAME
|
||||
flash bank pflash.0 kinetis 0x00000000 0x40000 0 4 $_TARGETNAME
|
||||
flash bank pflash.1 kinetis 0x00040000 0x40000 0 4 $_TARGETNAME
|
||||
|
||||
Reference in New Issue
Block a user