stlinkv2: Require STLINK V3 Rev > 2 as revision 1 can not read TARGETID.

This commit is contained in:
Uwe Bonnes 2019-06-03 16:28:55 +02:00
parent 9b764534e6
commit 82424b100b
1 changed files with 3 additions and 0 deletions

View File

@ -787,6 +787,9 @@ void stlink_init(int argc, char **argv)
if (Stlink.ver_stlink < 3 && Stlink.ver_jtag < 32) {
DEBUG("Please update Firmware\n");
goto error_1;
} else if (Stlink.ver_stlink == 3 && Stlink.ver_jtag < 3) {
DEBUG("Please update Firmware\n");
goto error_1;
}
stlink_resetsys();
stlink_leave_state();