target.c 73.9 KB
Newer Older
3001
3002
3003
3004
3005
		retval = target->type->write_memory(target, addr, width, count, buffer);
		if (retval != ERROR_OK) {
			/* BOO !*/
			LOG_ERROR("array2mem: Write @ 0x%08x, w=%d, cnt=%d, failed", addr, width, count);
			Jim_SetResult(interp, Jim_NewEmptyStringObj(interp));
3006
			Jim_AppendStrings(interp, Jim_GetResult(interp), "array2mem: cannot read memory", NULL);
3007
3008
3009
3010
			e = JIM_ERR;
			len = 0;
		}
	}
oharboe's avatar
oharboe committed
3011

3012
3013
3014
3015
	Jim_SetResult(interp, Jim_NewEmptyStringObj(interp));

	return JIM_OK;
}
3016
3017
3018
3019
3020
3021
3022
3023


/*
 * Local Variables: ***
 * c-basic-offset: 4 ***
 * tab-width: 4 ***
 * End: ***
 */
For faster browsing, not all history is shown. View entire blame