PaulStoffregen / teensy_loader_cli

Command line Teensy Loader
http://www.pjrc.com/teensy/loader_cli.html
331 stars 152 forks source link

Cannot flash Teensy40 from Beaglebone Black #81

Closed LukaBanovic closed 1 year ago

LukaBanovic commented 1 year ago

I get two issues when trying to flash teensy from BBB:

PaulStoffregen commented 1 year ago

You need to install libusb v0.1, as explained in the comments: https://github.com/PaulStoffregen/teensy_loader_cli/blob/99082869db86f1f5ff7eef0d45262bc7e674f890/teensy_loader_cli.c#L211

/****************************************************************/
/*                                                              */
/*             USB Access - libusb (Linux & FreeBSD)            */
/*                                                              */
/*  Uses libusb v0.1. To install:                               */
/*  - [debian, ubuntu, mint] apt install libusb-dev             */
/*  - [redhat, centos]       yum install libusb-devel           */
/*  - [fedora]               dnf install libusb-devel           */
/*  - [arch linux]           pacman -S libusb-compat            */
/*  - [gentoo]               emerge dev-libs/libusb-compat      */
/*                                                              */
/*  - [freebsd]              seems to be preinstalled           */
/****************************************************************/
LukaBanovic commented 1 year ago

I've got libusb-0.1-4 installed, still throws the same error

LukaBanovic commented 1 year ago

after a little playing around with libusb versions and libusb-dev, I got rid of the usb.h issue. Thank you.