Skip to main content
jj2
Associate
Nov 12, 2012 5:47 PM UTC
Question

Using J-Link w/Discovery Boards for both F4 and F0 MCUs

Posted on November 12, 2012 at 18:47

Greetings - Seek the higher performance (faster downloads) achievable w/J-Link ''SWD'' rather than the ''on-board'' ST-Link.  Reviewed the F4 Discovery schematic - does not appear that there is any easy way to ''break/open'' SW_CLK and SW_DATA between the STM32F103 ''Link'' and the F4.

CN2 - labeled ''SWD'' appears to be an, ''Output only'' connection.  (so that the ST-Link MCU may transfer SWD to an external MCU/board).  My goal is to adapt/attach the J-Link @ CN2 - and eliminate any signal contention between the J-Link probe and the F103 ''link'' MCU.

Has this been tried/implemented?   Search has not uncovered this usage - but I believe that this is a worthwhile objective.   Thanks for any guidance you may provide...

#f4-discovery
    This topic has been closed for replies.

    6 replies

    Tesla DeLorean
    Guru
    Nov 12, 2012 6:05 PM UTC
    Posted on November 12, 2012 at 19:05

    Wouldn't the CN3 jumper be a more opportune injection point?

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    jj2
    jj2Author
    Associate
    Nov 12, 2012 7:23 PM UTC
    Posted on November 12, 2012 at 20:23

    Thank you - we did see/note CN3 - but as CN2 is both board-edge and labeled SWD - it seemed most appealing.

    Issue of breaking the existing SWD signal routing between F103/ST-Link and the M4 remains.  Seems overly restrictive to force those who have/use J-Link into a (likely) less capable mode...

    Tesla DeLorean
    Guru
    Nov 12, 2012 7:44 PM UTC
    Posted on November 12, 2012 at 20:44

    Isn't the purpose of SB5 and SB9 for disconnecting the on-board ST-LINK?

    And for that matter the SB2,4,6,8 pads as an injection point.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    jj2
    jj2Author
    Associate
    Nov 12, 2012 9:03 PM UTC
    Posted on November 12, 2012 at 22:03

    Again - thank you.  We did check the multi-page schematic - and of course would not have so posted if any F4 ''SWD-only'' ''injection point'' was clear - or even marked as such.

    And indeed - just as you say - SB5/9 do appear to route directly to F4 MCU SWD pins.   Upper right of Fig 12 shows 4 ''off-page'' port connections ''SWD'' - but failed to label these as going to the F4 MCU, exclusively.   (and this is what we missed) 

    Slight disagreement re: SB2,4,6,8 as, ''injection points.''  Our sense is that these route directly & exclusively to the ST Link (F103) - and on reflection they are ''injection points'' from the perspective of the ST Link - but not so from our outside JTAG view-point.

    So thank you - w/your guidance we can attach modified J-Link ribbon to SB5 & SB9 - along with sigs to SB11 & SB12 - to introduce a more standard JTAG probe into the F4 Discovery board.

    Tesla DeLorean
    Guru
    Nov 12, 2012 9:12 PM UTC
    Posted on November 12, 2012 at 22:12

    The apposing sides of the SB having VCC/GND does perplex me, and thus the suggestion it's considered 8 pads rather than purely solder bridges. Or that dropping SB3,5,7,9 and adding SB2,4,6,8 makes CN2 a 4-pin SWD connector?

    0690X00000602nYQAQ.jpg

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    jj2
    jj2Author
    Associate
    Nov 12, 2012 9:46 PM UTC
    Posted on November 12, 2012 at 22:46

    Again - great thanks.  Agree w/your comments - even futher - Pg 19 of the UM states that SB:2,4,6,8 are Open and SB:3,5,7,9 are Closed - thus how does CN3's short of CN3: 1-2 & CN3: 3-4 ever bring, ''STM JTCK and STM JTMS ''across'' the Open SB4 & SB8?  Makes no sense to me...

    Another ''impossible'' - just how does STM JTCK ever reach SB3 (so that it flows to CN2-2) with no jumpers employed @ CN3?  (same holds for STM JTMS - no clear path is shown for its routing to CN2-4)   As you suggest - board implementation is NOT likely to be as shown in this schematic - our original point...

    Perhaps we are coming closer to agreement - this schematic & manual are confounding in their powers of clear/crisp explanation...   We do appreciate & thank you for your interest...