Re: [Openocd-development] libftdi: couldn't read enough bytes from FT2232 device (79 81)

2010-06-02 Thread Tomek CEDRO
Hello Martin! If you are using the libftdi and FT2232H version, make sure you have latest libftdi - with older version (ie. 0.14) you will have problems. Regards, Tomek -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info ___ Openocd-development mailing

Re: [Openocd-development] experimental SWD code for the git master

2010-06-06 Thread Tomek CEDRO
Guys in a month or two I'll be ready for action! I've got the required equipment already (STM32Primer{1,2}, KT-LINK, ... ), just need some free time. Currently I'm hardly fighing deadlines! :\ Best regards! Tomek -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info

Re: [Openocd-development] SWD adapter / JTAG modification (FT2232)

2010-07-18 Thread Tomek CEDRO
Hello Freddie! On Fri, Jul 16, 2010 at 11:14 PM, Freddie Chopin freddie_cho...@op.pl wrote: Hoping for soon-to-come SWD support in OpenOCD I'm wondering about an adapter and/or modification of JTAG schematics. Analyzing the schematics of existing JTAG/SWD interfaces gave me nothing more than a

Re: [Openocd-development] SWD adapter / JTAG modification (FT2232)

2010-07-20 Thread Tomek CEDRO
Hello all :-) On Tue, Jul 20, 2010 at 10:22 AM, simon qian simonqian.open...@gmail.com wrote: New Versaloon driver is ready, including JTAG, SWD, USART, SPI, IIC, GPIO(SRST and TRST control), ADC(target power sampling), POWER(outout power to target) and so on. The new driver is based on

Re: [Openocd-development] Idea on how to add support for trace capability

2010-08-27 Thread Tomek CEDRO
Hello Øyvind! On 8/27/10, Øyvind Harboe oyvind.har...@zylin.com wrote: Presumably one of the benefits of trace would be to be able to step back/forth. Stepping back can be hard to implement in efficient way... Best regards, Tomek -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info

[Openocd-development] SWD work intensification

2010-10-07 Thread Tomek CEDRO
Hello SerialWireDebuggers! ;-) From what I see on other posts, a release might be coming with the end of the year... if its not the bugfix release 0.4.1, then I thought that this might be a good occasion to intensify SWD works to make it work with 0.5.0! What is the current work status? Who is

Re: [Openocd-development] SWD work intensification

2010-10-07 Thread Tomek CEDRO
On Thu, Oct 7, 2010 at 4:38 PM, Laurent Gauch laurent.ga...@amontec.com wrote: Yes, you 're right . SWD is not incremental changes since it touch the low layers of the OpenOCD. Amontec Team is working on SWD too, and have some first communication results. But the How-to integrate correctly

Re: [Openocd-development] SWD work intensification

2010-10-10 Thread Tomek CEDRO
Hello Peter! On Sat, Oct 9, 2010 at 10:14 PM, Peter Stuge pe...@stuge.se wrote: Tomek CEDRO wrote: What are the current approaches of independent SWD implementations? Maybe Simon could also mention something about his USB-to-XXX method of doing SWD with the Versaloon. Thank you

Re: [Openocd-development] [PATCH/RFC] partial SWD transport (SWD infrastructure #2)

2010-10-10 Thread Tomek CEDRO
Hello David, nice to hear from you! :-) On Mon, Oct 11, 2010 at 2:29 AM, David Brownell davi...@pacbell.net wrote: From: David Brownell dbrown...@users.sourceforge.net Subject: initial SWD transport (SWD infrastructure #2) This piggy backs on JTAG so it's not yet pretty, but that seems

Re: [Openocd-development] Error running openocd on hacked stm32 primer2 / SWD Progress Status

2010-10-20 Thread Tomek CEDRO
Hello Nived, Hello OCD'ers :-) On Wed, Oct 20, 2010 at 9:39 PM, Nived nive...@gmail.com wrote: Hi, We have hacked (connected jtag pins on the processor manually to create a jtag port on the board) an stm32 primer2  that uses an stm32f103vet6 processor. When we try to start the server, we are

Re: [Openocd-development] Current stable release is very very stale

2010-11-29 Thread Tomek CEDRO
on in stm32primer{1,2} and KT-LINK SWJ cable based on FT2232H. I want it all to work by end of year :-) Please take a look at poject website: http://stm32primer2swd.sf.net Best regards, Tomek Cedro On 29 Nov 2010 14:15, simon qian simonqian.open...@gmail.com wrote: How is going on SWD support? I

Re: [Openocd-development] Current stable release is very very stale

2010-11-29 Thread Tomek CEDRO
...however I can understand the urge to have stable release done. If the GIT repository contains mainly bugfixes, then maybe it is time to freeze it as 0.4.1, so we can release 0.5.0 with SWD suport as planned - anyway it will probably happen soon when the SWD is already implemented and tested..?

Re: [Openocd-development] SWD progress

2010-11-30 Thread Tomek CEDRO
: ... Have you synchronized your work with that of Tomek Cedro? It should go the other way around. The only part of my work that's not yet been public is a driver that first needs test-time; OpenOCD integration has been on-going. Nobody has bothered asking any technical questions, though, or even

Re: [Openocd-development] [PATCH] remove srst_pulls_trst from LPC2xxx target scripts

2010-12-05 Thread Tomek CEDRO
On Mon, Dec 6, 2010 at 12:35 AM, Rolf Meeser rolfm_...@yahoo.de wrote: On 12/05/2010 11:00 PM, Freddie Chopin wrote: So how about this idea of removing useless and wrong occurences of srst_pulls_trst from lpc config files? If your findings were correct, you would have discovered an easy way

Re: [Openocd-development] OpenOCD Cortex-A8 / S5PC100 support...?

2010-12-06 Thread Tomek CEDRO
On Mon, Dec 6, 2010 at 5:43 PM, Nick Pelling nickpell...@nanodome.com wrote: (...)constructing a suitable target cfg file for it. I've asked Samsung for documentation listing all its JTAG codes, but that may take some time to Hello Nick, the other problem is that Samsung may want you to sign

Re: [Openocd-development] OpenOCD Cortex-A8 / S5PC100 support...?

2010-12-06 Thread Tomek CEDRO
On Mon, Dec 6, 2010 at 5:43 PM, Nick Pelling nickpell...@nanodome.com wrote: (...) constructing a suitable target cfg file for it. I've asked Samsung for documentation listing all its JTAG codes, Btw. have you tried UrJTAG and the discovery command - it helps finding such registers on unknown

Re: [Openocd-development] need help flashing OMAP3530 on beagle rev C3

2010-12-08 Thread Tomek CEDRO
I am interested in uploading uboot into blank flash on similar device too, so waiting for thread to spread ;-) -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info ___ Openocd-development mailing list Openocd-development@lists.berlios.de

[Openocd-development] SWD progress

2010-12-23 Thread Tomek CEDRO
Hello Openers! :-) Today is my birthday so I want to share promised draft of the libswd, that is now available at http://files.tomek.cedro.info/electronics/arm/cortex/libswd/ ;-) I forgot power supply for my laptop so was not able to put it on the sourceforge and document with doxygen as planned

Re: [Openocd-development] SWD progress

2010-12-27 Thread Tomek CEDRO
Hello David! On Sat, Dec 25, 2010 at 3:07 AM, David Brownell davi...@pacbell.net wrote: http://files.tomek.cedro.info/electronics/arm/cortex/libswd/ I took a quick look.  Two comments: Looks at first glance like it might help write some types of bit-level SWD driver  (not ones that use

Re: [Openocd-development] SWD progress

2010-12-27 Thread Tomek CEDRO
On Sat, Dec 25, 2010 at 3:17 AM, David Brownell davi...@pacbell.net wrote: Also, as promised some time back I'll soon commit my second SWD framework patch.  The build issues with mainline OpenOCD have now been resolved; framework patch got updated; and it passes sanity testing.  BUT ... SWD

Re: [Openocd-development] SWD progress

2011-01-12 Thread Tomek CEDRO
On Wed, Jan 12, 2011 at 8:52 AM, David Brownell davi...@pacbell.net wrote: From: Peter Stuge pe...@stuge.se Subject: Re: [Openocd-development] SWD progress To: openocd-development@lists.berlios.de Date: Tuesday, January 11, 2011, 11:06 PM simon qian wrote: SWD in Versaloon is based on

Re: [Openocd-development] include interface configuration first or target configuration first?

2011-01-12 Thread Tomek CEDRO
Hello Simon :-) On Wed, Jan 12, 2011 at 6:57 PM, simon qian simonqian.open...@gmail.com wrote: When SWD is initializing, in swd_select, get_current_target is called. But maybe target is not initialized here. Log: Warn : 25 47 transport.c:127 allow_transports(): must select a transport.

Re: [Openocd-development] SWD progress

2011-01-12 Thread Tomek CEDRO
On Wed, Jan 12, 2011 at 1:38 PM, simon qian simonqian.open...@gmail.com wrote: For SWD transaction layer, only 3 operation is needed. 1. initializaion/finalization/config(set trn) 2. output sequency on SWD, which is used to make adi into SWD mode. 3. The other is the transaction itself,

Re: [Openocd-development] How to define the trn in configuration files?

2011-01-18 Thread Tomek CEDRO
On Tue, Jan 18, 2011 at 10:26 AM, simon qian simonqian.open...@gmail.com wrote: I have fixed the patch for OpenOCD to support SWD of Versaloon, but not on the transport framework. I'll then try the transport framework. One question: How to define the trn in the configuration file? Hello

Re: [Openocd-development] How to define the trn in configuration files?

2011-01-18 Thread Tomek CEDRO
On Tue, Jan 18, 2011 at 1:18 PM, simon qian simonqian.open...@gmail.com wrote: In my implementation of SWD in OpenOCD, trun is configured in configuration files. Nice! :-) OpenOCD has already great infrastructure implemented and it will surely allow many other transport implemented. Maybe it

Re: [Openocd-development] About where to call dap_to_jtag

2011-01-22 Thread Tomek CEDRO
On Sat, Jan 22, 2011 at 2:03 PM, simon qian simonqian.open...@gmail.com wrote: According to the feedback of my patch for SWD. I was busy fixing these feedback these days. I found that dap_to_jtag is not called. So it will be problem to operate JTAG after operating SWD. In my opinion,

Re: [Openocd-development] About where to call dap_to_jtag

2011-01-22 Thread Tomek CEDRO
On Sat, Jan 22, 2011 at 2:15 PM, simon qian simonqian.open...@gmail.com wrote: For helping the implementation of SWD transport, I can provide 2-3 Versaloon hardwares. The SWD driver is implemented, so people can concentrate on higher layer, and you don't need to add the driver into git. And

Re: [Openocd-development] [PATCH 6/6] cortex_a9: move dap_ap_select to arm_avi_v5

2011-02-12 Thread Tomek CEDRO
Hello Luca! On Sat, Feb 12, 2011 at 12:54 PM, Luca Ellero lro...@gmail.com wrote: dap_ap_select was used in the code at various points, but that can lead to confusion, without any knowledge of what AP is really selected at some points. (...) This is also somehow related with the TRANSPORT and

Re: [Openocd-development] SWD progress

2011-03-05 Thread Tomek CEDRO
Good news - I have managed to perform bidirectional communications with the STM32(Primer2) using ft2232h device (kt-link) + libswd incorporated into urjtag using its drivers! I had some hard time recently caused by incompetent people at ARM writing documentation - even most up to date

Re: [Openocd-development] [PATCH 1/2] cortex a9: merge cortex a9 and a8 code

2011-03-21 Thread Tomek CEDRO
Hello world :-) On Mon, Mar 21, 2011 at 3:00 PM, Øyvind Harboe oyvind.har...@zylin.com wrote: In terms of maintenance we can't really support two files that are so similar, so unless I hear major objections, I'd rather go with this patch and sort out any regressions afterwards. Maybe those

Re: [Openocd-development] [PATCH 1/2] cortex a9: merge cortex a9 and a8 code

2011-03-22 Thread Tomek CEDRO
On Tue, Mar 22, 2011 at 6:22 AM, Øyvind Harboe oyvind.har...@zylin.com wrote: cortex a8 and a9 are very similar, so they should be merged and conditional code used + configuration options. cortex m3 is more mature(hence breakage is more of an issue) and much more different so merging *all*

Re: [Openocd-development] Pandaboard testing

2011-04-02 Thread Tomek CEDRO
On Sat, Apr 2, 2011 at 7:04 AM, Øyvind Harboe oyvind.har...@zylin.com wrote: I've pushed a fix for the ti_pandaboard.cfg file. Anyone out there who can give it a  try? I should have one in some time - I will let you know when I get it (~month?) :-) Best regards, Tomek -- CeDeROM, SQ7MHZ,

Re: [Openocd-development] Fwd: mourning the loss of David Brownell

2011-04-05 Thread Tomek CEDRO
On Tue, Apr 5, 2011 at 9:26 AM, Xiaofan Chen xiaof...@gmail.com wrote: As I have seen this tangentally mentioned already a few times publically, I figured it warranted it's own announcement now. Linux has lost a great developer with the passing of David Brownell recently and he will be

Re: [Openocd-development] RTOS Thread awareness patch

2011-04-11 Thread Tomek CEDRO
On Mon, Apr 11, 2011 at 1:05 PM, Øyvind Harboe oyvind.har...@zylin.com wrote: In target.c, I'm wondering if we should modify the code to execute the same code path and have support for no new packages, unless the target-rtos is initialized. Hello! This modular design of OpenOCD is so awsome

Re: [Openocd-development] cortex_a :smp feature

2011-04-13 Thread Tomek CEDRO
Hello Michael! Awsome work and it extends functionality without destroying old ones! I really enjoy OpenOCD day by day :-) Maybe it would be more convenient to be able to set bp/wp for each core/target, but this is minor issue :-) Best regards! :-) Tomek -- CeDeROM, SQ7MHZ,

Re: [Openocd-development] [doc] MIPS EJTAG Communication Demystified

2011-04-14 Thread Tomek CEDRO
Great work Drasko! This document should be included into openocd source tree to help mips developers, and probably to some world-wide-web location as it offers many practical information :-) Best regards, Tomek -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info

Re: [Openocd-development] [doc] MIPS EJTAG Communication Demystified

2011-04-14 Thread Tomek CEDRO
On Thu, Apr 14, 2011 at 10:59 AM, Drasko DRASKOVIC drasko.drasko...@gmail.com wrote: (..) After this it can be replicated on any WWW location. At least we have it now in lists archives. That's better than nothing ;). There are or will be people looking for the answers you/we already know,

Re: [Openocd-development] [doc] MIPS EJTAG Communication Demystified

2011-04-14 Thread Tomek CEDRO
Exactly - such wiki is not to replace documentation/manual, but rather gather konwledge about embedded systems, especially useful for developers, and so developers have scratchpad for their own subprojects (ie. http://wiki.freebsd.org/ or http://stm32primer2swd.sf.net) Best regards! :-) Tomek --

Re: [Openocd-development] [doc] MIPS EJTAG Communication Demystified

2011-04-14 Thread Tomek CEDRO
On Thu, Apr 14, 2011 at 11:52 AM, Øyvind Harboe oyvind.har...@zylin.com wrote: If you look at the OpenOCD documentation, you'll find that Zach Welch did write up development documentation and that it's in git repository. Hello Øyvind! How about creating open and centralized knowledge-base about

Re: [Openocd-development] [doc] MIPS EJTAG Communication Demystified

2011-04-14 Thread Tomek CEDRO
On Thu, Apr 14, 2011 at 2:02 PM, Øyvind Harboe oyvind.har...@zylin.com wrote: I don't particularly like wiki's as they would not be in sync with the git source code. What's wrong with updating the documentation in OpenOCD git? No no, its not about doubling the manual! The manual is built up

[Openocd-development] openocd restructurization for new transports (swd)

2011-04-16 Thread Tomek CEDRO
Hello! While I am working on integration libswd with openocd, it turned out that OpenOCD needs some restructurization in source tree and API standarization, so I have made some changes in my local repository [1]. Please take a look and let me know if my proposition is okay so I can move forward

Re: [Openocd-development] [PATCH] Correct very slow initialization steps and strange behaviour

2011-04-27 Thread Tomek CEDRO
On Wed, Apr 27, 2011 at 9:43 AM, Øyvind Harboe oyvind.har...@zylin.com wrote: Scripts would be encouraged by the default low speed to have an adapter_khz command to set a more approperiate default for that board. Further down the road, I was thinking about modifying OpenOCD to have *no*

Re: [Openocd-development] [PATCH] Correct very slow initialization steps and strange behaviour

2011-04-27 Thread Tomek CEDRO
On Wed, Apr 27, 2011 at 10:08 AM, Øyvind Harboe oyvind.har...@zylin.com wrote: (...) So I think having no default and forcing the user to specify a value might be the way to go. Agreed. If we could have that patch first and not go the detour of a fixed default across all interfaces, then

Re: [Openocd-development] Multi-core platform support

2011-05-10 Thread Tomek CEDRO
Hello Sebastien :-) On Tue, May 10, 2011 at 3:33 PM, Sébastien Baillou sbaillou.mail...@gmail.com wrote: (..) 1- Currently, multiple CPUs are connected to the GDB clients via multiple GDB servers and not via GDB threads. Is the addition of a threaded GDB server planned in any roadmap ? I am

Re: [Openocd-development] Outstanding patches

2011-05-16 Thread Tomek CEDRO
On Mon, May 16, 2011 at 8:32 AM, Øyvind Harboe oyvind.har...@zylin.com wrote: One thing that would help greatly for someone wanting to review your patch is that you wrote it as a full, normal git patch with a comment. Totally agree that there should be some systematic approach to development

Re: [Openocd-development] Outstanding patches

2011-05-21 Thread Tomek CEDRO
On Wed, May 18, 2011 at 8:52 AM, Øyvind Harboe oyvind.har...@zylin.com wrote: The position of a release master is open. Nobody has stepped up. The build scripts are there. David Brownell did 0.4. We're pretty much ready to cut 0.5 and could probably cut a release per quarter. Maybe 0.4.x

Re: [Openocd-development] Outstanding patches

2011-05-21 Thread Tomek CEDRO
On Sat, May 21, 2011 at 10:22 AM, Øyvind Harboe oyvind.har...@zylin.com wrote: For now we just continue to make incremental improvements to openocd as they arrive. If good patches for swd or general refactoring, rinsing and general cleanup, backed by someone who's willing to do work to

Re: [Openocd-development] OMAP3530 / beagleboard supper status

2011-05-24 Thread Tomek CEDRO
On Mon, May 23, 2011 at 2:30 PM, Simon Schwarz simonschwarz...@googlemail.com wrote: Hi List, I'am a bit frustrated with OpenOCD... I have more or less random problems with it. So I am at a point to just drop it because I can't say if there are problems in the code or just another openOCD

Re: [Openocd-development] OMAP3530 / beagleboard supper status

2011-05-24 Thread Tomek CEDRO
On Tue, May 24, 2011 at 11:12 AM, Simon Schwarz simonschwarz...@googlemail.com wrote: The problem is I don't have the time to do that :( I'am working on my bachelor thesis and the title is not devkit8000/omap3530 support for OpenOCD - unfortunately ;) Yes, I had the same problem with my BSc

Re: [Openocd-development] OMAP3530 / beagleboard supper status

2011-05-24 Thread Tomek CEDRO
On Tue, May 24, 2011 at 11:41 AM, Tomek CEDRO tomek.ce...@gmail.com wrote: ps/2: I just found that switching off clock divisor in 2232H breaks khz clocking - fix in progress... Clock selection mechanism was broken, but its already fixed in current source tree, false alarm, I have documented

Re: [Openocd-development] ft2232 - how to read/write from/to gpio

2011-05-25 Thread Tomek CEDRO
On Wed, May 25, 2011 at 7:56 PM, Rodrigo Rosa rodrigorosa...@gmail.com wrote: (..) What I need is similar to getting a command to manually blink the leds on a given layout (execute layout-blink @ ft2232.c). The difference would be that i want to send/receive parameters. Use the MPSSE and

Re: [Openocd-development] ft2232 - how to read/write from/to gpio

2011-05-26 Thread Tomek CEDRO
On Thu, May 26, 2011 at 2:00 AM, Rodrigo Rosa rodrigorosa...@gmail.com wrote: what I would like to implement is a user command to run from the telnet interface to read and write to the io pins available on the ftdi chip while set to jtag mode. Ah, I forgot to mention the most important - to be

Re: [Openocd-development] bugfix for adapter_khz_to_speed

2011-05-26 Thread Tomek CEDRO
I think this bug (or similar) was removed very recently (less than month), surely in cable_init(), maybe some other place? Please take a look at changelog - I had the similar issue with FT2232H but its now fixed with change in adapter_init() -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info

Re: [Openocd-development] Outstanding patches = Fix: Correctly exit function: ft2232_init when an error occurred

2011-05-30 Thread Tomek CEDRO
Hello Sebastien, Please stay to your convention and use open to open functionality and init to init functionality - this is very good idea and used in transport layer (select, then init), but there is select instead of open, so maybe we should change all names to open..? Using init_sub brings

Re: [Openocd-development] Outstanding patches = Fix: Correctly exit function: ft2232_init when an error occurred

2011-05-31 Thread Tomek CEDRO
Uhm, ok then if it was like this. Anyway init for the interface or transport that does not do init but verify/interrogate/start sounds strange for me anyway. open and init sounds better :-) Maybe init and start would be even more unabiguous? But thats for future.. :-) -- CeDeROM, SQ7MHZ,

Re: [Openocd-development] Outstanding patches = Fix: Correctly exit function: ft2232_init when an error occurred

2011-06-01 Thread Tomek CEDRO
On Wed, Jun 1, 2011 at 3:06 PM, Øyvind Harboe oyvind.har...@zylin.com wrote: I haven't read over this patch. Do you think it is ready or does it need work? Hello :-) For me lots of things should be changed/reorganized anyway so I don't really want to interfere at this stage until I know I have

Re: [Openocd-development] Outstanding patches = Fix: Correctly exit function: ft2232_init when an error occurred

2011-06-01 Thread Tomek CEDRO
Hello again :-) I have reviewed the patch. The old source code had 3 functions ft2232_init() that can call ft2232_init_libftdi() or ft2232_init_ftd2xx() depending on a ft2232 ftdi communication library available. This is pretty simple and coherent. The new source code (after patching) have 6

Re: [Openocd-development] Outstanding patches = Fix: Correctly exit function: ft2232_init when an error occurred

2011-06-01 Thread Tomek CEDRO
On Wed, Jun 1, 2011 at 7:05 PM, Peter Stuge pe...@stuge.se wrote: Please just use goto to handle errors. goto hell ;-) God function looks like: input o---[function]---o output no other :-) no gotos :-) no globals :-) nice program flow :-) clean and self commentary code :-) good vibration :-)

Re: [Openocd-development] Adding gdbserver as a target

2011-06-04 Thread Tomek CEDRO
Hello Oyvind! :-) On Sat, Jun 4, 2011 at 7:43 AM, Øyvind Harboe oyvind.har...@zylin.com wrote: I've been pondering adding a new target that would use a gdbserver as a backend. Here it would be possible to use e.g. OpenOCD's thread support against commercial GDB servers that add support for

Re: [Openocd-development] Adding gdbserver as a target

2011-06-04 Thread Tomek CEDRO
On Sat, Jun 4, 2011 at 8:31 AM, Øyvind Harboe oyvind.har...@zylin.com wrote: I definitely want to see a gdb server target. I don't think a gdb server openocd interface makes any sense. From current organization: -target is a device/cpu -target needs physical connection using interface Remote

Re: [Openocd-development] Adding gdbserver as a target

2011-06-04 Thread Tomek CEDRO
On Sat, Jun 4, 2011 at 9:26 AM, Øyvind Harboe oyvind.har...@zylin.com wrote: No reason why target should require this in the future. I'd also like to see a dummy target for testing purposes that requires no interface. Hmm, such dummy target could become pretty good universal framework for

Re: [Openocd-development] Outstanding patches = Fix: Correctly exit function: ft2232_init when an error occurred

2011-06-06 Thread Tomek CEDRO
Hello Laurent, Sorry if my comment seems not meritoric, I am not mentioning about coding style because this leaves a lot to tell in case of all program source tree. I am not advanced OpenOCD developer, I am learning code internals for some time and I have some grasp on it already (enough to

Re: [Openocd-development] [PATCH] use one configuration for all JTAGkey devices.

2011-06-06 Thread Tomek CEDRO
On Mon, Jun 6, 2011 at 11:44 AM, Laurent Gauch laurent.ga...@amontec.com wrote: If our ft2232.c patches are not merged quickly, Amontec Team will certainly come with a new specific jtagkey.c API driver  instead of the ft2232.c JTAG driver. The advantage with a specific Amontec JTAGkey API

Re: [Openocd-development] Outstanding patches = Fix: Correctly exit function: ft2232_init when an error occurred

2011-06-07 Thread Tomek CEDRO
Hello all! :-) From all of the above posts Laurent it looks that you are trying to do the TRANSPORT job. Please take a look at transport infrastructure. The interface simply needs to be available for other things to work, so there is no point in having handle ready with unusable interface. I can

[Openocd-development] General SWD Support in OpenOCD

2011-06-07 Thread Tomek CEDRO
Hello world :-) The work on SWD is almost ready. You can watch the code at [1]. This is the source tree I am currently working on with KT-LINK interface and STM32Primer{1,2}. After some fixes and verification its in a few days it should be merged with OpenOCD source tree. You can already test,

Re: [Openocd-development] General SWD Support in OpenOCD

2011-06-07 Thread Tomek CEDRO
Sure thing Oyvind! I am working on the separate repository that is publicly available, so anyone can take a look at the code, also the migration using git should be possible easily. When I consider the work is definitely finished (soon I hope), I will work on providing small patches :-) You may

Re: [Openocd-development] General SWD Support in OpenOCD

2011-06-07 Thread Tomek CEDRO
On Tue, Jun 7, 2011 at 5:02 PM, Øyvind Harboe oyvind.har...@zylin.com wrote: First thing I tried was to rebase your master branch on top of origin/master and that didn't work... Uhm, this is based on a version from March or April... and there are also some unnecessary changes that should be

Re: [Openocd-development] Versaloon driver update

2011-06-09 Thread Tomek CEDRO
On Thu, Jun 9, 2011 at 2:58 PM, simon qian simonqian.open...@gmail.com wrote: Is this patch acceptable? Or should I put all codes in vsllink.c file? My proposition is to put everything in vslink.c for better organization in upcoming update..? Then we pick the best of all and put yet in another

Re: [Openocd-development] [PATCH 2/5] ft2232: Refactor ft2232_init_*() into ft2232_initone()

2011-06-09 Thread Tomek CEDRO
On Thu, Jun 9, 2011 at 10:57 PM, Andreas Fritiofson andreas.fritiof...@gmail.com wrote: ft2232_init really refers to init of the openocd driver, while ft2232_init_{libftdi,ftd2xx} refers to init of the ftdi subsystem including hardware (using either of the libraries). Different inits, hence one

Re: [Openocd-development] Outstanding patches = Fix: Correctly exit function: ft2232_init when an error occurred

2011-06-09 Thread Tomek CEDRO
Hello Andreas :-) On Thu, Jun 9, 2011 at 11:30 PM, Andreas Fritiofson andreas.fritiof...@gmail.com wrote: I have created simple quit() that sets all port pins high and as input (mpsse command 0x80 0x82) but that did not shut down the yellow led :-( Since the suitable setting depends on the

Re: [Openocd-development] ft2232 layout refactoring plans

2011-06-09 Thread Tomek CEDRO
Uhm, from what I understand LAYOUT is only used for initialization of specific device based on FT*232 device, maybe other minor stuff, all work is done in fact by queue_flush() and it is common for all devices as it simply translates queued JTAG commands into MPSSE that produces actions on the

Re: [Openocd-development] Outstanding patches = Fix: Correctly exit function: ft2232_init when an error occurred

2011-06-09 Thread Tomek CEDRO
On Fri, Jun 10, 2011 at 12:35 AM, Andreas Fritiofson andreas.fritiof...@gmail.com wrote: What are you talking about? Not all ftdi dongles are wired like this = there is no universal default setting suitable for all dongles. Uhm, I read bad at 3am :-) You told that not always setting Hi-Z on FT

Re: [Openocd-development] General SWD Support in OpenOCD

2011-06-09 Thread Tomek CEDRO
On Tue, Jun 7, 2011 at 5:02 PM, Øyvind Harboe oyvind.har...@zylin.com wrote: First thing I tried was to rebase your master branch on top of origin/master and that didn't work... Could you rebase it on top of master branch and force a push? I also have problem with merge conflict in

[Openocd-development] New functionalities in Interface API: interface_signal, bitbang

2011-06-09 Thread Tomek CEDRO
Good news - the interface_signal and bitbang framework is now ready and verified on KT-LINK FT2232 based device. The example screenshots of new functionality are here: http://sourceforge.net/apps/mediawiki/stm32primer2swd/index.php?title=Main_Page#Screenshots_2 It took some more time to verify

Re: [Openocd-development] Outstanding patches = Fix: Correctly exit function: ft2232_init when an error occurred

2011-06-10 Thread Tomek CEDRO
The solution for deinitialization is trivial - fix generic ft22332_quit() to match general needs of well designed interfaces (i.e. putting Hi-Z on FT chip is enough to cut it off electrically from target / produce Hi-Z on cable pinout). If any other dongle needs some specific deinitialization

Re: [Openocd-development] Peter Stuge is now an OpenOCD maintainer

2011-06-10 Thread Tomek CEDRO
Xiao, with your involvement to both projects, I long thought you are already a maintainer/developer! Why not yet? :-) -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info ___ Openocd-development mailing list Openocd-development@lists.berlios.de

Re: [Openocd-development] Outstanding patches = Fix: Correctly exit function: ft2232_init when an error occurred

2011-06-10 Thread Tomek CEDRO
On Fri, Jun 10, 2011 at 7:17 PM, Michael Schwingen rincew...@discworld.dascon.de wrote: If we agree that we do not want to touch the target, that means the lowlevel interface driver must not change any signal state upon exit, because it does not know what state that will put the target into.

Re: [Openocd-development] New development version of OpenOCD available at last!

2011-06-10 Thread Tomek CEDRO
On Fri, Jun 10, 2011 at 7:39 PM, Øyvind Harboe oyvind.har...@zylin.com wrote: Please - cut a simple release now - nothing fancy, one or two RC, two weeks for feedback and voila. I want someone qualified to step up to do the work of a release manager or I'm happy with current situation. I

Re: [Openocd-development] Outstanding patches = Fix: Correctly exit function: ft2232_init when an error occurred

2011-06-10 Thread Tomek CEDRO
On Fri, Jun 10, 2011 at 8:01 PM, Michael Schwingen rincew...@discworld.dascon.de wrote: Changing signals to High-Z is *not* safe. It changes the JTAG signals to a board-specific state that depends on the pullup/pulldown resistors on the board. Depending on the old state of the JTAG pins, this

Re: [Openocd-development] Outstanding patches = Fix: Correctly exit function: ft2232_init when an error occurred

2011-06-10 Thread Tomek CEDRO
On Fri, Jun 10, 2011 at 8:35 PM, Tomek CEDRO tomek.ce...@gmail.com wrote: Quiting without quit is like quit button in windows vista - it does not only quit but first of all suspends system ;] I mean shutdown.. or something like that.. I don't use that shit anyway :-) -- CeDeROM, SQ7MHZ, http

Re: [Openocd-development] General SWD Support in OpenOCD

2011-06-10 Thread Tomek CEDRO
Done. I have created new branch in my repository, just in case, it is named openocd-swd, it is already rebased with actual openocd/master branch :-) It builds fine. The interface_signal and bitbang works fine, I will prepare patches in a moment. The rest of functionality is not yet verified!

Re: [Openocd-development] General SWD Support in OpenOCD

2011-06-10 Thread Tomek CEDRO
Oyvid, I have also created branch openocd-master to have up-to-date openocd repository at site to produce patches. Now when I do git format-patch openocd-master file I get bunch of patch files based on my local commits. This is nasty as brings unnecessary commits. I would rather produce one

Re: [Openocd-development] General SWD Support in OpenOCD

2011-06-10 Thread Tomek CEDRO
Do you think its time to create and work on 0.5 branch? -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development

Re: [Openocd-development] General SWD Support in OpenOCD

2011-06-11 Thread Tomek CEDRO
Sure thing I want to support in an useful way! This is also good skills training for me :-) Thank you all for useful hints - interactive rebasing seems to be what I need, as presented on http://book.git-scm.com/4_interactive_rebasing.html You can also rebase interactively. This is often used to

Re: [Openocd-development] General SWD Support in OpenOCD

2011-06-11 Thread Tomek CEDRO
Im afraid there is not much sense in that interactive rebasing for such big change - it took me so many hours to split patches and in result now there are even more patches some new patches patched by old patches ;] This is far from perfect. I think we should simply use the default rebase patches

Re: [Openocd-development] General SWD Support in OpenOCD

2011-06-12 Thread Tomek CEDRO
I have deleted ols meddy openocd-swd branch and pushed new branch with the same name openocd-swd, this one: -use fresh openocd master head -is already rebased openocd master with changes from my fork -has already squashed commits of my work (less commits than before, more changes at once, no need

Re: [Openocd-development] General SWD Support in OpenOCD

2011-06-12 Thread Tomek CEDRO
Hello Peter! Thank you for all hints :-) Now I know it, but few months ago when I started using GIT I did not (yet) :-P The changes introduced by my work could be applied to current openocd/master repository as I wanted because changes are too big, so I gave up and simply squashed logical patches

Re: [Openocd-development] General SWD Support in OpenOCD

2011-06-12 Thread Tomek CEDRO
Well, the changes are bigger than only moving files, because this impacts code in many different places (i.e. headers inclusion). This is why I did not split the patches into single step because this takes too much time that I want to spend on code development and in fact makes no sense - we

Re: [Openocd-development] General SWD Support in OpenOCD

2011-06-13 Thread Tomek CEDRO
On Mon, Jun 13, 2011 at 8:25 AM, Øyvind Harboe oyvind.har...@zylin.com wrote: it's great that your focusing on functionality. Cracking the technical problems and making a patch series that's right for OpenOCD are two hard problems. Perhaps better attack one at the time? exactly. producing

Re: [Openocd-development] [PATCH] transport: move files over to transport folder

2011-06-13 Thread Tomek CEDRO
Hey Oyvind! Thank you for support in this matter! Just please add those patches to new branch v0.5 as they bring general code reorganization and are not part of 0.4.x :-) -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info ___ Openocd-development mailing

Re: [Openocd-development] [PATCH] transport: move files over to transport folder

2011-06-13 Thread Tomek CEDRO
On Mon, Jun 13, 2011 at 6:42 PM, Øyvind Harboe oyvind.har...@zylin.com wrote: I'll update master branch. The way git works we don't cut development branches, we just keep working on master branch. We may cut a 0.5 branch from some previous time in master history later on. Ah, there is

Re: [Openocd-development] [PATCH] transport: move files over to transport folder

2011-06-13 Thread Tomek CEDRO
On Mon, Jun 13, 2011 at 7:53 PM, Øyvind Harboe oyvind.har...@zylin.com wrote: We never will merge 0.5.0 release branch into the master branch, ideally it would receive zero, but realistically might receive a few commits. Possibly reverting commits in master branch? Yeah now I know how things

Re: [Openocd-development] openocd-swd merging

2011-06-14 Thread Tomek CEDRO
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

Re: [Openocd-development] New development version of OpenOCD available at last!

2011-06-15 Thread Tomek CEDRO
pepole interested in using is but noone even tare to try do the job :-) You have my support Jean :-) I would suggest to migrate interface_signal and bitbang yet before releasing 0.4.1 to give users time to play with that functionality and possible new features in 0.5.0 :-) Best regards! :-) Tomek

Re: [Openocd-development] New development version of OpenOCD available at last!

2011-06-15 Thread Tomek CEDRO
On Wed, Jun 15, 2011 at 5:34 PM, Øyvind Harboe oyvind.har...@zylin.com wrote: The swd is some time away from being merged with master, so I wouldn't want to see it in the next release of openocd, unless the release drags out. I would suggest 0.4.1 for the current code freeze, as there should

Re: [Openocd-development] Openocd release known issues

2011-06-15 Thread Tomek CEDRO
Hello Spencer :-) I would use git submodule and simply include JimTCL with OpenOCD build binary. This would save lots of problems and produce common distribution. Anyone who want to use external library can build his/her own binary. Ofcourse there is a situation to solve what to to when JimTCL is

Re: [Openocd-development] [PATCH] Implementation of a remote bitbang jtag driver

2011-06-15 Thread Tomek CEDRO
Hello Richard, Seems to be nice feature, however: It should be somehow related with interface driver bitbang..? It should be possible to enabled/disabled by configure script. Bets regards :-) Tomek -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info

Re: [Openocd-development] New development version of OpenOCD available at last!

2011-06-15 Thread Tomek CEDRO
On Wed, Jun 15, 2011 at 8:57 PM, Øyvind Harboe oyvind.har...@zylin.com wrote: 0.4.1 implies that it is a variant of 0.4. What we have now is *completely* different from 0.4, so 0.5.0 is better Yeah, isn't current HEAD somehow development/bugfix of 0.4.0? Are there any totally new

Re: [Openocd-development] New development version of OpenOCD available at last!

2011-06-15 Thread Tomek CEDRO
but are these any major changes or simply improvements? also if we use A.B.C nomenclature or A.B? -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info ___ Openocd-development mailing list Openocd-development@lists.berlios.de

Re: [Openocd-development] Openocd release known issues

2011-06-15 Thread Tomek CEDRO
On Wed, Jun 15, 2011 at 9:30 PM, Øyvind Harboe oyvind.har...@zylin.com wrote: I think we should stick to distributing source packages only. For the source package, we can include the version of Jim Tcl we tested with. If someone wants something else, they can start with cloning the openocd

  1   2   >