2021-05-26 06:24 AM
I can not debug STM32L552 Nucleo-144 board with STM32CubeIDE 1.16.1
Here is output message from IDE:
STMicroelectronics ST-LINK GDB server. Version 5.8.0
Copyright (c) 2020, 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
-------------------------------------------------------------------
STM32CubeProgrammer v2.7.0-RC1
-------------------------------------------------------------------
ST-LINK SN : 0669FF505352716587121336
ST-LINK FW : V2J37M27
Board : NUCLEO-L552ZE-Q
Voltage : 3.26V
SWD freq : 4000 KHz
Connect mode: Under Reset
Reset mode : Hardware reset
Device ID : 0x472
Revision ID : Rev B
Device name : STM32L5xx
Flash size : 512 KBytes (default)
Device type : MCU
Device CPU : Cortex-M33
Memory Programming ...
Opening and parsing file: ST-LINK_GDB_server_a08360.srec
File : ST-LINK_GDB_server_a08360.srec
Size : 7640 Bytes
Address : 0x08000000
Erasing memory corresponding to segment 0:
Erasing internal memory sectors [0 3]
Download in Progress:
File download complete
Time elapsed during download operation: 00:00:00.231
Verifying ...
Error: Data mismatch found at address 0x08000000 (byte = 0xFF instead of 0x00)
Error: Download verification failed
Encountered Error when opening C:\ST\STM32CubeIDE_1.6.1\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_1.6.0.202101291314\tools\bin\STM32_Programmer_CLI.exe
Error in STM32CubeProgrammer
Debugger connection lost.
Shutting down...
2021-05-26 07:52 AM
Hello @tpeng.1 ,
Can you please try to upgrade the STLink Firmware and then tell me if this resolve the issue ?
It may be the cause of this problem is on the configuration. I suggest you to share the option bytes settings?
Please kepp us about your update.
Imen
2021-05-26 06:25 PM
2021-05-27 01:03 AM
Hi @tpeng.1 ,
Maybe this post can help you.
Please keep me updated about your progress on this issue.
Imen
2021-05-27 01:36 AM
2021-05-27 09:53 AM
Hi @tpeng.1 ,
Can you please try with the following option bytes:
Imen
2021-05-27 03:56 PM
Hi Imen,
Thank your help.
The option byte values given from you is the same as the my board settings.
I uncheck the “Verify flash down�? in IDE debug tab. File download complete. When viewing disassembly,
fffffffe: Failed to execute MI command:
-data-disassemble -s 4294967294 -e 4294967434 -- 3
Error message from debugger back end:
Cannot access memory at address 0xfffffffe
ffffffff: Failed to execute MI command:
-data-disassemble -s 4294967295 -e 4294967411 -- 3
Error message from debugger back end:
Cannot access memory at address 0xfffffffe
….
Br,
Tim