Skip to main content
Visitor II
August 19, 2021
Question

Can STM32H7 chip be directly program with STLink/V2 via SWD ?

  • August 19, 2021
  • 7 replies
  • 4391 views

I have designed a costimazed PCB board based on NECLEO-H743Z12 board, and I have removed the build in STLink debugger, hoping that I will use the external STLink/V2 programmer via SWD. I have followed the schematics data sheet and connected pins [3.3V, GND, TMS, TCK, SWO] directly to H7 chip pins [PA13, PA14, PB3, VDD,GND]. I’m using the STLink software tool to detect the chip but till now I’m constantly getting error messages that the target chip is not detected.

What am I missing, am I doing something wrong ? Is it possible to program this chip directly? and how ? I will really appreciate your help as I’m new and this is my first customize design.

thanks !

    This topic has been closed for replies.

    7 replies

    Graduate II
    August 19, 2021

    It should be capable of working and connecting. I'd have the NRST wired up also.

    That you can't connect is more indicative that the H7 isn't running.

    What other signs-of-life testing have you done? Can you pull BOOT0 High and connect to the ROM System Loader via USART1 (PA9,PA10) or USB?

    Check level on NRST pin.

    Check voltage on VCAP pins.

    PGama.1Author
    Visitor II
    August 19, 2021

    Hi @Community member​ thanks for your quick response, I forgot to mentioned that NRST PIN was connected. I have attached the schematics bellow. the only test I did was to check the VDD powering the board with 3.3V and i have tested the VCAP pins with 1V, as for the USART, only the USART3 pinout is available on this breakout board.

    0693W00000DplLZQAZ.png

    ST Employee
    March 17, 2025

    Do you use the standard debugging tool (external STLink/V2 programmer). The SWD Programmer connector from schematic isn't the stardard one.

    PGama.1Author
    Visitor II
    August 19, 2021

    Update on the current issue (STM32H7 STlink-v2 programmer to breakout board ). it seems i can connect but the chip is not responding. here is the results from the STlink software tool. What am i missing ?

    0693W00000DpuudQAB.png 

    And the next is the results from the cubeIED

     0693W00000DpumpQAB.png

    Visitor II
    March 16, 2025

    Hi, is this resolved? I am facing same issue.

    Graduate II
    March 16, 2025

    Then probably something wrong with your design, try presenting details of that..

    Perhaps power issues, or correct part orientation. 

    Visitor II
    March 16, 2025

    STM32H745ZI, I am using stm32 v2 for swd connections. The core is powered through SMPS, I am getting 1.2V at VDDLDO.

    Graduate II
    March 17, 2025

    Do you have configured the proper SMPS settings in STM32CubeMX?

    Visitor II
    March 17, 2025

    I am first trying to connect it to stm32 cube programmer

    Graduate II
    March 17, 2025

    Have you tried connecting under reset?

    Graduate II
    March 21, 2025

    it can help to give a power cycle while holding the reset and then connecting under reset

    Visitor II
    March 21, 2025

    I am now able to connect to the target, found out my debugger is faulty. But, still facing problem after programming the controller. The program is simple LED toggle. I have checked the power supply configuration HAL_PWREx_ConfigSupply(PWR_DIRECT_SMPS_SUPPLY); The MCU is getting connected only when Boot0=1 after programming it got disconnected. Attached the log of cubeprogrammer.

    Graduate II
    March 21, 2025

    Where did you set your first breakpoint?

    Visitor II
    March 21, 2025

    There is no breakpoint in the code

    Graduate II
    March 21, 2025

    Add a breakpoint as early in the code as possible. In SystemInit. And then step through the code.