Can't connect to STM32-SK via IAR J-Link

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

  • Can't connect to STM32-SK via IAR J-Link

    Hello,

    I'm trying to connect to a CortexM3-based development board, the STM32-SK, but I'm having some problems.

    Here's the output of the J-Link commander:

    Source Code

    1. SEGGER J-Link Commander V4.02b ('?' for help)
    2. Compiled Feb 16 2009 17:14:45
    3. Updating firmware: J-Link ARM V6 compiled Jan 13 2009 15:40:53
    4. Replacing firmware: J-Link ARM V6 compiled Aug 28 2007 19:20:02
    5. Waiting for new firmware to boot
    6. New firmware booted successfully
    7. ****** Error: J-Link could not update firmware
    8. DLL version V4.02b, compiled Feb 16 2009 17:14:32
    9. Unable to retrieve firmware info !
    10. S/N : 156001198
    11. OEM : IAR
    12. VTarget = 3.254V
    13. Info: TotalIRLen = 9, IRPrint = 0x0011
    14. WARNING: RESET (pin 15) high, but should be low. Please check target hardware.
    15. ****** Error: Bad JTAG communication: Write to IR: Expected 0x1, got 0xf (TAP Co
    16. mmand : 11) @ Off 0x64.
    17. Wrong AHB ID (15:3). Expected 0x04770001 (Mask 0x0FFFFF0F), Found 0x00000000
    18. JTAG speed: 5 kHz
    Display All


    I think that I created some problem experimenting with OpenOCD, I'd like to reset the board.

    Can anyone help me? Thanks.

    Andrea
  • Can you try the latest Beta to see if it behaves differently ?
    Do you have any other eval board to see if you can connect ? (Maybe the J-Link or target board has a hardware defect)

    What is strange is that J-Link can not pull RESET low. Can you check if the RESET line goes low when you use
    the command r0 ?
    If not, it may explain things: The STM32 may be in power down mode and needs a Reset, but it never gets a Reset
    because Reset line does not go low.

    Just guessing, maybe you can test this ?
    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.
  • Hello,
    I tried to connect the STM32-SK using another PC and it worked correctly.. I used the JLink software that comes in bundle with the IAR embedded workbench, here is the output:

    Source Code

    1. SEGGER J-Link Commander V3.74i ('?' for help)
    2. Compiled Sep 11 2007 14:43:12
    3. DLL version V3.74i, compiled Sep 11 2007 14:43:07
    4. Firmware: J-Link ARM V6 compiled Aug 28 2007 19:22:02
    5. Hardware: V6.00
    6. S/N : 156001198
    7. OEM : IAR
    8. VTarget = 3.254V
    9. JTAG speed: 30 kHz
    10. Info: Found Cortex-M3, Little endian.
    11. Info: TPIU fitted.
    12. Info: FPUnit: 6 code (BP) slots and 2 literal slots
    13. Found 2 JTAG devices, Total IRLen = 9:
    14. Id of device #0: 0x3BA00477
    15. Id of device #1: 0x16410041
    16. Cortex-M3 identified.
    17. J-Link>
    Display All


    Can it be an issue related to the PC I was using? Maybe the USB controller...
    Anyway, thanks for your help.

    Have a nice day,
    Andrea