Skip to content
This repository has been archived by the owner on Feb 21, 2020. It is now read-only.

Commit

Permalink
stlink: issue error for stm32 option writing
Browse files Browse the repository at this point in the history
The stlink interface currently does not support 16bit read/writes.
Until a fix is included we issue a error that this is unsupported.

Change-Id: I4552cf2bd3b29e90ecc905325b743c08e2b92d67
Signed-off-by: Spencer Oliver <[email protected]>
Reviewed-on: http://openocd.zylin.com/808
Tested-by: jenkins
Reviewed-by: Freddie Chopin <[email protected]>
  • Loading branch information
ntfreak authored and FreddieChopin committed Sep 7, 2012
1 parent e26ddb6 commit 552e027
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/flash/nor/stm32f1x.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,14 @@ static int stm32x_erase_options(struct flash_bank *bank)

stm32x_info = bank->driver_priv;

/* stlink is currently does not support 16bit
* read/writes. so we cannot write option bytes */
struct armv7m_common *armv7m = target_to_armv7m(target);
if (armv7m && armv7m->stlink) {
LOG_ERROR("Option bytes currently unsupported for stlink");
return ERROR_FAIL;
}

/* read current options */
stm32x_read_options(bank);

Expand Down

0 comments on commit 552e027

Please sign in to comment.