Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use teensy CLI loader for upload of .hex files on OSX #306

Closed
heyer2 opened this issue Oct 12, 2015 · 9 comments
Closed

Use teensy CLI loader for upload of .hex files on OSX #306

heyer2 opened this issue Oct 12, 2015 · 9 comments
Assignees
Milestone

Comments

@heyer2
Copy link

heyer2 commented Oct 12, 2015

At present platformIO uses the teensy GUI for the final upload of .hex files.
A more streamlined solution might be the command line loader available at:
https://www.pjrc.com/teensy/loader_cli.html

@ivankravets
Copy link
Member

We use CLI for Linux. Could you provide binaries for Mac OS X? I have discussion with @PaulStoffregen a few month before, he told me that there no support for Mac OS X yet.

@PaulStoffregen
Copy link
Contributor

Mac support was recently contributed.
PaulStoffregen/teensy_loader_cli#12

You still have the compile the code to get a Mac executable.

@heyer2
Copy link
Author

heyer2 commented Oct 12, 2015

I made a binary. I'm afraid I don't have my teensy nearby, but the program seems to work fine.
https://www.dropbox.com/s/l5850ic5umcb862/teensy_loader_cli?dl=0

@heyer2 heyer2 changed the title Use teensy CLI loader for upload of .hex files Use teensy CLI loader for upload of .hex files on OSX Oct 12, 2015
@ivankravets ivankravets added this to the 2.3.4 milestone Oct 12, 2015
@ivankravets ivankravets self-assigned this Oct 12, 2015
@ivankravets
Copy link
Member

Thanks @heyer2! tool-teensy package has been updated. Try it:

platformio update

P.S: I retested it with my Teensy 3.1/Mac OS X and it works! 👍

@ivankravets
Copy link
Member

@PaulStoffregen could we ask you to add link to http://platformio.org on these pages:

Thanks a lot!

@heyer2
Copy link
Author

heyer2 commented Oct 13, 2015

I can confirm it works on my end too.

@PaulStoffregen
Copy link
Contributor

@ivankravets
I've added a "PlatformIO Integration" section.
https://www.pjrc.com/teensy/loader_cli.html
Can you recommend text to replace the "TODO" line?

@ivankravets
Copy link
Member

PlatformIO is a cross-platform code builder and the missing library manager (Ready for embedded development, IDE and Continuous Integration).

platformio boards teensy
platformio init --board teensy31
  • Put source code files to newly created src directory, build firmware and upload it
platformio run --target upload

Also, see examples of pre-configured Teensy projects:

@ivankravets
Copy link
Member

Dear @PaulStoffregen,

See my post above #306 (comment)

You can modify it if you want.

Thanks in advance! 👍 🍻

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

No branches or pull requests

3 participants