Re: [Openocd-development] [PATCH] adding interface_signal and bitbang functionalities

2011-07-08 Thread Rodrigo Rosa
hi! i'm currently using the merge i made of the bitbang stuff with openocd. i'm using an FT2232H. one of the channels is a UART to a microproccesor. the other channel is set to JTAG (driven by openocd) and the extra pins on that channel (10 pins!) are being used to read status pins and handle a

Re: [Openocd-development] [PATCH] adding interface_signal and bitbang functionalities

2011-07-08 Thread Tomek CEDRO
On Fri, Jul 8, 2011 at 5:59 PM, Rodrigo Rosa rodrigorosa...@gmail.com wrote: i'm currently using the merge i made of the bitbang stuff with openocd. (..) nice work! :) Thank you Rodrigo! Nice to hear you find it useful and that its working as supposed :-) :-) I have made some small progress

Re: [Openocd-development] [PATCH] adding interface_signal and bitbang functionalities

2011-07-08 Thread Michael Schwingen
Am 07/08/2011 08:30 PM, schrieb Tomek CEDRO: ps/2: You can make perfect one layer pcb at home using photolitography (laser printer + standard laser foil + positive 20 + cleaner + philips halogen bulb type 14552 12V/75W only requires 1 minute to create perfect mask). Still I don't know any

Re: [Openocd-development] [PATCH] adding interface_signal and bitbang functionalities

2011-06-20 Thread Tomek CEDRO
On Mon, Jun 20, 2011 at 7:46 PM, Rodrigo Rosa rodrigorosa...@gmail.com wrote: i'm trying to apply these patches on the current head, and i get: bitbang.c: In function ‘handle_bitbang_command’: bitbang.c:90: error: implicit declaration of function ‘strnstr’ bitbang.c:90: error: assignment

Re: [Openocd-development] [PATCH] adding interface_signal and bitbang functionalities

2011-06-20 Thread Øyvind Harboe
Btw. is there any way in git to edit a commit? :-) Yes: git rebase -i origin/master -- Ø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

Re: [Openocd-development] [PATCH] adding interface_signal and bitbang functionalities

2011-06-20 Thread Tomek CEDRO
On Mon, Jun 20, 2011 at 8:18 PM, Øyvind Harboe oyvind.har...@zylin.com wrote: Btw. is there any way in git to edit a commit? :-) Yes: git rebase -i origin/master Aaaarg, could have figured that myself ;-P Tanks! :-) I think I have found my problem - the bitbang can be used only after cable is

Re: [Openocd-development] [PATCH] adding interface_signal and bitbang functionalities

2011-06-20 Thread Tomek CEDRO
I have found the issue - command init is mandatory for bitbang to work as it initialize the interface (pretty obvious). On another place I was using some configuration file that had this init inside and this is why it worked there, I mislooked that :-( So generally speaking the patches are

Re: [Openocd-development] [PATCH] adding interface_signal and bitbang functionalities

2011-06-20 Thread Tomek CEDRO
Here goes another patch to be applied on top of previous patches: -it fixes strnstr() problem - sorry for that, man says clearly it is FreeBSD specific! -it changes command mode to COMMAND_EXEC so 'bitbang' is only available after 'init' -some minor string and constants fixes Waiting for feedback

Re: [Openocd-development] [PATCH] adding interface_signal and bitbang functionalities

2011-06-20 Thread Rodrigo Rosa
i found a bug in interface_signal del, the name of the signal was not passed down to the functions thats look for it, so it didn't work. attached a patch :) since this stuff is not yet in the master branch (right?), i based this patch on openocd-ifsigbitbang@git://repo.or.cz/openocd/libswd.git i

Re: [Openocd-development] [PATCH] adding interface_signal and bitbang functionalities

2011-06-20 Thread Tomek CEDRO
On Mon, Jun 20, 2011 at 11:33 PM, Rodrigo Rosa rodrigorosa...@gmail.com wrote: i found a bug in interface_signal del, the name of the signal was not passed down to the functions thats look for it, so it didn't work. attached a patch  :) Tanks, I will take a look, but signal deletion worked for

[Openocd-development] [PATCH] adding interface_signal and bitbang functionalities

2011-06-16 Thread Tomek CEDRO
This is the patch pack that should add interface_signal() and bitbang() functionality (binary backend + tcl frontend) to the interface API + example implementation for FT2232 interfaces (layout independent). Patches can be applied on top of the current GIT HEAD. Please verify their functionality