Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with multiple targets #4604

Closed
fabianoriccardi opened this issue Apr 22, 2023 · 5 comments
Closed

Issue with multiple targets #4604

fabianoriccardi opened this issue Apr 22, 2023 · 5 comments

Comments

@fabianoriccardi
Copy link

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.

@ivankravets
Copy link
Member

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

@fabianoriccardi
Copy link
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

@ivankravets
Copy link
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!

@ivankravets
Copy link
Member

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

@fabianoriccardi
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants