I made a TCP interface to the Tcl port, and i was having trouble with it.
My C code does:
if(capture)
retval = sprintf(echoString,"capture {%s}%c",cmd,EOC);// Add the
Tcl interpreter end of line char
else
retval = sprintf(echoString,"catch {%s}%c",cmd,EOC);// Add the Tcl
interpreter end of line charif capture==0, then OpenOCD returns: - '0': success - '1': failure if capture==1, then you get bunch of text, and you have to parse it and think to determine what happened. Patch 1: flash nor protection i found a couple of non propagated errors in flash/nor/Tcl.c Patch 2: jtagtapenabler imo, jtag tapenabler should return an error if it fails to enable/disable a tap the patch adds this. i don't know much about tcl, but i did not find any other way to get this to work. thanks. -- Rodrigo.
0001-fix-return-error-msj.patch
Description: Binary data
0002-fix-tapenabler-return-code.patch
Description: Binary data
_______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
