Skip to main content
Visitor II
April 25, 2023
Question

Program custom target with nucleo st link

  • April 25, 2023
  • 2 replies
  • 1248 views

Hi

I have a Nucleo F103RB where I would like to use the st link to program my custom board with a ST321F03. I removed the jumpers on CN2 and connected SWDIO, SWCLK and GND.

When I try to connect via SWD with CubeIDE I get "Error in initializing ST-LINK device.

Reason: No device found on target."

I also removed the 0Ohm resistor SB12 without any luck.

Is it necessary to connect also NRST?

Any help is highly appreciated.

Thx

Andy


_legacyfs_online_stmicro_images_0693W00000bimnlQAA.png

    This topic has been closed for replies.

    2 replies

    Graduate II
    April 25, 2023

    Generally it means the target is inoperable, check supplies and orientation. Check level seen on target NRST.

    The NRST doesn't need to be connected to the ST-LINK, should work without, although "Connect Under Reset" won't have control it expects.

    Y​ou have a standalone ST-LINK you can try? That will need VTarget connected.

    O​ther signs of life would be to use USART1 PA9/PA10 in System Loader mode. Sending 0x7F data pattern at 9600 8E1

    AHöfl.1Author
    Visitor II
    April 25, 2023

    Hi

    First of all thanx for the quick reply.

    Unfortunately I do not have an ST-Link at my disposal.

    But generally it means, connecting SWCLK, SWDIO and GND should be enough?

    Do I really need to remove the SB12 resistor?

    Anything wrong with my schematics maybe? (I am quiet new to the HW Topic)

    Cheers

    Andy

    AHöfl.1Author
    Visitor II
    April 25, 2023

    Hi

    First of all thanx for the quick reply.

    Unfortunately I do not have an ST-Link at my disposal.

    But generally it means, connecting SWCLK, SWDIO and GND should be enough?

    Do I really need to remove the SB12 resistor?

    Anything wrong with my schematics maybe? (I am quiet new to the HW Topic)

    Cheers

    Andy