Problems with JLINK and STM32

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • Problems with JLINK and STM32

    Hi!

    I have made a board with an STM32 processor and a JLINK Connector.
    When I program with the IAR Embedded Workbench Kickstart I get the following error:

    Could not find supported CPU Core on JTAG Chain
    Bad JTAG Communication: Wirte to IR: Expected 0x1 got 0x7 (TAP Command : 2) @Off 0x5.

    I tried to monitor some pins with an oscilloscope (example the reset pin) and then got the following error:

    Wrong AHB ID (15:3). Expected 0x04770001 (mask 0xFFFFFF0F), Found 0x000000F0...


    What could that be? I checked the connection from the connector to the controller - everything ok, I checked the VCC, VDD pins - everything ok.

    So what could I do?

    additional Information:

    The ouput from JLINK:

    --------------------------------------------------------------------------------
    SEGGER J-Link Commander V4.05b ('?' for help)
    Compiled Apr 30 2009 18:53:09
    DLL version V4.05b, compiled Apr 30 2009 18:52:53
    Firmware: J-Link ARM V6 compiled Apr 27 2009 17:59:13
    Hardware: V6.00
    S/N : 16000132
    OEM : IARKS
    VTarget = 3.248V
    Info: TotalIRLen = ?, IRPrint = 0x..FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF

    WARNING: No matching core found. Selecting default core (ARM7).
    Info: TotalIRLen = ?, IRPrint = 0x..FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF

    ****** Error: Could not find supported CPU core on JTAG chain
    No devices found on JTAG chain. Trying to find device on SWD.

    WARNING: No matching core found. Selecting default core (Cortex-M3).

    ****** Error: Parity error (Data = 0xFFFFFFFF, ReceivedParity = 1)

    No device found on SWD.
    Cortex-M3 identified.
    JTAG speed: 5 kHz
    My circuit:
    testaccount.ywh-server.info/schematics.pdf

    I don't know what I can do next - I tried everything I know...

    Thanks for help.

    Andi
  • Hello anm,

    we have fixed a problem with Cortex-M3 targets in the latest beta version of the J-Link software (V4.05c).
    Could you please download and try out this version?

    In addition to that:
    Did it ever work, debugging the device?
    If yes: What was the last action performed, before it stopped working?

    Best regards,
    Alex
    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: segger.com/ticket/

    Or you can contact us via e-mail.
  • SEGGER - Alex wrote:

    Hello anm,

    we have fixed a problem with Cortex-M3 targets in the latest beta version of the J-Link software (V4.05c).
    Could you please download and try out this version?

    In addition to that:
    Did it ever work, debugging the device?
    If yes: What was the last action performed, before it stopped working?

    Best regards,
    Alex
    Hi!
    I will try the new Software - today or tomorrow.

    No, it has not worked all the time. I always got the same messages - and I still get it. I checked the wires again and again, but I can't find the issue for the problem.

    Thanks

    Andi

    EDIT: is the schema in the pdf-file ok? Or should I connect something in another way?
    EDIT2:
    Output with the new Version:
    J-Link>usb
    Connecting to J-Link via USB (Port: 0)
    DLL version V4.05c, compiled May 6 2009 20:03:05
    Firmware: J-Link ARM V6 compiled Apr 27 2009 17:59:13
    Hardware: V6.00
    S/N : 16000132
    OEM : IARKS
    VTarget = 3.235V
    Info: TotalIRLen = ?, IRPrint = 0x..FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF

    WARNING: No matching core found. Selecting default core (ARM7).
    Info: TotalIRLen = ?, IRPrint = 0x..FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF

    ****** Error: Could not find supported CPU core on JTAG chain
    No devices found on JTAG chain. Trying to find device on SWD.

    WARNING: No matching core found. Selecting default core (Cortex-M3).

    ****** Error: Parity error (Data = 0xFFFFFFFF, ReceivedParity = 1)

    No device found on SWD.
    Cortex-M3 identified.
    JTAG speed: 5kHz

    The post was edited 1 time, last by anm ().

  • Hi!

    What could that be, that the TDO is not working? I only get a "high" on the scope - the CLK and so on do their work, but the TDO does not...
    I checked the programming adapter - but there isn't any issue...

    Thanks
  • J-Link Pro and Cortex-M3

    Hi,
    I've the save Problem with J-Link Pro (received today) and the STM3210E-EVAL board from ST:

    # cut ############################################################################
    SEGGER J-Link Commander V4.04a ('?' for help)
    Compiled Apr 22 2009 09:58:08
    DLL version V4.04a, compiled Apr 22 2009 09:57:51
    Firmware: J-Link ARM-Pro V1.x compiled Apr 9 2009 11:54:29
    Hardware: V1.10
    S/N : 171100075
    Feature(s) : RDI, FlashBP, FlashDL, JFlash, GDB
    IP-Addr.: No configuration received via DHCP
    VTarget = 3.287V
    Info: TotalIRLen = ?, IRPrint = 0x..FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF

    WARNING: No matching core found. Selecting default core (ARM7).
    Info: TotalIRLen = ?, IRPrint = 0x..FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF

    ****** Error: Could not find supported CPU core on JTAG chain
    No devices found on JTAG chain. Trying to find device on SWD.

    WARNING: No matching core found. Selecting default core (Cortex-M3).
    No device found on SWD.
    Cortex-M3 identified.
    JTAG speed: 5 kHz
    J-Link>
    # /cut ###########################################################################

    our very old J-Link from IAR-System has no problem to detect the Cortex:

    # cut ############################################################################
    SEGGER J-Link Commander V4.04a ('?' for help)
    Compiled Apr 22 2009 09:58:08
    DLL version V4.04a, compiled Apr 22 2009 09:57:51
    Firmware: J-Link compiled Feb 20 2006 18:20:20 -- Update --
    Hardware: V3.00
    S/N : 88881296
    VTarget = 3.262V
    Info: TotalIRLen = 9, IRPrint = 0x0011
    Info: Found Cortex-M3 r1p1, Little endian.
    Info: TPIU fitted.
    Info: ETM fitted.
    Info: FPUnit: 6 code (BP) slots and 2 literal slots
    Found 2 JTAG devices, Total IRLen = 9:
    Id of device #0: 0x3BA00477
    Id of device #1: 0x06414041
    Cortex-M3 identified.
    JTAG speed: 5 kHz
    J-Link>
    # /cut ############################################################################

    The J-Link Pro has no Problem with our ARM7 Devices.
    Where can I get the lastest Software?
    What can I do?



    Thanks for help.
    Markus
  • Hi,
    the lastest JLink Software has the save problem:

    SEGGER J-Link Commander V4.05d ('?' for help)
    Compiled May 8 2009 19:20:06
    Updating firmware: J-Link ARM-Pro V1.x compiled May 8 2009 15:30:41
    Replacing firmware: J-Link ARM-Pro V1.x compiled Apr 9 2009 11:54:29
    ... Firmware update successful. CRC=CD7C
    Waiting for new firmware to boot
    New firmware booted successfully
    DLL version V4.05d, compiled May 8 2009 19:19:50
    Firmware: J-Link ARM-Pro V1.x compiled May 8 2009 15:30:41
    Hardware: V1.10
    S/N : 171100075
    Feature(s) : RDI, FlashBP, FlashDL, JFlash, GDB
    IP-Addr.: No configuration received via DHCP
    VTarget = 3.287V
    Info: TotalIRLen = ?, IRPrint = 0x..FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF

    WARNING: No matching core found. Selecting default core (ARM7).
    Info: TotalIRLen = ?, IRPrint = 0x..FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF

    ****** Error: Could not find supported CPU core on JTAG chain
    No devices found on JTAG chain. Trying to find device on SWD.

    WARNING: No matching core found. Selecting default core (Cortex-M3).

    ****** Error: Parity error (Data = 0xFFFFFFFF, ReceivedParity = 1)

    No device found on SWD.
    Cortex-M3 identified.
    JTAG speed: 5 kHz
    J-Link>

    Greetings,
    Markus
  • Hi,
    it's very old, as you can see in the log above:

    Firmware: J-Link compiled Feb 20 2006 18:20:20 -- Update --

    Hardware: V3.00

    It does not work, but it found the JTag device. That was the reason to order the J-Link Pro...

    Greetings,
    Markus
  • hi, I have the same question.as fellows :

    SEGGER J-Link Commander V4.02 ('?' for help)
    Compiled Jan 13 2009 20:12:59
    DLL version V4.02, compiled Jan 13 2009 20:12:45
    Firmware: J-Link ARM V7 compiled Jan 13 2009 16:38:18
    Hardware: V7.00
    S/N : ********

    Feature(s) : RDI, FlashBP, FlashDL, JFlash, GDBFull
    VTarget = 3.300V
    Info: TotalIRLen = ?, IRPrint = 0x..00000000000000000000000000000000

    WARNING: No matching core found. Selecting default core (ARM7).
    Info: TotalIRLen = ?, IRPrint = 0x..00000000000000000000000000000000

    ****** Error: Could not find supported CPU core on JTAG chain
    JTAG speed: 5 kHz
    J-Link>

    I see above connecting VDDA VSSA with VDD VSS ,but I can not find them . :?:

    and my processor is MARVELL 88F5281 and the core is arm 926EJ-S . how can I go on ?

    thanks :!:
  • Hi there!

    I was talking about an STM32 processor. I don't know yours - but my fault was, that I did not connect the VDD and VCC of the D-A-converter. I do not know if your processor has them.

    Refer to my other post at the STM32 - forum - it's not your processor, but you can check some things I've checked.

    Try connecting pull up/pull down to your JTAG pins...

    regards
  • RE: Problems with JLINK and STM32

    i had the same problem.

    my solution:
    Download the following file that i found in the IAR webpage. unzip in any folder and execute the JLinkSTM32. with this you restore the system to the begin if you are using the stm32 system.

    supp.iar.com/FilesPublic/SUPPO…61/STM32DisableHW_WDT.zip



    i hope that this solve your problem.

    BYE BYE :P

    anm wrote:

    Hi!

    I have made a board with an STM32 processor and a JLINK Connector.
    When I program with the IAR Embedded Workbench Kickstart I get the following error:

    Could not find supported CPU Core on JTAG Chain
    Bad JTAG Communication: Wirte to IR: Expected 0x1 got 0x7 (TAP Command : 2) @Off 0x5.

    I tried to monitor some pins with an oscilloscope (example the reset pin) and then got the following error:

    Wrong AHB ID (15:3). Expected 0x04770001 (mask 0xFFFFFF0F), Found 0x000000F0...


    What could that be? I checked the connection from the connector to the controller - everything ok, I checked the VCC, VDD pins - everything ok.

    So what could I do?

    additional Information:

    The ouput from JLINK:


    --------------------------------------------------------------------------------
    SEGGER J-Link Commander V4.05b ('?' for help)
    Compiled Apr 30 2009 18:53:09
    DLL version V4.05b, compiled Apr 30 2009 18:52:53
    Firmware: J-Link ARM V6 compiled Apr 27 2009 17:59:13
    Hardware: V6.00
    S/N : 16000132
    OEM : IARKS
    VTarget = 3.248V
    Info: TotalIRLen = ?, IRPrint = 0x..FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF

    WARNING: No matching core found. Selecting default core (ARM7).
    Info: TotalIRLen = ?, IRPrint = 0x..FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF

    ****** Error: Could not find supported CPU core on JTAG chain
    No devices found on JTAG chain. Trying to find device on SWD.

    WARNING: No matching core found. Selecting default core (Cortex-M3).

    ****** Error: Parity error (Data = 0xFFFFFFFF, ReceivedParity = 1)

    No device found on SWD.
    Cortex-M3 identified.
    JTAG speed: 5 kHz
    My circuit:
    testaccount.ywh-server.info/schematics.pdf

    I don't know what I can do next - I tried everything I know...

    Thanks for help.

    Andi