Skip to content

Instantly share code, notes, and snippets.

@strezh
Created February 9, 2015 13:55
Show Gist options
  • Select an option

  • Save strezh/812d892cf6a9ee54c7e9 to your computer and use it in GitHub Desktop.

Select an option

Save strezh/812d892cf6a9ee54c7e9 to your computer and use it in GitHub Desktop.
Use STM32+CooCoX in VirtualBox VM on Linux
  1. Install VM Extension pack in Virtual Machine
  2. Enable USB2.0 (EHCI) Controller in VM Settings
  3. Start-up and and shutdown VM, to ensure VM installs driver required by USB2.0 Controller
  4. Add USB filter for ST-Link/V2 USB programmer. (Do enter serial number , VM has issue with serial number containing non-readable ascii characters. )
  5. Install ST-Link utility in VM.
  6. Plug-in ST-Link programmer. Note: Host may install driver for USB2.0 Controller. Apparently this only works on USB2.0 host port , but later versions of Virtual Box may support USB3.0 ports.

If you got error:

Could not load the Host USB Proxy Service (VERR_FILE_NOT_FOUND). The service might be not installed on the host computer.

  1. try to run virtualbox under root (sudo)
  2. Add user to vboxusers group sudo adduser $USER vboxusers
  3. try to modify /etc/fstab none /proc/bus/usb usbfs devgid=128,devmode=664 0 0
  4. reboot your system!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment