PaulStoffregen / teensy_loader_cli

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

Not seeing all the possible teensy boards after compile #72

Open thestud opened 2 years ago

thestud commented 2 years ago

OS: Ubuntu 21.04, 21.10 I have installed the library in the read me.

MCUs listed from --list-mcus

Supported MCUs are:

Ironically have a teensy 3.2 and a 4.0, which aren't on the list.

I have tried changing the teensy_loader_cli.c file to https://github.com/PaulStoffregen/teensy_loader_cli/blob/master/teensy_loader_cli.c#L1051-L1078

surprisingly, didn't change which I thought I would see something.

after a compile I get: cc -O2 -Wall -s -DUSE_LIBUSB -o teensy_loader_cli teensy_loader_cli.c -lusb

Let me know if there is any other data that would help debug this issue. I am not seeing anyone else having this issue so I am probably doing something wrong.

just typing make in the directory to compile, OS is selected as Linux.

thestud commented 2 years ago

oh if this helps my gcc version:

gcc (Ubuntu 11.2.0-7ubuntu2) 11.2.0 Copyright (C) 2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

quiltedstars commented 2 years ago

Am having the same issue, cannot flash to my 4.0

PaulStoffregen commented 1 year ago

Linux command line shells usually require ./ to be added if you wish the run the copy you've just compiled. Otherwise, the shell will run the (too old with Teensy 4.0 support) copy located somewhere else on your computer.

So after you have successfully compiled a new copy of teensy_loader_cli, and it's in the current working directory, to run it would would type "./teensy_loader_cli".

This isn't anything specific to teensy_loader_cli. It's simply how the command line interface works on nearly all Linux distros.