ST-link fail to connect to target, "Wrong device detected"
I am trying to flash and debug a program to the STM32L476VGT6 target board. I am using ST-link JTAG, but fail to connect. Error Reason shown “Wrong device detected”. I enabled debug level 3 for debug message, and attached the log for detail.
Something is not right with the following log content.
”
Info : 288 149 stlink_usb.c:742 stlink_usb_check_voltage(): Target voltage: 3.998441
Debug: 289 150 stlink_usb.c:506 stlink_usb_error_check(): JTAG_GET_IDCODE_ERROR
”
The target voltage shall be around 3.3V, but JTAG reports 4V. I suspect that the board/processor is not properly powered up. I checked power supply voltages are correct, and the all pin connections seem right.
Any idea what might be the cause of this?
Thanks!