2022-03-27 04:21 AM
I've connected an STM32F407-G-DISC1 board to debug a DIY-MORE breakout board. The debuggee is connected via SWDCLK,SWDIO, NRST to the STLINK-SWD interface of the DISC1 board. Discovery jumpers are off, ST-LINK enabled.
I'm loading a blinky app but when starting (debug mode), I'm etting:
STM32CubeProgrammer v2.10.0
-------------------------------------------------------------------
Log output file: /tmp/STM32CubeProgrammer_LLTeBo.log
ST-LINK SN : 066CFF485153XXXXX7123124
ST-LINK FW : V2J39M27
Board : STM32F4DISCOVERY
Voltage : 2.91V
SWD freq : 4000 KHz
Connect mode: Under Reset
Reset mode : Hardware reset
Device ID : 0x413
Revision ID : Rev 2.0
Device name : STM32F405xx/F407xx/F415xx/F417xx
Flash size : 1 MBytes (default)
Device type : MCU
Device CPU : Cortex-M4
BL Version : --
Memory Programming ...
Opening and parsing file: ST-LINK_GDB_server_Nsg3oS.srec
File : ST-LINK_GDB_server_Nsg3oS.srec
Size : 7.93 KB
Address : 0x08000000
Erasing memory corresponding to segment 0:
Erasing internal memory sector 0
Download in Progress:
File download complete
Time elapsed during download operation: 00:00:00.412
Verifying ...
Error: Data mismatch found at address 0x08001504 (byte = 0xF7 instead of 0x7B)
Error: Download verification failed
2022-03-27 05:37 AM
Make sure the SWD connection is short (15cm max) and you have solid ground connection. Also make sure your board has good and stable power supply.
JW
2022-03-27 06:50 AM
Check the board is powered correctly, at expected voltage
Check voltage/capacitors present on VCAP pins
2022-04-13 02:12 AM
Thanks. Probably all measures in direction of checking the connection were helpful in the end. Changed cables, probe wires, shorter USB cable, externally powered USB-supply. It now works.