mirror of
https://git.code.sf.net/p/openocd/code
synced 2025-10-03 19:50:24 +00:00
When attempting to write to internal flash the flashing step fails with 'Error: timeout waiting for algorithm, a target reset is recommended'. Updated flashing algorithm for MAX32xxx to fix this. Change-Id: I51350c1320c9699ddcf6cb28d9299538bece4c4f Signed-off-by: Henrik Mau <henrik.mau@analog.com> Reviewed-on: https://review.openocd.org/c/openocd/+/8794 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-by: zapb <dev@zapb.de>
15 lines
956 B
C
15 lines
956 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
/***************************************************************************
|
|
* Copyright (C) 2016 by Maxim Integrated *
|
|
* Copyright (C) 2025 Analog Devices, Inc. *
|
|
***************************************************************************/
|
|
|
|
#define OPTIONS_128 0x01 /* Perform 128 bit flash writes */
|
|
#define OPTIONS_ENC 0x02 /* Encrypt the flash contents */
|
|
#define OPTIONS_AUTH 0x04 /* Authenticate the flash contents */
|
|
#define OPTIONS_COUNT 0x08 /* Add counter values to authentication */
|
|
#define OPTIONS_INTER 0x10 /* Interleave the authentication and count values*/
|
|
#define OPTIONS_RELATIVE_XOR 0x20 /* Only XOR the offset of the address when encrypting */
|
|
#define OPTIONS_KEYSIZE 0x40 /* Use a 256 bit KEY */
|