X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fflash%2Fnor%2Fat91samd.c;h=3b8893252a32d56ffd2467596424aa67abed1915;hb=refs%2Fheads%2Fmaster;hp=a0252a2767afd368213bfe9db31102aa31d32016;hpb=ae937791d35b0820e0bc9bf0ab134c2bebd113e4;p=fw%2Fopenocd diff --git a/src/flash/nor/at91samd.c b/src/flash/nor/at91samd.c index a0252a276..3b8893252 100644 --- a/src/flash/nor/at91samd.c +++ b/src/flash/nor/at91samd.c @@ -543,7 +543,7 @@ static int samd_issue_nvmctrl_command(struct target *target, uint16_t cmd) } /* Issue the NVM command */ - res = target_write_u16(target, + res = target_write_u32(target, SAMD_NVMCTRL + SAMD_NVMCTRL_CTRLA, SAMD_NVM_CMD(cmd)); if (res != ERROR_OK) return res;