X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fflash%2Fstellaris.c;h=001b0176cd8e4a6119b77af85b761b8e04c4df88;hp=38ded4f1ae4bebaee3ec91f25616dc268719cffc;hb=fbe8cf72a5e6c80fed5fba8754d790ca63ad2b65;hpb=95e13054cafeeb13163d85822e4202e12007e1a7 diff --git a/src/flash/stellaris.c b/src/flash/stellaris.c index 38ded4f1ae..001b0176cd 100644 --- a/src/flash/stellaris.c +++ b/src/flash/stellaris.c @@ -779,7 +779,7 @@ static int stellaris_write_block(struct flash_bank_s *bank, u8 *buffer, u32 offs buf_set_u32(reg_params[2].value, 0, 32, 4*thisrun_count); LOG_INFO("Algorithm flash write %i words to 0x%x, %i remaining", thisrun_count, address, wcount); LOG_DEBUG("Algorithm flash write %i words to 0x%x, %i remaining", thisrun_count, address, wcount); - if ((retval = target->type->run_algorithm(target, 0, NULL, 3, reg_params, write_algorithm->address, write_algorithm->address + sizeof(stellaris_write_code)-10, 10000, &armv7m_info)) != ERROR_OK) + if ((retval = target_run_algorithm(target, 0, NULL, 3, reg_params, write_algorithm->address, write_algorithm->address + sizeof(stellaris_write_code)-10, 10000, &armv7m_info)) != ERROR_OK) { LOG_ERROR("error executing stellaris flash write algorithm"); retval = ERROR_FLASH_OPERATION_FAILED;