2021-12-02 07:10 AM
Have been using STM32CubeIDE with several processors and different Nucleo boards with success
Acquired a Nucleo-U575ZI and when I try to download code I get:
STMicroelectronics ST-LINK GDB server. Version 6.0.0
Copyright (c) 2021, 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
Target no device found
Error in initializing ST-LINK device.
Reason: No device found on target.
Checked the obvious
Updated ST-Link
Checked all the jumpers
Tried different machines (that also work well with other boards/processors)
I can erase the device with STM32CubeProgrammer and it appears I can upload to just the first sector with that tool
2021-12-02 01:13 PM
Corrections - it's not the first sector that can be written to just the first 16bytes
I can do a Full chip erase with the STM32CubeProgrammer:
14:09:16 : MASS ERASE ...
14:09:16 : Mass erase successfully achieved
14:09:16 : UPLOADING ...
14:09:16 : Size : 1024 Bytes
14:09:16 : Address : 0x8000000
14:09:16 : Read progress:
14:09:16 : Data read successfully
14:09:16 : Time elapsed during the read operation is: 00:00:00.006
And the memory shows all 0xff
Created a small executable (tmp.bin) and when attempt to load it with STM32CubeProgrammer:
14:11:14 : Memory Programming ...
14:11:14 : Opening and parsing file: tmp.bin
14:11:14 : File : tmp.bin
14:11:14 : Size : 32445 Bytes
14:11:14 : Address : 0x08000000
14:11:14 : Erasing memory corresponding to segment 0:
14:11:14 : Erasing internal memory sectors [0 3]
14:11:14 : Download in Progress:
14:11:14 : Error: Fail to write buffer in flash
14:11:14 : Error: failed to erase memory
14:11:14 : Error: failed to download Segment[0]
14:11:14 : Error: failed to download the File
When I read the flash only the first 16bytes are written the rest are all 0xff
Following that I can no longer do a Full chip erase with the STM32CubeProgrammer
14:12:39 : MASS ERASE ...
14:12:40 : Error: failed to erase memory
14:12:40 : Error: Mass erase operation failed.Please verify flash protection
until I do a reset and then I can erase again
2021-12-07 04:13 PM
Brand new board, seeing as we have a serious lack of enthusiasm for support here it looks like we should try and return it
2023-12-13 07:23 PM
I had the same problem. I had the Nucleo board on a breadboard at the time. After taking the Nucleo board off the breadboard, debugging it was no problem anymore.
Maybe connecting it to a breadboard is short circuiting some pins.... I'm not entirely sure why it was like that.