On Wed, May 20, 2009 at 12:53 AM, Gene Smith <g...@chartertn.net> wrote:
> OK, one more reply to self... > Using the Magnus patch, I just noticed that after openocd starts the > jlink LED goes off indicating further USB comm is not possible (it seems > to be true) and telnet cmds fail. If I try to restart oocd, I again get > the 3 failed retries on get caps and "don't worry" like before. If I > revert to Benjamin's patch, it comes up clean with no errors. Now I can > do telnet commands with no problem (such as jlink_info, mdb, reg, etc). > > Possibly the intention was to combine these patches, I am not sure. But > anyhow, for what its worth, it is now seems to be working for me with > Ben's patch. (I have not tried to do anything with gdb yet.) I can see two big differences between the patches. In Ben's patch, -#define EMU_CMD_HW_JTAG3 0xcf +#define EMU_CMD_HW_JTAG3 0xce (maybe this is EMU_CMD_HW_JTAG2 according to Ben's Mach 16 patch). /* max speed 12MHz v5.0 jlink */ -#define JLINK_MAX_SPEED 12000 (this is only for V5/6/7/Pro) +#define JLINK_MAX_SPEED 4000 (this is for V1/2/3/4 according to Segger) The common thing is to correct the endpoint and remove the EMU_CMD_GET_MAX_MEM_BLOCK command. Ben's patch remove more things. I will give it a try after work. -- Xiaofan http://mcuee.blogspot.com _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development