On Fri, Apr 1, 2011 at 6:47 PM, Drasko DRASKOVIC <drasko.drasko...@gmail.com> wrote: > OK, so if I get it right : > If we want only to send data - we use mips_ejtag_drscan_32_out(). > > If we need it for checks, like : > > address = 0; > mips_ejtag_set_instr(ejtag_info, EJTAG_INST_ADDRESS); > mips_ejtag_drscan_32(ejtag_info, &address); > > if (address != MIPS32_PRACC_TEXT) > LOG_ERROR("mini program did not return to start"); > > we must use mips_ejtag_drscan_32(). > > Is this correct ?
almost. drscan_32() returns an error code you must check and drscan_32_out() does not. retval = mips_ejtag_drscan_32 ... if (retval != ERROR_OK) return retval; -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 87 40 27 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development