Skip to main content
Associate III
June 25, 2024
Question

STM32CubeProgrammer flash works where STM32CubeIDE does'nt

  • June 25, 2024
  • 0 replies
  • 2156 views

I'm not understanding why ( that why I'm here ...cpt obvious speaking) since 2 days I can't flash or debug under CubeIDE while in the same time connection and flash is working perfectly

for the record I'm working on a stm32WB35 using a stlink V3 v

STM32CubeIDE is : 1.15.1

STM32CubeProgrammer is 2.14.0

I've slow down the speed and tried all reset modes

oga_0-1719329457334.png

 

when I'm flashing under CubeIDE I have this results

 

 

 

 

STMicroelectronics ST-LINK GDB server. Version 7.7.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

ST-LINK device status: UNKNOWN
Waiting for debugger connection...
Debugger connected
Waiting for debugger connection...
Debugger connected
Waiting for debugger connection...
 -------------------------------------------------------------------
 STM32CubeProgrammer v2.16.0 
 -------------------------------------------------------------------



Log output file: C:\Users\O08A6~1.GAS\AppData\Local\Temp\STM32CubeProgrammer_a17572.log
ST-LINK SN : 002C00363331510F34333834
ST-LINK FW : V3J15M6B5S1
Board : STLINK-V3SET
Voltage : 2.92V
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 : 002C00363331510F34333834
ST-LINK FW : V3J15M6B5S1
Board : STLINK-V3SET
Voltage : 2.92V
Error: No STM32 target found! If your product embeds Debug Authentication, please perform a discovery using Debug Authentication
Encountered Error when opening C:\ST\STM32CubeIDE_1.13.2\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_2.1.201.202404072231\tools\bin\STM32_Programmer_CLI.exe
Error in STM32CubeProgrammer
Shutting down...
Exit.

 

 

 

oga_0-1719319822405.png

while under CubeProgrammer I got

 

 

 

 14:54:59:978 : UR connection mode is defined with the HWrst reset mode
 14:55:00:023 : ST-LINK SN : 002C00363331510F34333834
 14:55:00:024 : ST-LINK FW : V3J15M6B5S1
 14:55:00:024 : Board : STLINK-V3SET
 14:55:00:024 : Voltage : 2.89V
 14:55:00:024 : SWD freq : 8000 KHz
 14:55:00:024 : Connect mode: Normal
 14:55:00:024 : Reset mode : Software reset
 14:55:00:024 : Device ID : 0x495
 14:55:00:024 : Revision ID : Rev Y
 14:55:00:024 : flash loader C:\ST\CubeProgrammer\bin/FlashLoader/0x495.stldr is loaded
 14:55:00:024 : Debug in Low Power mode enabled.
 14:55:00:275 : UPLOADING OPTION BYTES DATA ...
 14:55:00:275 : Bank : 0x00
 14:55:00:275 : Address : 0x58004020
 14:55:00:275 : Size : 96 Bytes
 14:55:00:277 : Bank : 0x01
 14:55:00:277 : Address : 0x58004080
 14:55:00:277 : Size : 8 Bytes
 14:55:00:277 : UPLOADING OPTION BYTES DATA ...
 14:55:00:277 : Bank : 0x00
 14:55:00:277 : Address : 0x58004020
 14:55:00:277 : Size : 96 Bytes
 14:55:00:278 : Bank : 0x01
 14:55:00:278 : Address : 0x58004080
 14:55:00:278 : Size : 8 Bytes
 14:55:00:278 : UPLOADING ...
 14:55:00:278 : Size : 4 Bytes
 14:55:00:278 : Address : 0x58004080
 14:55:00:278 : Read progress:
 14:55:00:279 : Data read successfully
 14:55:00:279 : Time elapsed during the read operation is: 00:00:00.001
 14:55:00:279 : UPLOADING ...
 14:55:00:279 : Size : 1024 Bytes
 14:55:00:279 : Address : 0x8000000
 14:55:00:279 : Read progress:
 14:55:00:280 : Data read successfully
 14:55:00:280 : Time elapsed during the read operation is: 00:00:00.003
 14:55:02:848 : Memory Programming ...
 14:55:02:848 : Opening and parsing file: RS_Mk3.hex
 14:55:02:854 : File : RS_Mk3.hex
 14:55:02:854 : Size : 104.42 KB 
 14:55:02:854 : Address : 0x08000000 
 14:55:02:854 : Erasing memory corresponding to segment 0:
 14:55:02:855 : Memory Erase via FlashLoader!
 14:55:02:855 : Memory erase...
 14:55:02:860 : halt ap 0 
 14:55:02:865 : Erasing internal memory sectors [0 26]
 14:55:02:866 : Init flashloader...
 14:55:02:866 : halt ap 0 
 14:55:02:868 : run ap 0 
 14:55:02:868 : halt ap 0 
 14:55:02:868 : Loader sector erase...
 14:55:02:874 : run ap 0 
 14:55:03:468 : halt ap 0 
 14:55:03:468 : Download in Progress:
 14:55:03:469 : Size : 106936 Bytes
 14:55:03:469 : Address : 0x08000000 
 14:55:03:471 : halt ap 0 
 14:55:03:478 : Loader write range...
 14:55:03:587 : Init flashloader...
 14:55:03:587 : halt ap 0 
 14:55:03:592 : run ap 0 
 14:55:03:593 : halt ap 0 
 14:55:03:598 : run ap 0 
 14:55:04:316 : run ap 0 
 14:55:05:030 : Segment[0] downloaded successfully
 14:55:05:030 : File download complete
 14:55:05:047 : Time elapsed during download operation: 00:00:02.179
 14:55:05:047 : Verifying ...
 14:55:05:047 : Read progress:
 14:55:05:303 : Download verified successfully 
 14:55:05:326 : RUNNING Program ... 
 14:55:05:326 : Address: : 0x08000000
 14:55:05:327 : Application is running, Please Hold on...
 14:55:05:327 : Start operation achieved successfully

 

 

 

unfortunately the log file is not found in the named folder

I feel lost any help would be greatly appreciated

thanks a lot bu advance