hathach c42edc080c Merge branch 'master' into develop %!s(int64=6) %!d(string=hai) anos
..
device 281cd858b0 adding lpc1549, but couldnt recieve setup packet, though setup received interrupt is triggered %!s(int64=6) %!d(string=hai) anos
host 6a076d8aae rename CFG_TUSB_HOST_CUSTOM_CLASS to CFG_TUH_VENDOR %!s(int64=6) %!d(string=hai) anos
obsolete 13e01c7dca add TU_ prefix to compiler ATTR to prevent name conflict with application %!s(int64=6) %!d(string=hai) anos
make.mk 0747c4b61b Add Spresense board %!s(int64=6) %!d(string=hai) anos
readme.md b76baeda97 docs update %!s(int64=6) %!d(string=hai) anos
rules.mk 0747c4b61b Add Spresense board %!s(int64=6) %!d(string=hai) anos

readme.md

Examples

Clone this repo

$ git clone https://github.com/hathach/tinyusb tinyusb
$ cd tinyusb

Fetch submodule MCUs drivers

TinyUSB examples includes external repos aka submodules to provide low-level MCU peripheral's driver to compile with. Therefore we will firstly fetch those mcu driver repo by running this command in the top folder repo

$ git submodule update --init --rescursive

It will takes a bit of time due to the number of supported MCUs, luckily we only need to do this once.

Build

Here is the list of supported Boards that should work out of the box with provided examples.

To build example, go to its folder project then type make BOARD=[our_board] all e.g

$ cd examples/device/cdc_msc_hid
$ make BOARD=feather_nrf52840_express all

Flash

flash target will use the on-board debugger (jlink/cmsisdap/stlink/dfu) to flash the binary. We should install those debugger/programmer software in advance. Futhermore, since external jlink can be used with most of the board, there is also flash-jlink target for out convenience.

$ make BOARD=feather_nrf52840_express flash
$ make BOARD=feather_nrf52840_express flash-jlink

Some board use uf2 bootloader for drag & drop in to mass storage device, uf2 can be generated with uf2 target

$ make BOARD=feather_nrf52840_express all uf2