Skip to main content
Visitor II
January 19, 2023
Question

STM32 board resets after "Connect" in STM32CubeProgrammer

  • January 19, 2023
  • 1 reply
  • 963 views

I have an STM32H7B0 MCU mounted on a board, powered by external power source.

I'm trying to connect ST-LINK V2 to this board using STM32CubeProgrammer to perform memory dump during operation.

I connect ST-LINK to PC, then connect power source, and then power the device on.

However when i click "Connect" in STM32CubeProgrammer, system seems to reset and then doesn't function as usual.

I'm able to get the dump in this state, but it is irrelevant to me.

I'm connecting via SWD and tried the following:

- Connect/disconnect NRST wire

- Connect/disconnect VDD wire

- Use different modes: HotPlug, Under reset (software/hardware reset)

Every time I get the same behaviour.

    This topic has been closed for replies.

    1 reply

    Super User
    January 19, 2023

    You can configure CubeIDE to start a debug session without halting or resetting the CPU. I"ve used this to debug a running system. You can then dump the memory window. Tedious but should work. Might also be able to use OpenOCD to do this.