]> git.sur5r.net Git - openocd/commitdiff
STM32x: issue warning when unlocking device (bug #16)
authorSpencer Oliver <ntfreak@users.sourceforge.net>
Thu, 11 Feb 2010 20:55:31 +0000 (20:55 +0000)
committerSpencer Oliver <ntfreak@users.sourceforge.net>
Fri, 12 Feb 2010 10:49:11 +0000 (10:49 +0000)
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>
src/flash/nor/stm32x.c

index eaa3a0e450177587d510c6de0c4c23a4f9ee0b1b..bfdd3cd0110a46d859dcdff708924c932afeae1f 100644 (file)
@@ -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;
 }