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
PIO doesn't wait long enough for port open/close (SAMD21G) #13
Comments
Could you reproduce this issue with the latest upstream version? |
Please reopen if you still need help |
I have this same problem on linux. Operating system: Ubuntu 18.04 linux 4.15.0-34 platformio.ini
plaformio run --target upload output:
The above error happens about 90% of the time, and will upload ok the rest of the time. Getting boards programmed only works by hitting the reset button at random times, and trying the upload at random times and cycling until it actually programs. Then I repeat the process to get the monitor command to see the serial output. Any help would be appreciated. |
This seems to be a problem in the 1200baud sync. Can someone point me in the right direction for making changes to test? |
How did you install PIO Core? You can try to tune WaitForNewSerialPort. |
I experience a problem similar to the one reported by @jlillest . But for me it never works. Also random resetting and un- and re-plugging does not help. I am running PlatformIO from the VSCode in version 3.6.2a2. When trying to upload a minimal sample to the adafruit_feather_m0 board I get the following error:
For now I am resorting to the ArduinoIDE, with which the upload to the board works without problems. Any help will be highly apreciated. I have also tried using a windows machine which resulted in the same error:
|
What kind of issue is this?
You can erase any parts of this template not applicable to your Issue.
Configuration
Operating system: Windows 7 SP1
PlatformIO Version (platformio --version): v3.4.0b2 (within Atom: 2.0.0b.3)
Description of problem
When attempting to upload to an SAMD21 board (Adafruit Feather M0), the upload force closes the port, but does not wait long enough for Windows to actually close and re-open the serial port and so the upload fails. Sometimes Windows is speedy enough with the ports, but other times it misses.
Steps to Reproduce
Actual Results
Sometimes works without error
Other times, the port is forced closed, but before Windows has close the port, the uploader detects the old port as if it was the new port and attempts to upload to just as it is closing, causing a failure
Expected Results
Successful upload
Additional info
The Arduino IDE does not seem to have trouble with the port open/close and the speed of the port open/close on my system seems to depend some on what code the M0 had been running.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: