Hello Igor I think this wouldn't hurt anyone and could be very useful for debugging like this.
But it should definately check via EMU_CMD_GET_CAPS first if command is available. At the moment the caps value is read from the device but for example the call to EMU_CMD_GET_MAX_MEM_BLOCK is done on my V3 JLink even though the caps value says the command is not available. This causes a segfault (not exactly sure, at least an error message), because the mem block size is set to 0. Benjamin On Tuesday 19 May 2009 01:39:06 am Igor Skochinsky wrote: > Hello Benjamin, > > Tuesday, May 19, 2009, 12:39:26 AM, you wrote: > > BS> There's this segger closed source linux gdm server tool... > BS> http://www.segger.com/pub/jlink/JLink_Linux_090202.tar.gz > BS> It can show the hardware version. > Is there a necessity to map missing JLink commands? I could find them > out, e.g.: > > ReadHardwareVersion > input: 0xF0 (1 byte) > output: version (4 bytes) > > ReadOTS (OTP Structure) > input: 0xE6 (1 byte) > output: OTS buffer (256 bytes) > +0x00 4 serial no > +0x10 16 OEM string > +0x20 16 feature string 1 > +0x30 16 feature string 2 > ... > +0x90 16 feature string 8 > > etc. _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development