2023-03-20 12:15 AM
Log output file: C:\Users\ASHSIR\AppData\Local\Temp\STM32CubeProgrammer_a10808.log
ST-Link Server is running on port : 7184
ST-LINK SN : 3A2C0A0011145243574D4E00
ST-LINK FW : V2J37S7
Board : --
Voltage : 3.18V
SWD freq : 4000 KHz
Connect mode: Under Reset
Reset mode : Hardware reset
Device ID : 0x497
Revision ID : Rev Y
Device name : STM32WLxx
Flash size : 256 KBytes
Device type : MCU
Device CPU : Cortex-M4
BL Version : 0xC4
Memory Programming ...
Opening and parsing file: ST-LINK_GDB_server_a10808.srec
File : ST-LINK_GDB_server_a10808.srec
Size : 36.83 KB
Address : 0x08000000
Erasing memory corresponding to segment 0:
Erasing internal memory sectors [0 18]
Error: failed to erase memory
Error: failed to erase memory
Encountered Error when opening C:\ST\STM32CubeIDE_1.10.1\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_2.0.500.202209151145\tools\bin\STM32_Programmer_CLI.exe
Error in STM32CubeProgrammer
Shutting down...
Exit.
For this problem, I need to chip erase with BOOT0 pin high using stm32Cubeprogrammer every time before i upload the program. Some time debugging also doesn't work.