stlinkv2: Require STLINK V3 Rev > 2 as revision 1 can not read TARGETID.
This commit is contained in:
parent
9b764534e6
commit
82424b100b
|
@ -787,6 +787,9 @@ void stlink_init(int argc, char **argv)
|
||||||
if (Stlink.ver_stlink < 3 && Stlink.ver_jtag < 32) {
|
if (Stlink.ver_stlink < 3 && Stlink.ver_jtag < 32) {
|
||||||
DEBUG("Please update Firmware\n");
|
DEBUG("Please update Firmware\n");
|
||||||
goto error_1;
|
goto error_1;
|
||||||
|
} else if (Stlink.ver_stlink == 3 && Stlink.ver_jtag < 3) {
|
||||||
|
DEBUG("Please update Firmware\n");
|
||||||
|
goto error_1;
|
||||||
}
|
}
|
||||||
stlink_resetsys();
|
stlink_resetsys();
|
||||||
stlink_leave_state();
|
stlink_leave_state();
|
||||||
|
|
Loading…
Reference in New Issue