Skip to main content
Visitor II
January 25, 2018
Solved

ST25R3911B-DISCO to STLink-V2 - Unknown Device Id

  • January 25, 2018
  • 1 reply
  • 1106 views
Posted on January 25, 2018 at 12:18

I need to re-upload original firmware to ST25R3911B-DISCO with STLink-V2.

(Discovery GUI is not applicable for me here, I need to do it exactly with STLink-V2)

I connected with wires:

- 20-pin's VCC (1) to 10-pin's VTREF (1)

20-pin's GND (4) to 10-pin's GND (3)

-

20-pin's GND (

6

) to 10-pin's GND (5)

- 20-pin's TRST (

3

) to 10-pin's NC (9)

20-pin's

SWDIO

(

7) 

to 10-pin's

SWDIO

(2)

20-pin's

SWCLK

(9

to 10-pin's

SW

CLK

(4)

20-pin's

SWO

(13

to 10-pin's

SWDIO

(2)

20-pin's TDI (5) to 10-pin's TDI (8)

When I connecting both devices to same PC and running utility and trying to connect, it connects, ST-Link V2 has green LED light, but next I seeing: 'Unknown device id' and after clicking 'OK' it has red LED light again.

I tried Target -> Settings... with all combinations of JTAG/SWD and connection modes.and no effect.

Help me please! Deadline to this task is too near!

    This topic has been closed for replies.
    Best answer by Ulysses HERNIOSUS
    Posted on January 29, 2018 at 10:42

    Hi Ivan,

    no need for debugger here, just follow the User Manual:

    In UM2177 chapter 2.3 of

    /external-link.jspa?url=http%3A%2F%2Fwww.st.com%2Fcontent%2Fst_com%2Fen%2Fproducts%2Fembedded-software%2Fst25-nfc-rfid-software%2Fstsw-st25rhtml

    you will find a description how to update the board from the GUI (without using an SWD/JTAG) debugger even if the current firmware does not communicate with the GUI (Using the System Loader DFU mode).

    We know that e.g. this adapter works:

    https://www.segger.com/products/debug-probes/j-link/accessories/adapters/9-pin-cortex-m-adapter/

    Maybe your current application on the MCU messes with the debug pins, you could try to put the STM32 into bootloader mode before connecting with the debugger: Press Boot button, keep it pressed, Press Reset button, release it, then release Boot button. Now youmightbe able to connect with debugger again.

    Ulrich

    1 reply

    Technical Moderator
    January 29, 2018
    Posted on January 29, 2018 at 10:42

    Hi Ivan,

    no need for debugger here, just follow the User Manual:

    In UM2177 chapter 2.3 of

    /external-link.jspa?url=http%3A%2F%2Fwww.st.com%2Fcontent%2Fst_com%2Fen%2Fproducts%2Fembedded-software%2Fst25-nfc-rfid-software%2Fstsw-st25rhtml

    you will find a description how to update the board from the GUI (without using an SWD/JTAG) debugger even if the current firmware does not communicate with the GUI (Using the System Loader DFU mode).

    We know that e.g. this adapter works:

    https://www.segger.com/products/debug-probes/j-link/accessories/adapters/9-pin-cortex-m-adapter/

    Maybe your current application on the MCU messes with the debug pins, you could try to put the STM32 into bootloader mode before connecting with the debugger: Press Boot button, keep it pressed, Press Reset button, release it, then release Boot button. Now youmightbe able to connect with debugger again.

    Ulrich

    Visitor II
    January 29, 2018
    Posted on January 29, 2018 at 11:08

    Thank you.

    Give me a correct schematic of this adapter please.