File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 30
30
#define STLINK_PID 0x3748
31
31
#define STLINK_PIDV21 0x374b
32
32
#define STLINK_PIDV21_MSD 0x3752
33
+ #define STLINK_V3EC 0x3754
33
34
#define STLINK_PIDV3_MSD 0x374e
34
35
#define STLINK_PIDV3 0x374f
35
36
#define STLINK_PIDV3_BL 0x374d
@@ -135,6 +136,7 @@ int main(int argc, char *argv[]) {
135
136
fprintf (stderr , "StlinkV3 Bootloader found\n" );
136
137
break ;
137
138
case STLINK_PIDV21 :
139
+ case STLINK_V3EC :
138
140
case STLINK_PIDV21_MSD :
139
141
case STLINK_PIDV3_MSD :
140
142
case STLINK_PIDV3 :
@@ -209,7 +211,8 @@ int main(int argc, char *argv[]) {
209
211
printf ("Current mode : %d\n" , res );
210
212
211
213
if (res & 0xfffc ) {
212
- printf ("ST-Link dongle is not in the correct mode. Please unplug and plug the dongle again.\n" );
214
+ printf ("ST-Link dongle has crypto bootloader. Restarting ST application.\n" );
215
+ stlink_exit_dfu (& info );
213
216
libusb_release_interface (info .stinfo_dev_handle , 0 );
214
217
return EXIT_SUCCESS ;
215
218
}
You can’t perform that action at this time.
0 commit comments