diff options
Diffstat (limited to 'src/flash/str7x.c')
-rw-r--r-- | src/flash/str7x.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/flash/str7x.c b/src/flash/str7x.c index 0e35bcc9..5c17a6c5 100644 --- a/src/flash/str7x.c +++ b/src/flash/str7x.c @@ -435,6 +435,7 @@ int str7x_write_block(struct flash_bank_s *bank, u8 *buffer, u32 offset, u32 cou if ((retval = target->type->run_algorithm(target, 0, NULL, 6, reg_params, str7x_info->write_algorithm->address, str7x_info->write_algorithm->address + (19 * 4), 10000, &armv4_5_info)) != ERROR_OK) { LOG_ERROR("error executing str7x flash write algorithm"); + retval = ERROR_FLASH_OPERATION_FAILED; break; } |