SWD generic FT2232
Hi all,
I have generic FT2232 adapter and I use it for ARM7 as JTAG link. Can I use it for SWD? Exactly for LPC1114?
I don't know how to set SWD paramaters (SWD Direction mask, SWD Enable mask etc.).
Thank you very much
-
Hi Zdenek,
A SWD adapter (http://sites.fastspring.com/rowley/product/armswdadapter) is required for this to work.
For our adapter, the enable signal is nTRST and the direction signal is TMS.
Best regards,
Jon
-
Hi Bart,
I'm not sure which property you are referring to as "SWD Inversion". The SWD direction is controlled by the "SWD Direction Mask" properties, so for our adapter you would set the "SWD Direction Mask" property to 0x0008 and the "SWD Direction Inversion Mask" property to 0x0000.
See https://rowley.zendesk.com/entries/20494892-swd-adapter-not-detected-error-message for other causes of this error.
Best regards,
Jon
-
Hi Jon,
My bad; I meant indeed "SWD Direction Mask". It's set to 0x0008. "SWD Enabled Mask" is set to "0x0100". Still no luck with my homebuild FT2232 Jtag adapter. Jtag mode works perfectly.
The Target/SWD Adapter is verified with an Olimex ARM OCD adapter, so should work.
To debug the FT2232 settings, I would like to know if it's possible to set the FT2232 target settings so it will works with the Olimex Adapter (allthrough there is an "Olimex ARM-USB-OCD Target). Is that possible, or does that target have some differences with the FT2232 target?
I used these settings: http://www.olimex.com/dev/arm-usb-ocd.html
-
Hi Bart,
Both the Rowley and Olimex SWD adapters work with an unmodified "Olimex ARM-USB-OCD" target interface.
The settings for nTRST on the Olimex website look wrong - I got the SWD adapter to work here by changing the following settings:
nTRST Mask: 0x0400
Output Value: 0x0408
Note that those are the only values that I needed to change because SWD mask values of 0x0000 make the target interface default to using nTRST and TMS for SWD control anyway.
Best regards,
Jon
Please sign in to leave a comment.
Comments
6 comments