My debugger [J-Link] cannot recognize and erase or download the program to the MCU [STM32F103] [SWD]

Discussion in 'General Electronics Chat' started by booboo, Sep 4, 2015.

  1. booboo

    Thread Starter Member

    Apr 25, 2015
    165
    2
    Hi fellas
    I'm working on my board to erase or download the program to the MCU. my MCU is STM32F103RBT6 and my programmer/debugger is J-Link. I have wired up the JLink to MCU like this. this is the JLink:

    [​IMG]

    Due to this pinout:

    [​IMG]
    And for my board(Please consider that R2 and R3 both are 10KOhm):

    [​IMG]

    When I hook up the board and the debugger, looks like everythings are ok. Vcc is 2v5 and there is no connection(or short) between SWDIO and SWCLK pins to other pins. but I cannot connect the debugger to the MCU. my IDE is Keil. it give me this error:

    [​IMG]
    and then:

    [​IMG]

    I also have a STM32F0 board and always use this way to connect to it and I don't have any problem.
    When I connect the debugger to the STM32F103 this way, both LEDs(red and green) on the J-Link are light. but when I connect Pin15(Reset) of the J-link to the Reset pin of the MCU, just green LED is light. and when I trying to connect to the board, I get these errors:

    [​IMG]

    and then:

    [​IMG]

    What's the matter with my board? should I connect the Reset pin of J-Link to the Reset pin of the MCU?
     
Loading...