Hello Rodrigo :-) On Tue, Jun 14, 2011 at 7:12 PM, Rodrigo Rosa <rodrigorosa...@gmail.com> wrote: > i had to copy aclocal and other stuff from /usr/share/ to > /usr/local/share/ to get bootstrap to work correctly. this is probably > because of freeBSD vs LSD stuff (don't know much about the > differences)
Hmm, try runing the autogen.sh at submodules/libswd, this will run autotools and recreate configure script, maybe the configure scripts somehow depend on my system (FreeBSD) or there is something wrong with the Ubintu ;-P > these patches are based on the openocd-swd branch at > git://repo.or.cz/openocd/libswd.git: > > 0001-edits-to-compile: > this patch is what i need to do after: > git clone -b openocd-swd git://repo.or.cz/openocd/libswd.git test_swd > to get stuff to compile. helper/types.h seems to be openocd issue. i also commented part definig the _Bool. PCMD_SIZE is a good idea, although I would put it in bitbang.h and rename it into something more readable, like PARAM_COMMAND_MAX_LEN, I'll fix that, thanks :-) > 0002-added-my-test-stuff.patch > this is some code i added/modified to test my stuff. > it basically adds a copy of the ktlink_swd but with a different name. > the plan was to play around with it to get it to suite my needs. I'll add the patch for MINIMODULE as it is now for you to be able to test some stuff :-) I am considering total inetrface initialization from configuration script - this way there would be no need to recompile binary to add new interface/layout. This is now possible with interface_signal and bitbang :-) > at this point i can get the pre-swd stuff working, but when trying to > use the interface minimodule_swd.cfg i get a runtime error: > ../tcl/target/dsp568013.cfg:29: invalid command name "jtag" > in procedure 'script' > at file "embedded:startup.tcl", line 58 > at file "../tcl/target/dsp568013.cfg", line 29 > > the same target config works fine with a ft2232 layout instead of a > ft2232_swd layout (for example minimodule.cfg). Please note that I did not get into TARGET yet, so this is the possible cause! Program is trying to call jtag target routines from swd transport because it does not know the swd yet... although there is backend ready to do this. Ill do it as my first step after new rebasing :-) > any ideas on how to debug this? > i'm finding it hard to get to the error, not sure how to dig down from the > tcl layer. Well, using GDB to debug TCL commands can be tricky, you should place breakpoints in important places then continue from one to another.. this is how I do the stuff, maybe there is some better way. It would be easier with clean program flow. Maybe you should try at transport->init() this is the first place where SWD bus is being interrogated for targets. Still, ft2232->transfer() is not yet verified. Good luck! :-) Tomek ps/2: Please move to "general swd support in openocd" as this discussion is not really about rebasing/merging :-) -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development