cancel
Showing results for 
Search instead for 
Did you mean: 

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

PGama.1
Associate II

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 !

19 REPLIES 19

I am using external STLink V2 programmer connecting SWDIO, SCLK and GND

I am first trying to connect it to stm32 cube programmer

Have you tried connecting under reset?

Kudo posts if you have the same problem and kudo replies if the solution works.
Click "Accept as Solution" if a reply solved your problem. If no solution was posted please answer with your own.

Yes, but no luck. I am wondering if STlink V3 would be of any help? Currently not available with me to test.

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

Kudo posts if you have the same problem and kudo replies if the solution works.
Click "Accept as Solution" if a reply solved your problem. If no solution was posted please answer with your own.
Ansh
Associate II

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.

Where did you set your first breakpoint?

Kudo posts if you have the same problem and kudo replies if the solution works.
Click "Accept as Solution" if a reply solved your problem. If no solution was posted please answer with your own.
Ansh
Associate II

There is no breakpoint in the code

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

Kudo posts if you have the same problem and kudo replies if the solution works.
Click "Accept as Solution" if a reply solved your problem. If no solution was posted please answer with your own.