PaulStoffregen / teensy_loader_cli

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

Add --code-size option #83

Open toonn opened 1 year ago

toonn commented 1 year ago

This will print the available program size for a given MCU and then exit.

I was looking for an authoritative source of the available program size for the Teensy LC in particular and I couldn't find one. I did find the MCUs array in teensy_loader_cli.c and figured maybe the CLI can be this authoritative source.

Consider this a first swing at this. Any criticism of the implementation is welcome!