Re: [Openocd-development] arm-jtag-ew + swd
On Thu, Oct 20, 2011 at 4:59 AM, Peter Stuge pe...@stuge.se wrote: 1. Continue what David Brownell worked on for FT2232-based adapters 2. Try Tomek's libswd, which I think works so far primarily with (only some?) FT2232-based adapters These are now joined into one :-) Transport and driver for ft2232 are now complete, just need to fix the target so not that much work left, damn im so multiplexed recently :-( 3. Use a Versaloon (e.g. Versaloon Mini, see http://www.versaloon.com/ ) and Simon's patches to OpenOCD Yup. it can upload firmware from what I saw in the logs :-) -- 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] arm-jtag-ew + swd
Well, the ARM-JTAG-EW is not an FT2232 device as far as I can tell -- it's supposed to be a JLink clone for IAR. I guess the answer is no then. Looks like the right thing is to get a real JLink. Thanks anyway! On Tue, Oct 18, 2011 at 1:52 AM, Tomek CEDRO tomek.ce...@gmail.com wrote: On Tue, Oct 18, 2011 at 2:47 AM, Michael Ashton d...@gtf.org wrote: Hi, I'm wondering if anyone can say whether it's possible, or might ever be possible, to use the Olimex ARM-JTAG-EW with SWD in OpenOCD? I can't find any mention of SWD in arm-jtag-ew.c, but I'm not sure whether that really means anything. thanks! --Michael Driver is generic for FT2232 devices, you can play with some resistor/diode to make JTAG interface work as SWD :-) -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info -- Quidquid latine dictum sit, altum viditur. ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development
Re: [Openocd-development] arm-jtag-ew + swd
Well, the ARM-JTAG-EW is not an FT2232 device as far as I can tell -- it's supposed to be a JLink clone for IAR. I guess the answer is no then. Looks like the right thing is to get a real JLink. Thanks anyway! On Tue, Oct 18, 2011 at 1:52 AM, Tomek CEDROtomek.cedro at gmail.com https://lists.berlios.de/mailman/listinfo/openocd-development wrote: / On Tue, Oct 18, 2011 at 2:47 AM, Michael Ashtondata at gtf.org https://lists.berlios.de/mailman/listinfo/openocd-development wrote: //Hi, //I'm wondering if anyone can say whether it's possible, or might ever be //possible, to use the Olimex ARM-JTAG-EW with SWD in OpenOCD? //I can't find any mention of SWD in arm-jtag-ew.c, but I'm not sure // whether //that really means anything. //thanks! --Michael // // Driver is generic for FT2232 devices, you can play with some // resistor/diode to make JTAG interface work as SWD :-) // // -- // CeDeROM, SQ7MHZ,http://www.tomek.cedro.info / certainly olime waits on Segger JLINK SWD implementation in openocd to let say their arm jtag ew has swd certainly olime waits on Amontec JTAGkey-3 SWD implementation in openocd to let say their 2232 has swd ... Regards, Laurent http://www.amontec.com/jtagkey.shtml ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development
Re: [Openocd-development] arm-jtag-ew + swd
You're right -- my mistake. The web page says: ARM-JTAG-EW emulates on low level the IAR Systems' J-LINK API so it works like normal J-LINK debugger, ... I took this to mean that they were emulating the USB protocol. But a footnote in the manual says -- DLL compatible means that we supply our own jlinkarm.dll. The original IAR-EW DLL will not work with the ARM-JTAG-EW device because ARM-JTAG-EW and IAR J-Link use different USB protocols. So that explains that then. The Olimex manual mentions SWD in the pinout table, so perhaps they have the necessary hardware already. Might give it a shot with libswd but I need to get moving on this project .. On Wed, Oct 19, 2011 at 8:52 AM, jim norris u17...@att.net wrote: Well, the ARM-JTAG-EW is not an FT2232 device as far as I can tell -- it's supposed to be a JLink clone for IAR Yes it is. It has an FT2232D chip in. If you open it up (and void the warranty!) you can see it. However, using the ARM-JTAG-EW to do SWD is not just a software change. As Tomek implied in the previous email, one needs to understand the pinouts. JTAG typically uses 5 pins, while SWD uses 2 pins. So there are some hardware ramifications when using a FT2232 device for SWD versus JTAG as typically found in most debuggers. -- Quidquid latine dictum sit, altum viditur. ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development
Re: [Openocd-development] arm-jtag-ew + swd
Michael Ashton wrote: On Wed, Oct 19, 2011 at 8:56 AM, Laurent Gauch wrote: certainly olime waits on Segger JLINK SWD implementation in openocd to let say their arm jtag ew has swd certainly olime waits on Amontec JTAGkey-3 SWD implementation in openocd to let say their 2232 has swd ... Ha .. I see .. cheeky of them .. Well, I'm sending it back. --mpa Don't listen too much to Laurent's complaints. Of course he will be unhappy with competition. It might be really easy to make the device speak SWD. //Peter ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development
Re: [Openocd-development] arm-jtag-ew + swd
On Thu, Oct 20, 2011 at 1:49 AM, Peter Stuge pe...@stuge.se wrote: It might be really easy to make the device speak SWD. Devices already speaking SWD for some time, need some small support in Target implementation :-) -- 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] arm-jtag-ew + swd
On Thu, Oct 20, 2011 at 1:52 AM, Tomek CEDRO tomek.ce...@gmail.com wrote: On Thu, Oct 20, 2011 at 1:49 AM, Peter Stuge pe...@stuge.se wrote: It might be really easy to make the device speak SWD. JLink specification is open, from what Ive seen it should be relatively easy to implement generic (tranfer/bitbang functions) driver for this device :-) -- 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] arm-jtag-ew + swd
On Wed, Oct 19, 2011 at 4:53 PM, Tomek CEDRO tomek.ce...@gmail.com wrote: On Thu, Oct 20, 2011 at 1:52 AM, Tomek CEDRO tomek.ce...@gmail.com wrote: On Thu, Oct 20, 2011 at 1:49 AM, Peter Stuge pe...@stuge.se wrote: It might be really easy to make the device speak SWD. JLink specification is open, from what Ive seen it should be relatively easy to implement generic (tranfer/bitbang functions) driver for this device :-) I noticed that too. Segger's GDB server is Windows-only, which can be inconvenient. Their documentation for their USB protocol looks very complete. -- Quidquid latine dictum sit, altum viditur. ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development
Re: [Openocd-development] arm-jtag-ew + swd
On Wed, Oct 19, 2011 at 4:49 PM, Peter Stuge pe...@stuge.se wrote: Michael Ashton wrote: On Wed, Oct 19, 2011 at 8:56 AM, Laurent Gauch wrote: certainly olime waits on Segger JLINK SWD implementation in openocd to let say their arm jtag ew has swd certainly olime waits on Amontec JTAGkey-3 SWD implementation in openocd to let say their 2232 has swd ... Ha .. I see .. cheeky of them .. Well, I'm sending it back. --mpa Don't listen too much to Laurent's complaints. Of course he will be unhappy with competition. Which is certainly understandable :) It might be really easy to make the device speak SWD. Might be, but I needed to get something working quickly and reliably -- it's a commercial project. --mpa ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development
Re: [Openocd-development] arm-jtag-ew + swd
On Thu, Oct 20, 2011 at 11:54 AM, Michael Ashton d...@gtf.org wrote: JLink specification is open, from what Ive seen it should be relatively easy to implement generic (tranfer/bitbang functions) driver for this device :-) I noticed that too. Segger's GDB server is Windows-only, which can be inconvenient. Their documentation for their USB protocol looks very complete. Once you start to work with J-Link, you will know how incomplete it is. The main issue is that there are many different versions of J-Link with a bit different in the behaviour. -- Xiaofan ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development
Re: [Openocd-development] arm-jtag-ew + swd
Michael Ashton wrote: It might be really easy to make the device speak SWD. Might be, but I needed to get something working quickly and reliably -- it's a commercial project. --mpa I guess you already know that SWD support in OpenOCD is not so complete. If you still want to try to use OpenOCD with SWD then there are basically three approaches you can try: 1. Continue what David Brownell worked on for FT2232-based adapters 2. Try Tomek's libswd, which I think works so far primarily with (only some?) FT2232-based adapters 3. Use a Versaloon (e.g. Versaloon Mini, see http://www.versaloon.com/ ) and Simon's patches to OpenOCD I've only done very brief testing with the Versaloon, but what I've tested works perfectly (SWD programming using vsprog, not using OpenOCD - and JTAG using OpenOCD). I'm unfortunately unsure exactly of the current libswd+OpenOCD status. //Peter ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development
Re: [Openocd-development] arm-jtag-ew + swd
On Tue, Oct 18, 2011 at 2:47 AM, Michael Ashton d...@gtf.org wrote: Hi, I'm wondering if anyone can say whether it's possible, or might ever be possible, to use the Olimex ARM-JTAG-EW with SWD in OpenOCD? I can't find any mention of SWD in arm-jtag-ew.c, but I'm not sure whether that really means anything. thanks! --Michael Driver is generic for FT2232 devices, you can play with some resistor/diode to make JTAG interface work as SWD :-) -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development