Skip to content
Snippets Groups Projects
Commit 2e0e6c56 authored by Tomas Vanek's avatar Tomas Vanek Committed by Freddie Chopin
Browse files

flash/nor/at91samd: fix chip erase of a secured device


'at91samd chip-erase' command did not work on secured device.

Fix it changing address of DSU.CTRL register
(see Atmel SAM D21 datasheet, 13.9. Intellectual Property Protection).

While on it check error return of DSU.CTRL write.

Change-Id: I83155a634a5458cdc0cc16c99c0e155eb1d8b3d6
Signed-off-by: default avatarTomas Vanek <vanekt@fbl.cz>
Reported-by: default avatarThomas Irmen <tirmen@gmx.net>
Reviewed-on: http://openocd.zylin.com/4043


Tested-by: jenkins
Reviewed-by: default avatarFreddie Chopin <freddie.chopin@gmail.com>
parent 44ad4fdc
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment