flash/nor/nrf5: improve handling of nRF52 flash errors 87/5587/2
authorTomas Vanek <vanekt@fbl.cz>
Mon, 13 Apr 2020 12:49:46 +0000 (14:49 +0200)
committerTomas Vanek <vanekt@fbl.cz>
Wed, 28 Oct 2020 10:51:48 +0000 (10:51 +0000)
commita5bf98f846eba410cdfc678b5b223052a68439c1
tree4c49c9bd66c64ac6ac75c31384c6089abbf880e7
parent491636c8b8328a54bef41b68771c2965dd468e05
flash/nor/nrf5: improve handling of nRF52 flash errors

nRF52 devices indicate a flash error by emitting hard fault
exception (unlike nRF51 series).

Change error message when NVMC READY read fails. A hard fault
from flash erase/write operation is detected here.

Check exit point of the flash write algo to ensure a failed
write is recognised.

Change-Id: I637eda268a6bf45f7f41bcb9dcd82db8f5cb41b4
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: http://openocd.zylin.com/5587
Tested-by: jenkins
src/flash/nor/nrf5.c