Skip to content

Instantly share code, notes, and snippets.

@master-q
Last active August 29, 2015 14:11
Show Gist options
  • Save master-q/bed77a7951923d93341c to your computer and use it in GitHub Desktop.
Save master-q/bed77a7951923d93341c to your computer and use it in GitHub Desktop.
Can Mac OS X use USB host for OpenOCD?

Setup

Do not use USB 2.0.

$ sudo apt-get install libhidapi-dev
$ sudo apt-get build-dep openocd
$ git clone git://git.code.sf.net/p/openocd/code openocd-code
$ cd openocd
$ ./bootstrap
$ ./configure
$ make
$ sudo make install

Build and write

$ sudo apt-get install gcc-arm-none-eabi
$ git clone https://github.com/fpiot/chopstx-ats.git
$ cd chopstx-ats/example-fsm-55
$ make
$ sudo make write

OK!

Setup

$ vagrant init hashicorp/precise64
$ vagrant up
$ vagrant ssh
$ sudo apt-get update
$ sudo apt-get install python-software-properties
$ sudo apt-get install gcc-arm-none-eabi

However, vagrant can't use USB host.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment