stlink_t* stlink_v1_open(const int verbose, int reset) {
stlink_t *sl = stlink_v1_open_inner(verbose);
- if (sl == NULL) {
- fputs("Error: could not open stlink device\n", stderr);
+ if (sl == NULL)
return NULL;
- }
+
// by now, it _must_ be fully open and in a useful mode....
stlink_enter_swd_mode(sl);
/* Now we are ready to read the parameters */