projects
/
fw
/
openocd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
flash/nor/at91samd: Use 32-bit register writes for ST-Link compat
[fw/openocd]
/
src
/
flash
/
nor
/
at91samd.c
diff --git
a/src/flash/nor/at91samd.c
b/src/flash/nor/at91samd.c
index dd7c5f54f6e57dfc127d7e7a43b46f89a32291d8..3b8893252a32d56ffd2467596424aa67abed1915 100644
(file)
--- a/
src/flash/nor/at91samd.c
+++ b/
src/flash/nor/at91samd.c
@@
-1,4
+1,4
@@
-/
* SPDX-License-Identifier: GPL-2.0-or-later */
+/
/ SPDX-License-Identifier: GPL-2.0-or-later
/***************************************************************************
* Copyright (C) 2013 by Andrey Yurovsky *
/***************************************************************************
* Copyright (C) 2013 by Andrey Yurovsky *
@@
-543,7
+543,7
@@
static int samd_issue_nvmctrl_command(struct target *target, uint16_t cmd)
}
/* Issue the NVM command */
}
/* Issue the NVM command */
- res = target_write_u
16
(target,
+ res = target_write_u
32
(target,
SAMD_NVMCTRL + SAMD_NVMCTRL_CTRLA, SAMD_NVM_CMD(cmd));
if (res != ERROR_OK)
return res;
SAMD_NVMCTRL + SAMD_NVMCTRL_CTRLA, SAMD_NVM_CMD(cmd));
if (res != ERROR_OK)
return res;