Skip to main content
Associate III
January 27, 2025
Question

Did something ***, now no flash memory.

I was trying to change an option byte from the embedded bootloader of an stm32u5 over canFD.  Long story short I sent it some messages that were not formatted correctly and It looks like I have bricked the chip.  Trying to connect in stm32cubeprog with my st-link over swd I get
Error: ST-LINK error (DEV_TARGET_HELD_UNDER_RESET)

I have measured voltage on the reset line and it is 0.0v, I tried to pull it high through a 10k resistor and I still get the same error.  The most interesting part of this is when I ran "st-flash reset" I get the following output

st-flash 1.8.0
2025-01-26T20:22:12 INFO common.c: STM32U5Fx_U5Gx: 3026 KiB SRAM, 0 KiB flash in at least 8 KiB pages.
Failed to reset device

Notice the 0 KiB of flash, but it still identifies the chip and sram.  Any other ideas to try before I desolder and replace the chip?

This topic has been closed for replies.

2 replies

Uwe Bonnes
Chief
January 27, 2025

Does the target get hot and suck substantial more current? Then high voltage on some pin killed your chip.

Andrew Neil
Super User
January 27, 2025

@brohr01 wrote:

I have measured voltage on the reset line and it is 0.0v, I tried to pull it high through a 10k resistor


So did the pullup actually change the voltage at the pin?

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.