1
0
Fork 0

Command line programming not default, enable by reading quickstart and comments in Vagrantfile

This commit is contained in:
dragon788 2016-01-17 17:13:08 -06:00
parent ceb7257a9d
commit 6774167900
2 changed files with 11 additions and 7 deletions

View file

@ -21,3 +21,5 @@ See [doc/keymap.md](tmk_core/doc/keymap.md).
## Flashing the firmware ## Flashing the firmware
The "easy" way to flash the firmware is using a tool from your host OS like the Teensy programming app. [ErgoDox EZ](keyboard/ergodox_ez/README.md) gives a great example. The "easy" way to flash the firmware is using a tool from your host OS like the Teensy programming app. [ErgoDox EZ](keyboard/ergodox_ez/README.md) gives a great example.
If you want to program via the command line you can uncomment the ['modifyvm'] lines in the Vagrantfile to enable the USB passthrough into Linux and then program using the command line tools like dfu-util/dfu-programmer or you can install the Teensy CLI version.

16
Vagrantfile vendored
View file

@ -30,13 +30,15 @@ Vagrant.configure(2) do |config|
config.vm.provider "virtualbox" do |vb| config.vm.provider "virtualbox" do |vb|
# Hide the VirtualBox GUI when booting the machine # Hide the VirtualBox GUI when booting the machine
vb.gui = false vb.gui = false
vb.customize ['modifyvm', :id, '--usb', 'on'] # Uncomment the below lines if you want to program
vb.customize ['usbfilter', 'add', '0', # your Teensy via the VM rather than your host OS
'--target', :id, #vb.customize ['modifyvm', :id, '--usb', 'on']
'--name', 'teensy', #vb.customize ['usbfilter', 'add', '0',
'--vendorid', '0x16c0', # '--target', :id,
'--productid','0x0478' # '--name', 'teensy',
] # '--vendorid', '0x16c0',
# '--productid','0x0478'
# ]
# Customize the amount of memory on the VM: # Customize the amount of memory on the VM:
vb.memory = "512" vb.memory = "512"
end end