[update] factorize flash writing code. use core_id to identify.
[fw/stlink] / flash / main.c
index e1c881c0cb49b823d44fcad6035f98cebc2652a1..46a8ce1711e295651cf2c16e1bfae3c08bc6dd09 100644 (file)
@@ -97,7 +97,7 @@ int main(int ac, char** av)
   }
   else /* stlinkv2 */
   {
-    sl = stlink_open_usb(0);
+    sl = stlink_open_usb(1);
     if (sl == NULL) goto on_error;
   }