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
    Posts
    7

    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 https://github.com/platformio/platfo...re/issues/4416

    Hope this helps someone else

  2. #2
    Senior Member
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    1,916
    Admittedly I get annoyed by dumb things
    :-) know that feeling...

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

    Code:
    [platformio]
    
    [env]
    framework = arduino
    
    [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
    
    [env:SAMD21-seeed_xiao]
    platform = atmelsam
    board = seeed_xiao
    upload_protocol = jlink

  3. #3
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    16,468
    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 github.com/Defragster/Tset/.../TSet.cmd2#L55

    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
  •