create a file /etc/modprobe.d/stlink.conf and add: options usb-storage quirks=0483:3744:i
Reload usb_storage driver with: sudo modprobe -rf usb_storage && sudo modprobe usb_storage
sudo openocd -f board/board.cfg -c init -c targets -c "reset" -c "halt" -c "flash write_image erase $hex" -c "verify_image $hex" -c "reset run" -c shutdown