From 260eb4548b01da3ecd2cd146bb22a0f36df1a038 Mon Sep 17 00:00:00 2001 From: Spencer Oliver Date: Mon, 19 Jul 2010 20:33:04 +0100 Subject: flash: remove algorithm exit_point address for supported targets For the above targets the exit_point is optional when used with run_algorithm, so remove it. This makes updating the algorithm less error prone. Signed-off-by: Spencer Oliver --- src/flash/nor/stm32x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/flash/nor/stm32x.c') diff --git a/src/flash/nor/stm32x.c b/src/flash/nor/stm32x.c index 5ce5d455..4ec777dd 100644 --- a/src/flash/nor/stm32x.c +++ b/src/flash/nor/stm32x.c @@ -519,7 +519,7 @@ static int stm32x_write_block(struct flash_bank *bank, uint8_t *buffer, if ((retval = target_run_algorithm(target, 0, NULL, 4, reg_params, stm32x_info->write_algorithm->address, - stm32x_info->write_algorithm->address + (sizeof(stm32x_flash_write_code) - 10), + 0, 10000, &armv7m_info)) != ERROR_OK) { LOG_ERROR("error executing stm32x flash write algorithm"); -- cgit v1.2.3