]> git.sur5r.net Git - openocd/commit
nRF51: Fix bug in Code memory size.
authorMichael Dietz <mjdietzx@gmail.com>
Mon, 30 May 2016 08:54:47 +0000 (01:54 -0700)
committerSpencer Oliver <spen@spen-soft.co.uk>
Tue, 4 Oct 2016 10:53:39 +0000 (11:53 +0100)
commit400dbedaeec230d9438d2c95a61ee63f2c15cc6d
treeb4fae355c8aa9feee251c1c75fa89af96bf452d8
parentdb6c6f5da4deaffc548122703e6951d0b1710603
nRF51: Fix bug in Code memory size.

The code memory size was a bug and seemed to be working by
accident since there happened to be 256 pages in the device that was
tested on which corresponded to 256kb.

Also don't fail if memory size != expected memory size based on hwid
as this hwid is unstable and should be used only for debug/diagnostics.

Change-Id: I4e98f7498a36c53fc51783eddfdaba704d30e3ca
Signed-off-by: Michael Dietz <mjdietzx@gmail.com>
Reviewed-on: http://openocd.zylin.com/3510
Tested-by: jenkins
Reviewed-by: Jiří Pinkava <j-pi@seznam.cz>
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
src/flash/nor/nrf51.c