Cortex SWD with Crossworks 2.0
Does Crossworks work with SWD? And if so what do we need to do and buy to make it work. If not, is the output of compiler compatable with Seggers debugger tool?
Best Regards,
Michael Freeman
Update Systems, Inc.
-
I found this under the SWD adaptor:
"You can use this as a format converter on our CrossConnects; however, full SWD capability requires a firmware upgrade which you can download from our website."
We are using CrossConnect and Jlinks for our debugging tools. Do we have to get a FTDI bassed debugger to make this work???
-
Hi Michael,
* CrossConnect SWD update for Classic and Lite is on the CrossConnect Page.
* As a format converter it will work to convert 20-pin standard JTAG to 10-pin Cortex JTAG.
* SWD is fully supported using CrossConnect Classic and Lite and Segger J-Link that can indeed do SWD (V6 or later I believe).
-
Paul,
We are currently evaluating Cross Studio using a Olimex ARM-USB-OCD-H and the Rowley SWD adapter. (We are using the -H rather than the plain OCD as we need 1.8V support). Can you please post the pin-out for the 20-pin socket on the Rowley SWD adapter? We currently are attaching it to an Olimex EM-32G880F128-STK via the 20-pin cable (i.e. OCD-H is attached to Rowley SWD adapter, and the target side of the adapter is connected to the Olimex dev board via an 20-pin cable). Do we instead need to make up a custom 10-pin (from the output of the SWD adapter) to 20-pin (for the dev board) cable?
I have set up the OCD-H in Cross Studio as per the third FAQ item here: http://www.olimex.com/dev/arm-usb-ocd-h.html but believe I may be missing the SWD-related mask options for it to work correctly with the Rowley SWD adapter. We get an error saying "Target Not Recognized".
Regards,
Hugo Vincent
NovaParking Ltd
-
Hi,
The OCD-H is now supported by default in the latest CrossWorks distributions. Right click in the target window and you should be able to restore the default targets which include OCD-H. You need to set the interface type to SWD and you will need to reduce the clock frequency as the OCD-H can run at 30MHz which is too fast for the SWD on an EFM32.
Connect the 20-pin plug to the OCD-H socket directly so it's poking out, then connect a 20-pin cable between the target and the CrossConnect (i.e. the one you took out of the OCD-H).
If you're using it on the "big" dev kit with the big graphic LCD, you need to fiddle around and get the JTAG to work using an external connection rather than the built-in JTAG. Or you can just use the built-in J-Link, works just fine with CrossWorks in SWD mode.
-
We are using 2.0.10.2011011700.9509 which appears to be the latest version, and even after restoring the default targets, no OCD-H is listed. Perhaps you could send me the XML definition? It sounds like our hardware connections are correct and just the CrossStudio options are wrong.
Many thanks,
Hugo Vincent
NovaParking Ltd.
-
When I select Olimex ARM-USB-OCD in the target window (after doing a fresh "restore default targets"), and attempt to connect to it, it says "No Olimex ARM-USB-OCD devices are attached". However when I enter it as a generic FTDI device as per the Olimex FAQ I can connect to it and it says Target not recognized. So clearly, CrossWorks is not (correctly) figuring out which I am connected to as you say. Would you be able to give the SWD mask values as per my original post?
Hugo Vincent
NovaParking Ltd
-
Ahh, OK, I was getting confused with the Tiny; looks like Tsvetan has introduced another product using the FT2232H. Could you raise a ticket and Jon will probably be able to tell you which settings you need for SWD on a standard speed OCD and you will need to tell him the VID/PID combination. We'll go get one of these.
-
What is the absolute minimum number of pins we can get away with using on the target board if we make an adapter to go to our own target board? Do we still need reset and VTref or can we get away with something like SWDIO, SWCLK and GND? The fewer pins we have to connect between the processor and the adapter the better as we are connecting to a flexible PCB and leaving exposed pads to connect to.
Previously we've been using AVRs and using the SPI interface to program the boards and had a little adapter board to convert from the six pin AVRISP header to our target board. We'd do the same with the Crossworks SWD interface (so in the end we'd have an adapter hooked up to the Crosswords to SWD adapter).
Thanks!
-
CrossConnect firmware updater is on the CrossConnect page:
Please sign in to leave a comment.
Comments
21 comments