Skip to main content
Graduate
November 22, 2023
Solved

STLINK/V3 debugging problem with STM32 C series.

  • November 22, 2023
  • 6 replies
  • 3675 views

DalipSharma_1-1700674427724.png

We are providing power to our Customised Microcontroller (STM#@ C series) board from my power supply@3.3vwe are using STLINK-V3SET with MB1440 adapter, it is an extension board provided by ST.

We have connected 3 PINS GND, SWDIO(PA13), SWDCLK(PA14) from CN6(connector 6) of extension MB1440 board. to our microcontroller board.

Getting above error.

NOTE: Clock used is internal & pinout as follows:

DalipSharma_2-1700675659206.png

 

a) Is T_Vcc an i/p pin? Do we need to give input 3.3v from my microcontroller board to Debugger connector's CN6 T-VCC pin. When we checked no voltage is present on CN6 T_VCC pin.

(We are powering microcontroller board from external power supply, because 3.3v is not present on STLINK/V3 extension MB1440 board.

b) Do we need to connect NRST pin of CN6 extension MB1440 board to the Microcontroller board . We checked, its remaining high @3.3v on microcontroller board.

Thanks.

 

    This topic has been closed for replies.
    Best answer by AScha.3

    it should work now...  not...its getting more difficult:

    - check swd+swc are connected (and not puzzled)

    - connect nrst PF2 to st-link reset and set st-link mode: hardware reset.

    6 replies

    Super User
    November 22, 2023

    with stlink-V3 you have to connect VDD 3v3 from target to stlink. See : it shows 0,0V at target, refuses to work.

    so connect the 3v3 !  (reset is not needed, if you use software reset, as you do. )

    Super User
    November 22, 2023

    a) T_VCC is an input to the programmer. It doesn't need connected, but your target does need to be powered. Connecting it lets the programmer verify that power is present.

    b) NRST does not need connected, but allows you to connect under reset and it allows the programmer to reset the chip.

     

    Graduate
    November 23, 2023

    Any idea if i can use RFU connector CN2 from STLINKV3-MB1441 board to power up my microcontroller. 3.3v is available on this connector.

     IMG_0034.jpgIMG_0035.jpg

    Thanks in Advance.

    Graduate
    November 23, 2023

    Or is there anyway to power target microcontroller from stlinkv3 debugger?

    Super User
    November 23, 2023

    >is there anyway to power target microcontroller from stlinkv3 debugger?

    no.

    you wrote: (We are powering microcontroller board from external power supply, because 3.3v is not present on STLINK/V3 extension MB1440 board.

    where is this supply now ??

    Graduate
    November 23, 2023

    DalipSharma_0-1700728862691.png

    Still getting target not found. Any way to check my microcontroller is working fine.

    On reset pin getting 3.14v.

    Few GPIO's showing 0.2v

    Few GPIO's showing 3.14v.

    AScha.3Answer
    Super User
    November 23, 2023

    it should work now...  not...its getting more difficult:

    - check swd+swc are connected (and not puzzled)

    - connect nrst PF2 to st-link reset and set st-link mode: hardware reset.

    Graduate
    November 23, 2023

    Powering from external supply: 3.3v Lithium cell