Closed The00 closed 7 years ago
Please re-test:
pio platform uninstall atmelavr
pio platform install https://github.com/platformio/platform-atmelavr/archive/develop.zip
If you still have a problem, please make first uploading with Arduino IDE.
Thanks for your help !
I followed your step and I managed to get it work with some modification. The option -U seems to not exist, so I run it without. The arduino core wasn't present in your package. I copied the cores directory from the arduino IDE into the package directory. Also removed the wiring_pulse.S file from it, it was generating an error.
After that, everythings worked :)
Also, your package is quite different from the regular one, I guess it's used for developpement. Will the fix be added to the regular package ?
Sorry, I wrote broken steps... I've just edited above. Please repeat.
For the record, I have just experienced the same problem on a clean installation of VS Code + Platform IO v.4.10 (installed using the VS Code Extensions interface) with an Arduino Pro Micro (on Windows 10).
@ivankravets instructions above work great, however it took me a couple hours to track this issue down. Maybe some proactive work to prevent this for other users might be good.
Configuration
Operating system: Windows 7 64bit
PlatformIO Version (
platformio --version
): 3.2.1Description of problem
Hi ! When uploading code to an arduino leonardo, the normal serial port doesn't re-appears after uploading. Instead, the arduino stays on the bootloader serial port.
Steps to Reproduce
platformio init --ide eclipse --board leonardo
Actual Results
After an upload, the serial COM present is the bootloader, not the normal COM port. The uploaded code is running (blink demo code, tested with several delay). But the Serial communication doesn't work, and it's not possible to re-upload using Platformio.
Expected Results
For a normal uploading, the IDE reset the board. The bootloader shows up, the code is uploaded, and then the normal serial port goes on. Here, it doesn't, even after manual reset.
If problems with PlatformIO Build System:
The content of
platformio.ini
:Source file to reproduce issue:
Additional info
This problem looks like #178 , but according to the thread, the issue should have been solved in the 1.5.0 version. I tried with two Leonardo, same result on both. I also tried on Ubuntu, and it's work, both re-upload and serial port. However, a board uploaded under Ubuntu still bug when connected to windows (same PC). To me it's seem related to a incompatibility issue with the window driver of the board. What do you think ?