Skip to main content
Graduate
August 14, 2025
Question

STM32533RE - programming with nucleo ST-link

  • August 14, 2025
  • 3 replies
  • 457 views

Hi,

Could someone be so kind as to explain in ***-proof terms exactly how I would connect an ST-link from a nucleo board to a custom STM32533RE PCB so that it can be programmed and debugged with STM32CubeIDE?  Which pins from the MCU do I need to make available on the PCB and how do they connect to the nucleo?  I haven't found a clear illustration of how to do this and some of the guides/comments I have seen have been conflicting!  I'm getting ready to send the PCB off to the fab house and want to make sure I've got this right as it would be an expensive mistake.

    This topic has been closed for replies.

    3 replies

    Super User
    August 14, 2025

    Connect SWDIO, SWCLK, GND at a minimum. Optionally connect NRST. Also optionally, connect TX/RX to take advantage of VCP functionality. Power must be supplied as well, generally does not come from the programmer.

    > a nucleo board

    Which one? They are not all the same. Some do not have programming capability without major modification. The user manual describes the pinouts if it has one.

    Graduate
    August 14, 2025

    Hi,

    Thanks for the reply - I have NUCLEO-H743ZI2 and NUCLEO-H533RE boards available.  On closer inspection, it doesn't look like I can get access to the ST-LINK pins to program externally.  Can you recomend a nucleo or one of the standalone ST-LINKs?  I'm a little bit lost with which one I need to get.

    Super User
    August 14, 2025

    I would get the STLINK-V3MINIE and use a standard programming header (FTSH-107-01-F-DV-K) to connect to the board.

    STLINK-V3MINIE | Tool - STMicroelectronics

    Pinout is detailed in the user manual.

    Graduate II
    August 14, 2025

    Which NUCLEO? they make a few..

    Generally you remove a pair of jumpers to disconnect the local target.

    Connect SWDIO, SWCLK, NRST and GND from the debug header to your new board. For a standalone ST-LINK be able to connect its power to pin1 or 2 of the 20 pin ARM JTAG header to power the pods buffers.

    Graduate
    August 14, 2025

    Hi,

    Thanks for the reply - I have NUCLEO-H743ZI2 and NUCLEO-H533RE boards available.  On closer inspection, it doesn't look like I can get access to the ST-LINK pins to program externally.  Can you recomend a nucleo or one of the standalone ST-LINKs?  I'm a little bit lost with which one I need to get!

    Graduate II
    August 14, 2025

    Most Nucleo-64 and Nucleo-144 boards with ST-Link/v2 older than H5* and H7* and N6* should work. At least all which can be broken to separate ST-Link from the target board.

    Some of them are NUCLEO-64:

    MB1136: NUCLEO-F030R8, NUCLEO-F070RB, NUCLEO-F072RB, NUCLEO-F091RC, NUCLEO-F103RB, NUCLEO-F302R8, NUCLEO-F303RE, NUCLEO-F334R8, NUCLEO-F401RE, NUCLEO-F410RB, NUCLEO-F411RE, NUCLEO-F446RE, NUCLEO-L010RB, NUCLEO-L053R8, NUCLEO-L073RZ, NUCLEO-L152RE , NUCLEO-L452RE, NUCLEO-L476RG, see UM1724

    MB1319: NUCLEO-L412RB-P, NUCLEO-L433RC-P, NUCLEO-L452RE-P, see UM2206

    MB1360: NUCLEO-G070RB, NUCLEO-G071RB, NUCLEO-G0B1RE, see UM2324

    And some are NUCLEO-144:

    MB1137: NUCLEO-F207ZG, NUCLEO-F303ZE, NUCLEO-F412ZG, NUCLEO-F413ZH, NUCLEO-F429ZI, NUCLEO-F439ZI, NUCLEO-F446ZE, NUCLEO-F722ZE, NUCLEO-F746ZG, NUCLEO-F756ZG,
    NUCLEO-F767ZI, NUCLEO-H743ZI, see UM1974

    MB1312: NUCLEO-L496ZG, NUCLEO-L496ZG-P, NUCLEO-L4A6ZG, NUCLEO-L4P5ZG, NUCLEO-L4R5ZI, NUCLEO-L4R5ZI-P, see UM2179

     

    P.S.: some older Discovery boards will do the job as well with an internal ST-Link/v2. I found in my tray:

    Discovery kit with STM32F407VG, see UM1472

    Discovery kit with STM32L053C8, see UM1775

     

    (or you follow Tesla's suggestion and buy an external ST-Link/v3.... I only have ST-Link/v2 up to now; they will work and are simpler and maybe they are cheaper. But /v3 will be faster at growing binary sizes...)