flash: remove algorithm exit_point address for supported targets
[fw/openocd] / src / flash / nor / pic32mx.c
index 2fe864d4f0fbf592d05b76164e28a3ad1a7b6cc7..363f49e84a84f670643cd91fc7b588ce7b8274b3 100644 (file)
@@ -360,7 +360,7 @@ static int pic32mx_write_block(struct flash_bank *bank, uint8_t *buffer,
 
                if ((retval = target_run_algorithm(target, 0, NULL, 3, reg_params,
                                pic32mx_info->write_algorithm->address,
-                               pic32mx_info->write_algorithm->address + (sizeof(pic32mx_flash_write_code) - 76),
+                               0,
                                10000, &mips32_info)) != ERROR_OK)
                {
                        LOG_ERROR("error executing pic32mx flash write algorithm");