2024-09-09 04:25 AM
Hi everyone,
We are facing issue is " Not able to load/dump code via ST -LINK Programmer " and it's showing as error mentioned below. please help us to resolve this kind of issues or please suggest any idea to implement it as soon possible.
--------------------------------------------Cube IDE console output-------------------------------------------------------------------------
STMicroelectronics ST-LINK GDB server. Version 7.8.0
Copyright (c) 2024, STMicroelectronics. All rights reserved.
Starting server with the following options:
Persistent Mode : Disabled
Logging Level : 1
Listen Port Number : 61234
Status Refresh Delay : 15s
Verbose Mode : Disabled
SWD Debug : Enabled
InitWhile : Enabled
Waiting for debugger connection...
Debugger connected
Waiting for debugger connection...
Debugger connected
Waiting for debugger connection...
-------------------------------------------------------------------
STM32CubeProgrammer v2.17.0
-------------------------------------------------------------------
Log output file: C:\Users\tabrezm\AppData\Local\Temp\STM32CubeProgrammer_a11912.log
ST-LINK SN : 002E000A4D46501220383832
ST-LINK FW : V3J15M7B5S1
Board : STLINK-V3SET
Voltage : 3.25V
Error: No STM32 target found! If your product embeds Debug Authentication, please perform a discovery using Debug Authentication
2nd connect tentative with frequency (8MHz)
ST-LINK SN : 002E000A4D46501220383832
ST-LINK FW : V3J15M7B5S1
Board : STLINK-V3SET
Voltage : 3.26V
SWD freq : 8000 KHz
Connect mode: Under Reset
Reset mode : Hardware reset
Device ID : 0x450
Revision ID : Rev V
Device name : STM32H7xx
Flash size : 2 MBytes
Device type : MCU
Device CPU : Cortex-M7
BL Version : 0x90
Memory Programming ...
Opening and parsing file: ST-LINK_GDB_server_a11912.srec
File : ST-LINK_GDB_server_a11912.srec
Size : 65.18 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.200
Verifying ...
Error: Data mismatch found at address 0x08000002 (byte = 0x00 instead of 0x08)
Error: Download verification failed
Encountered Error when opening C:\ST\STM32CubeIDE_1.16.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_2.1.400.202404281720\tools\bin\STM32_Programmer_CLI.exe
Error in STM32CubeProgrammer
Shutting down...
Exit.
Note: please suggest any idea to implement it as soon possible.
Regards,
Lokesh
2024-09-09 04:33 AM
Check banking in Option Bytes, show options.
Check board implementation, especially VCAP capacitor values placed, and observed voltage on pins.
2024-09-09 04:36 AM
especially VCAP capacitor values placed, and observed voltage on pins --> where these will get pls let us know??
2024-09-09 04:39 AM
Option Bytes,
2024-09-09 04:40 AM
Hello,
Is it a custom board? if yes check your HW especially VCAP and decoupling capacitors. You need to refer to the AN4938 Getting started with STM32H74xI/G and STM32H75xI/G MCU hardware development. Figure 18 as a schematics reference.
If you have an ST board, do you face the same behavior?
2024-09-09 04:46 AM
@LokeshIchchangi wrote:
especially VCAP capacitor values placed, and observed voltage on pins --> where these will get pls let us know??
In the datasheet:
Also Use STM32CubeProgrammer tool instead of STLINK-Utility as it is obsolete.
2024-09-09 04:51 AM
VCAP capacitor is placed and observed voltage is at VCAP 1 and 2 is 1.0 volt.
2024-09-09 05:05 AM
2024-09-09 06:06 AM
Check you schematics versus the schematics reference in AN4938 Getting started with STM32H74xI/G and STM32H75xI/G MCU hardware development
2024-09-09 06:19 AM
Should be closer to 1.25V
Capacitors, multiple 2.2uF each, or single common 4.7uF. The values here are important, you need adequate bulk capacitance.
Presuming this is your design, and built by your PCBA
Show Option Bytes from STM32 Cube Programmer, the old ST-LINK Utiities haven't been updated in a few years. Try doing a write/verify of a 2MB binary file to confirm functionality there.