Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 8 of 8

Thread: How to stop loading Teensy loader after compile?

  1. #1

    How to stop loading Teensy loader after compile?

    Hi. I am using custom board with ATmega32u4. Naturally, it doesn't have HalfKay bootloader, so I'm compiling code for Teensy 2.0 (in Arduino IDE) and then uploading it to board using USBasp. Now, every time I hit compile - Teensy Loader is opening. How do I stop that behavior?

    Thanks!

  2. #2
    Why not just compile for Arduino Micro?

  3. #3
    Quote Originally Posted by jwmelvin View Post
    Why not just compile for Arduino Micro?
    Because of USB MIDI.

  4. #4
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    13,756
    I'd just minimize and ignore Teensy Loader and do a VERIFY build. That still starts the loader but doesn't make it FLASH like COMPILE.

    You could do something more drastic like kill the EXE or edit config files - but that could cause trouble later.

  5. #5
    Quote Originally Posted by defragster View Post
    You could do something more drastic like kill the EXE or edit config files
    That's what I want - I just don't know which files to modify.

    Quote Originally Posted by defragster View Post
    but that could cause trouble later.
    I'm not too concerned with that.

  6. #6
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    23,999
    Really, I'm pleased to see the open source code I've published is helpful for you.

    All development of that code, and development of a lot more open source software, is funded by sales of Teensy. It's ok to use it on non-Teensy hardware, as permitted by the open source license. Asking for tech support to specifically modify it for non-Teensy hardware isn't specifically disallowed by the rules or license, but it kinda shows a lack of appreciation for the large amount of work that goes into published so much software, as well as the financial realities needed to make it possible.

  7. #7
    Quote Originally Posted by PaulStoffregen View Post
    Really, I'm pleased to see the open source code I've published is helpful for you.

    All development of that code, and development of a lot more open source software, is funded by sales of Teensy. It's ok to use it on non-Teensy hardware, as permitted by the open source license. Asking for tech support to specifically modify it for non-Teensy hardware isn't specifically disallowed by the rules or license, but it kinda shows a lack of appreciation for the large amount of work that goes into published so much software, as well as the financial realities needed to make it possible.
    Ah, I see. I'm sorry - didn't mean to disrespect your work! Teensy software stack is great - that's why I use it on my custom boards. Loader is just a minor inconvenience, but I can live with it.

  8. #8
    I know this is an old post, but I was looking for this information and this was the best result I found. I ended up figuring it out by taking the information in the Arduino compiler output where it referenced "teensy_post_compile". I then searched the files for any reference to it and found it. If you edit the {ArduinoFolder}/hardware/teensy/avr/platform.txt file and comment out the line for the hook to teensy_post_compile, it will stop launching the Teensy loader.

    I needed this because I was compiling using the Arduino command line options to output the hex file, but it still kept launching the teensy loader.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •