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 ?

BR,
Drasko


On Fri, Apr 1, 2011 at 6:38 PM, Øyvind Harboe <oyvind.har...@zylin.com> wrote:
> On Fri, Apr 1, 2011 at 6:29 PM, Drasko DRASKOVIC
> <drasko.drasko...@gmail.com> wrote:
>> In fact, I noticed that placing somewhere mips_ejtag_drscan_32_out()
>> works, but in some places mips_ejtag_drscan_32() must be kept, and can
>> not be replaced with mips_ejtag_drscan_32_out().
>>
>> What is the real difference between these two functions and when is
>> safe to replace ?
>
> The _out() version clocks data out.
>
> The original version clocks data out and also clocks data back in
> into the variable passed to drscan_32().
>
> You have to check if the value clocked in is *used* later on.
>
> Your "32_out" fn looks fine.
>
> --
> Ø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

Reply via email to