aboutsummaryrefslogtreecommitdiff
path: root/src/flash/nor/stm32x.c
diff options
context:
space:
mode:
authorSpencer Oliver <ntfreak@users.sourceforge.net>2010-02-11 20:55:31 +0000
committerSpencer Oliver <ntfreak@users.sourceforge.net>2010-02-12 10:49:11 +0000
commit747a607aef6572dad8740b76596f2b72036b8685 (patch)
tree56d4c3f3d9e2b13de00e9afbaf6879df79cde135 /src/flash/nor/stm32x.c
parentd4d4b11a778c169a23a99f03e9d61f6bf21002c2 (diff)
downloadriscv-openocd-747a607aef6572dad8740b76596f2b72036b8685.zip
riscv-openocd-747a607aef6572dad8740b76596f2b72036b8685.tar.gz
riscv-openocd-747a607aef6572dad8740b76596f2b72036b8685.tar.bz2
STM32x: issue warning when unlocking device (bug #16)
Issue warning to user when unlocking or writing the option bytes. The new settings will not take effect until a target reset. Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
Diffstat (limited to 'src/flash/nor/stm32x.c')
-rw-r--r--src/flash/nor/stm32x.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/flash/nor/stm32x.c b/src/flash/nor/stm32x.c
index eaa3a0e..bfdd3cd 100644
--- a/src/flash/nor/stm32x.c
+++ b/src/flash/nor/stm32x.c
@@ -978,7 +978,9 @@ COMMAND_HANDLER(stm32x_handle_unlock_command)
return ERROR_OK;
}
- command_print(CMD_CTX, "stm32x unlocked");
+ command_print(CMD_CTX, "stm32x unlocked.\n"
+ "INFO: a reset or power cycle is required "
+ "for the new settings to take effect.");
return ERROR_OK;
}
@@ -1114,7 +1116,9 @@ COMMAND_HANDLER(stm32x_handle_options_write_command)
return ERROR_OK;
}
- command_print(CMD_CTX, "stm32x write options complete");
+ command_print(CMD_CTX, "stm32x write options complete.\n"
+ "INFO: a reset or power cycle is required "
+ "for the new settings to take effect.");
return ERROR_OK;
}