diff --git a/stmhal/autoflash b/stmhal/autoflash
index dc28a97e29a0f3da9ce52fa5e6422c8d1ca33279..d2240ccb55c8c0fa5fc60066910b77384a02f217 100755
--- a/stmhal/autoflash
+++ b/stmhal/autoflash
@@ -8,6 +8,7 @@
 #   - run a terminal
 
 SERIAL=/dev/ttyACM0
+DEVICE=0483:df11
 
 while true; do
     echo "waiting for DFU device..."
@@ -19,7 +20,7 @@ while true; do
     done
 
     echo "found DFU device, flashing"
-    dfu-util -a 0 -D build/flash.dfu
+    dfu-util -a 0 -d $DEVICE -D build/flash.dfu
 
     echo "waiting for DFU to exit..."
     while true; do