Skip to content
Snippets Groups Projects
Commit 93bc4ec4 authored by Tomas Vanek's avatar Tomas Vanek Committed by Paul Fertser
Browse files

flash/nor: fix doc/help and range test for flash protect


Commit 77a1c01c introduced infrastructure
for utilizing protection blocks of different size than erase sector.
Parts of doc/help kept reading 'sector' instead of 'protection block'.
flash_driver_protect() parameter range testing did not switched
to bank->num_prot_blocks.
This change fixes it.

Change-Id: Iec301761190a1a1bcc4cb005a519b9e5e4fede51
Reported-by: default avatarMark Odell <mark@odell.ws>
Signed-off-by: default avatarTomas Vanek <vanekt@fbl.cz>
Reviewed-on: http://openocd.zylin.com/3917


Tested-by: jenkins
Reviewed-by: default avatarMark Odell <mrfirmware@gmail.com>
Reviewed-by: default avatarPaul Fertser <fercerpav@gmail.com>
parent 390c9aca
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.
Please register or to comment