Skip to content

Issue with multiple targets #4604

Closed
Closed

Description

@fabianoriccardi

Bug

Configuration

Operating system: Windows 10

PlatformIO Version (platformio --version): PlatformIO Core, version 6.1.6

Description of problem

In platformio.ini I have created an env with the following target in order to flash an ESP8266:

[env:my_env]
targets = clean, upload, uploadfs, monitor

(other options are omitted for brevity)

I would expect they run sequentially, instead they run in parallel. Running in parallel, they lead to an obvious error since the last 3 targets try to acquire the serial port all together (the fastest target is monitor, so in the end upload and uploadfs fail).

Actual Results

The targets run in parallel.

Expected Results

The targets run sequentially.

Additional info

Issue already posted and confirmed on PIO forum here.

Activity

  1. added this to the 6.1.7 milestone on Apr 24, 2023
  2. ivankravets commented on Apr 25, 2023

    @ivankravets
    Member

    Thanks for the report. Please run pio upgrade --dev command and re-test. It should work now.

  3. fabianoriccardi commented on Apr 25, 2023

    @fabianoriccardi
    Author

    Now it partially works!

    If I run

    pio run -t clean -t upload -t uploadfs -t monitor
    

    it uploads 2 times the fs, but no firmware! Clean and monitor are executed properly.

    If I run

    pio run -t clean -t upload -t monitor
    

    it uploads the firmware as expected.

    pio --version gives 6.1.7b2

  4. ivankravets commented on Apr 26, 2023

    @ivankravets
    Member

    @fabianoriccardi now, this is the issue of epsressif32 dev-platform. Could you report it to https://github.com/platformio/platform-espressif32/issues ?

    Thanks in advance!

  5. ivankravets commented on Apr 26, 2023

    @ivankravets
    Member

    @vshymanskyy , could you re-test the latest development PIO Core (pio upgrade --dev) for your workflow with multiple targets?

  6. fabianoriccardi commented on Apr 26, 2023

    @fabianoriccardi
    Author

    I'm working on ESP8266, so I have opened the issue there.

  7. added a commit that references this issue on May 28, 2024
    6f0b1fb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions