[ABANDONED] J-Link v10.x only works in SWD mode, older J-Links also work with JTAG mode

  • I've run into something curious with v10.x J-Links. I have a project using the STM32F103ZG microcontroller and I'm currently using IAR EWARM 9.1.

    Flashing and debugging with older J-Links (v8, v9.1 and Ultra v4.3) work just fine in either JTAG or SWD mode - JTAG has been the default since the beginning. However, when some people started using v10.0 or v10.1 J-Link, flash and debug would only work in SWD mode.

    As an example, here's the Debug log from when I try to "Debug without download" using a v10.1 J-Link with JTAG configured instead of SWD. The J-Link's LED quickly flashes red/yellow (or red/green?) and I get a message "Failed to get CPU status after 4 retries".

    This isn't a problem in the sense that simply changing to SWD works. But it was unexpected and there are some worries that maybe the JTAG isn't correct on the schematic/PCB layout (I'm not an EE so I can't begin to guess what's going on there - if anything). This happens with both a v10.0 and v10.1 J-Link. All older J-Links I've tried work fine in JTAG mode (and SWD mode).

    For comparison, I have also attached a debug log of a J-Link Ultra+ v4.3 successfully using JTAG mode.

    I'm wondering if this is something we should be concerned about, and if so do you have any suggestions for where we should look?

  • Hi,
    Thank you for your inquiry.
    We are not aware of any issues related to the STM32F1 series and JTAG.

    I just gave this a quick try and it seems to be working without any issues on an STM32F10X-128K-EVAL board (STM32F103V8):

    Do you experience the same issue on an evaluation board?
    Could you please send us a J-Link log file? How to enable:
    https://wiki.segger.com/J-Link_DLL#Enable_J-Link_Log_File

    Best regards,
    Fabian

    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: https://www.segger.com/ticket/

    Or you can contact us via e-mail.

  • Sorry for my delayed response (I didn't get or I missed an email notification).

    I will try your suggestions, but it might be a while as I'm up against a deadline right now. The J-Link v10 does work on these boards in SWD mode, so the problem is just an annoyance so far.

    I did do a J-Link session to connect and the v10.1 J-Link worked as well as you session did. Some time in the next week or so, I'll try updating the DLL that is used in IAR to the 7.2 version and see if that makes a difference.

    My jlink.exe session that connects successfully:


    My log looks pretty much identical to yours except for the DLL version used and this line near the end that is in my log but not yours:

    ROMTbl[0][5]: E0041000, CID: B105900D, PID: 101BB924 ETM-M3

    I have no idea what it indicates or if it's at all significant.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!