diff options
author | dbrownell <dbrownell@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-09-20 23:54:13 +0000 |
---|---|---|
committer | dbrownell <dbrownell@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-09-20 23:54:13 +0000 |
commit | 48e96a18eddc73c1affccb2c397e044e09678095 (patch) | |
tree | 6f0c8f1280cd838acc775345292eca6556eb30c3 | |
parent | 24df719b09c16563042aaa750e9b783794ade753 (diff) | |
download | openocd+libswd-48e96a18eddc73c1affccb2c397e044e09678095.tar.gz openocd+libswd-48e96a18eddc73c1affccb2c397e044e09678095.tar.bz2 openocd+libswd-48e96a18eddc73c1affccb2c397e044e09678095.tar.xz openocd+libswd-48e96a18eddc73c1affccb2c397e044e09678095.zip |
Enhancement: stm32 flash protection error message
This patch modifies an error message which, in its original state,
I find somewhat unhelpful. So a small hint was added.
Signed-off-by: Johnny Halfmoon <jhalfmoon at milksnot.com>
git-svn-id: svn://svn.berlios.de/openocd/trunk@2738 b42882b7-edfa-0310-969c-e2dbd0fdcd60
-rw-r--r-- | src/flash/stm32x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/stm32x.c b/src/flash/stm32x.c index 774b7d37..22bd4f97 100644 --- a/src/flash/stm32x.c +++ b/src/flash/stm32x.c @@ -410,7 +410,7 @@ static int stm32x_protect(struct flash_bank_s *bank, int set, int first, int las if ((first && (first % stm32x_info->ppage_size)) || ((last + 1) && (last + 1) % stm32x_info->ppage_size)) { - LOG_WARNING("sector start/end incorrect - stm32 has %dK sector protection", stm32x_info->ppage_size); + LOG_WARNING("Error: start and end sectors must be on a %d sector boundary", stm32x_info->ppage_size); return ERROR_FLASH_SECTOR_INVALID; } |