FATAL error ST-Link No MCU device found

embedded, microcontroller, stm32

Solution

I used ST-Link Utility to erase flash memory, once this is done i activated

Debugger > ST-Link > Reset > connect during reset

and all works well, i don't know why but i'am glad to see my board works again

Thank you for your help

Problem

I'am using IAR Workbench and I am having hard time to flash my STM32F407VG I got: FATAL error ST-Link No MCU device found. - The USB cable connecting the laptop and the MCU is new so I don't think it's the problem. - ST-Link en.stsw-link009 is installed When I go to project options Debugger > ST-Link > Reset > connect during reset and try to download again I got: Warning stack pointer is setup to incorrect alignement stack `addr = 0x00000016` after the download progress bar stay blocked. By navigating in the option menu I find it's possible to adjust CPU frequency actually it's 72 MHz, the default one, I changed it to 168 MHz, the CPU frequency but the problem remains. Could you please suggest me some solutions to debug/resolve the problem. Edit I have used STM32 ST-Link Utility and i succeded to connect to the board, But the problem with my IDE is not resolved yet.

Original source