diff --git a/examples/SDdatalogger/boot.py b/examples/SDdatalogger/boot.py
index aa943fde934106aa9fc12dd83c2a35c2773011c7..4ac94bbaa4e4438b8824b6310b05321634e8a301 100644
--- a/examples/SDdatalogger/boot.py
+++ b/examples/SDdatalogger/boot.py
@@ -16,10 +16,10 @@ pyb.LED(3).off()                # indicate that we finished waiting for the swit
 pyb.LED(4).on()                 # indicate that we are selecting the mode
 
 if switch_value:
-    pyb.usb_mode('CDC+MSC')
+    pyb.usb_mode('VCP+MSC')
     pyb.main('cardreader.py')           # if switch was pressed, run this
 else:
-    pyb.usb_mode('CDC+HID')
+    pyb.usb_mode('VCP+HID')
     pyb.main('datalogger.py')           # if switch wasn't pressed, run this
 
 pyb.LED(4).off()                # indicate that we finished selecting the mode
diff --git a/stmhal/main.c b/stmhal/main.c
index 30dddaf989f43860911449b9088cd03f4624b4e9..32baae5320a1a4ee8f46f2bae634a9dfb989a07c 100644
--- a/stmhal/main.c
+++ b/stmhal/main.c
@@ -137,8 +137,8 @@ static const char fresh_boot_py[] =
 "import machine\r\n"
 "import pyb\r\n"
 "#pyb.main('main.py') # main script to run after this one\r\n"
-"#pyb.usb_mode('CDC+MSC') # act as a serial and a storage device\r\n"
-"#pyb.usb_mode('CDC+HID') # act as a serial device and a mouse\r\n"
+"#pyb.usb_mode('VCP+MSC') # act as a serial and a storage device\r\n"
+"#pyb.usb_mode('VCP+HID') # act as a serial device and a mouse\r\n"
 ;
 
 static const char fresh_main_py[] =