SWD generic FT2232

Comments

6 comments

  • Avatar
    Jon Elliott

    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

     

    0
    Comment actions Permalink
  • Avatar
    Zdenek Halbich

    Ok,

    I buy it. Thank you very much.

    Zdenek

    0
    Comment actions Permalink
  • Avatar
    Bart Theeuwes

    ok, I set SWD Enable Mask to 0x100 (nTRST) and SWD Inversion to 0x0008 (TMS) but CrossWorks says "SWD adapter not detected"?

    0
    Comment actions Permalink
  • Avatar
    Jon Elliott

    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

    0
    Comment actions Permalink
  • Avatar
    Bart Theeuwes

    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

    0
    Comment actions Permalink
  • Avatar
    Jon Elliott

    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

    0
    Comment actions Permalink

Please sign in to leave a comment.