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

Thread: Platformio build and monitor helper

  1. #1
    Junior Member
    Join Date
    Aug 2022

    Platformio build and monitor helper

    Admittedly I get annoyed by dumb things, so when using PIO with teensy the upload and monitor never works properly (at least for me) because teensy is still uploading when the monitor tries to start. This also happens with other boards that are still resetting when the the monitor starts causing it to timeout.

    So after asking for a feature that would add a delay and being shown a workaround I wound up with a nice simple script that can use a config property named monitor_delay

    See final post here

    Hope this helps someone else

  2. #2
    Senior Member
    Join Date
    Apr 2014
    Admittedly I get annoyed by dumb things
    :-) know that feeling...

    My solution is to use the TyTools for uploading and monitoring.
    Here one of my platformio.ini files (windows, changing for other OS should be straight forward I assume)

    framework = arduino
    platform = teensy
    upload_command = C:\toolchain\TyTools\tyCommanderC upload $SOURCE --autostart --wait --multi
    extends =TeensyBase
    board = Teensy40
    extends = TeensyBase
    board = Teensy31
    platform = atmelsam
    board = seeed_xiao
    upload_protocol = jlink

  3. #3
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    TyTools / TyCommander is the icing on the Teensy cake!

    Note: it cannot upload encrypted eHex to T_4.x's that need it.

    @koromix added option: --delegate >> as used in

    After asking for 'which board' it then hits 'auto software Button' and steps aside for Teensy Loader to do the job, and waits for return without locking Loader out of the USB port.

    Not sure it has any use - other than .eHex builds that only PJRC can upload.

Posting Permissions

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