kinetis : Detect MCU flash parameters based on the SDID register. 23/1823/2
authorPer Ekman <pekenator@gmail.com>
Fri, 29 Nov 2013 10:30:07 +0000 (11:30 +0100)
committerSpencer Oliver <spen@spen-soft.co.uk>
Sun, 22 Dec 2013 20:24:42 +0000 (20:24 +0000)
commit1ab86419d72dd90dbbde028263582346fa1e9dd1
tree3a5825283c8fc37cbb5d751a53bc4f02b4b4d842
parent537b75aa45e03bb2adab1c4fc033a294a26401f9
kinetis : Detect MCU flash parameters based on the SDID register.

Try to detect the flash parameters based on the MCU SDID register. The hope
is that this works for K and KL series MCUs but it has only been tested on
a K21. YMMV.

Change-Id: Idfe71383a449065267f393b09ee3c3b24ac6a803
Signed-off-by: Per Ekman <pekenator@gmail.com>
Reviewed-on: http://openocd.zylin.com/1823
Tested-by: jenkins
Reviewed-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/flash/nor/kinetis.c