flash: stm32l handle flash size read failure
commit531fbf0ef25e75884f2ade2acafcf010cb3d7d2a
authorSpencer Oliver <spen@spen-soft.co.uk>
Thu, 12 Jul 2012 11:25:10 +0000 (12 12:25 +0100)
committerFreddie Chopin <freddie.chopin@gmail.com>
Mon, 30 Jul 2012 06:26:23 +0000 (30 06:26 +0000)
treeea4df1d4856501251b9dadb80b4ccdead36841ef
parentfe583e78c264156544e1797979afb63f2962d109
flash: stm32l handle flash size read failure

Rather than failing if the flash size reg cannot be read lets assume
we have the max flash size fitted.

It is quite common on early ST silicon to not correct support this register.

Change-Id: Ife058d60ae0027faad2c929ebd5b7fe2ef27234d
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/743
Tested-by: jenkins
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
src/flash/nor/stm32lx.c