Teensy Qt

Here is what I usually use in PIO.

Code:
[TeensyBase]
platform = teensy
upload_command = C:\toolchain\TyTools\tyCommanderC upload $SOURCE --autostart --wait --multi

[env:T4.0]
extends =TeensyBase
board = Teensy40

[env:T3.2]
extends = TeensyBase
board = Teensy31
 
@defragster trying to get this to work on an RPI4. A little fuzzy on what actually goes in the { }. You have a {cmd.path}, {build.path} and a {build.project_name}.
In the IDE1, one needed to open tycommander and click Tools > Integrate to Arduino. Do I need to do that for IDE2? If so, where is the Arduino path? /temp/Arduino ? When I select anything in /temp it says it is not a valid Arduino directory.

I created a file local.platform.txt in /home/bruce/.arduino15/packages/teensy/hardware/avr/0.58.3 (Soon to be updated, but one step at a time...) Contents of file right now are:
Code:
tools.teensyloader.cmd.path=/home/bruce/Apps/tytools-0.9.7/build/linux/tycommander
tools.teensyloader.upload.pattern="{cmd.path}" upload --autostart --wait --delegate "{build.path}/{build.project_name}.hex"
Is it that I need to update tycommander? A bit lost here...

'Integrate' works for IDE 1, not the same for IDE 2 - at least not seen it adjusted to work - and not looked to see it work there.

Assume the RPI4/linux path is the good as shown and that the same indicated edit should work to find and execute TyCommander as it does on Windows. This allows IDE2 to get the Teensy selected for upload by TyCommander and use of TyCommander for Serial Monitor. It works better and provides it in a second window versus stuck in a subwindow of the IDE2.
> So putting 'just' that in platform.local.txt before starting IDE2 has been working here on Windows.
> and replacing it with any update to TeensyDuino version as it gets removed when the prior version is removed.

--delegate is used here as so many T_4.x's here are PJRC supplied lockable and TyCommander doesn't know the .eHex upload process so that defers to PJRC's Teensy.exe loader after the desired 'Teensy' is selected from TyCommander GUI.
 
@defragster , thanks. It sort of works. I was able to program my 4.1. However, it didn't automatically launch tycommander. But if I open tycommander manually, it seems to work. I will look at it some more.
 
Here is what I usually use in PIO.

Code:
[TeensyBase]
platform = teensy
upload_command = C:\toolchain\TyTools\tyCommanderC upload $SOURCE --autostart --wait --multi

[env:T4.0]
extends =TeensyBase
board = Teensy40

[env:T3.2]
extends = TeensyBase
board = Teensy31

Thanks. Haven't tried platform.io yet. Wasn't quite sure how to install it. Went to the GitHub site and they assumed you knew everything;). But I didn't. Is it a decent development environment? How hard is it to set up Teensy or other microcontrollers?

Went to the wrong site. Oops. Have to decide if I want Visual Studio on my Linux machine. Have mixed feelings about that. Hmm.
 
Last edited:
Thanks. Haven't tried platform.io yet. Wasn't quite sure how to install it. Went to the GitHub site and they assumed you knew everything;). But I didn't. Is it a decent development environment? How hard is it to set up Teensy or other microcontrollers?

IMHO PIO is pretty much THE current development system for embedded development. Installation is super simple, you'd install it from within vscode (it's just an extension to vscode). There should be plenty of instructions around. IIRC you are on Windows? If so, you could also give VisualTeensy a try which is my standard system (well, I'm biased of course :)
 
Been a Linux person for a while now, more than a decade. So installing MS stuff on Linux gives me pause, simply due to past MS hostility to the platform. Perhaps things have changed, and it is worth trying.
 
The only TyCommander binary I have found for a Mac is 2023. And it says its for old versions of MacOS, much older than I have. Does anyone know if one can compile the source for a Mac these days? I have Sequoia 15.3.2, which is the latest. I've compiled FreeCAD, and CFDoF, and HiSA on my Mac, but not TyCommander or QT. I need to access multiple serial streams, USBSerial, and USBSerial1, which the Arduino IDE2 can't handle (to my knowledge). Can someone give some guidance?
 
I just downloaded those 2023 binaries for Mac and Windows and both worked will for my purposes.
The source would need to be compiled with a paid version of QT, would it not?
 
I just downloaded those 2023 binaries for Mac and Windows and both worked will for my purposes.
The source would need to be compiled with a paid version of QT, would it not?
Are you using Apple silicon? I have an M3 Max and have run into issues with older stuff.
One can get qt via homebrew. Not sure why one would need a paid version of QT, it's not commercial, it's open source, anyone can use it. I'm not using the tools for commercial purposes.
 
My Mac is now an M4, and the windows box is 2 years old.
Building from source, including an installer that does not scare users on Mac or Windows, and a simple UI of each… would be a plus.
It’s not a big enough pain point for me to enter the rabbit hole.
 
My Mac is now an M4, and the windows box is 2 years old.
Building from source, including an installer that does not scare users on Mac or Windows, and a simple UI of each… would be a plus.
It’s not a big enough pain point for me to enter the rabbit hole.
Have an M3 Max MacBookPro (Nov 2023). Have permissions issues with TyCommander, how do I undo whatever I may have denied? Sorry for the question here, but I'm close, so close to getting this working. I compiled with two serials, and TyCommander saw the second port, but I have yet to get any output on the second port.

If I can get this binary to work, it will be fine. It seems that Arduino IDE2 is hanging up when Teensy loader runs and TyCommander is running. The two apps are grabbing the virtual serial ports and won't let go. If I could get TyCommander integrated with Arduino IDE2, it would be great, but TyCommander is asking for a path to the IDE2 and I have no idea where it is... Mac binary locations confuse me, its not like Linux or Windows.
 
Guessing this is the issue and resolution?
Arduino IDE2 is hanging up when Teensy loader runs and TyCommander is running.
Try making a "platform.local.txt" file beside the platform.txt in use {with correct path to the .EXE} [then fresh start of the IDE]
Code:
tools.teensyloader.cmd.path=T:\T_Drive\TyComm\TyCommanderC.exe
tools.teensyloader.upload.pattern="{cmd.path}" upload --autostart --wait --delegate "{build.path}/{build.project_name}.hex"

The "--delegate" option was added to tell TyCommander to drop the USB connections, expecting the Teensy Loader to be active
Then when the 'go to Bootloader' command is issued to Teensy, the loader will proceed to perform the upload.
TyCommander will then resume as SerMon when the upload is complete.

This was added to TyCommander when LOCKING Teensy was created and only the Loader knew the upload process of eHex, but use of Tycommander was still preferred as it handles multiple Teensy units better, or any combination of Dual or Triple USB Serial.
 
Guessing this is the issue and resolution?

Try making a "platform.local.txt" file beside the platform.txt in use {with correct path to the .EXE} [then fresh start of the IDE]
Code:
tools.teensyloader.cmd.path=T:\T_Drive\TyComm\TyCommanderC.exe
tools.teensyloader.upload.pattern="{cmd.path}" upload --autostart --wait --delegate "{build.path}/{build.project_name}.hex"

The "--delegate" option was added to tell TyCommander to drop the USB connections, expecting the Teensy Loader to be active
Then when the 'go to Bootloader' command is issued to Teensy, the loader will proceed to perform the upload.
TyCommander will then resume as SerMon when the upload is complete.

This was added to TyCommander when LOCKING Teensy was created and only the Loader knew the upload process of eHex, but use of Tycommander was still preferred as it handles multiple Teensy units better, or any combination of Dual or Triple USB Serial.
Well, it may be the solution for Windows, but I'm using a Mac, and I have no idea where the actual app executables are located on a Mac. Google tells me they can be found in the Applications area.

/Applications/TyCommander.app/Contents/MacOS/TyCommander

Now all I have to find is where Arduino is hiding everything. Have no idea where all the files are for that. I did a Finder search for platform.txt and nothing is found. Yeah, it's in a hidden folder. But I think I found it.

username/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/platform.txt

Spelling it all out for those poor folks that have to deal with a Mac.

So for a numbskull like me, the contents of platform.local.txt would be only the code fragment above with the corrected Mac path?
 
Back
Top