STM32CubeProgrammer doesn't program the Nucleo-H745ZI board reliably
I developed a stm32 project for the Nucle-H745ZIQ board with stm32cube ide, there's no issue downloading the code from IDE using its debugger. However, when I tried to download with stm32cube programmer, the code doesn't run (no expected actions can be observed on the board) after the download even though the cube programmer shows "download/verify successfully" and the "Device memory" tab shows data have been written to memory address. It doesn't happen every time, but it happens.
The ide version is 1.6.1, programmer version is 2.8. The connection is "ST-LINK", Port is "SWD", Mode I tried "Hot plug" and "Under reset". And I tried both .hex and .bin generated from IDE, the problem could not get fixed.
A brand new board is more likely to have this issue, no .hex file can run on board as expected by downloading from cube programmer. A workaround is to program the new board with CUBE IDE once, then it's less like to have this issue for this particular board while programming with CUBE programmer.
Can someone explain this and tell how this can be avoid?
Thanks.
