Проблемы с PlatformIO ([upload] Error 1)
- Войдите на сайт для отправки комментариев
Вс, 22/04/2018 - 13:59
Здравствуйте. Решил недавно ради интереса попробовать IDE для Arduino PlatformIO. Установил в Atom пакет, создал новый проект, ну и решил для проверки запустить Blink:
#include "Arduino.h" #define LED_PIN 13 #define BLINK_DELAY 1000 void setup() { pinMode(LED_PIN, OUTPUT); } void loop() { digitalWrite(LED_PIN, HIGH); delay(BLINK_DELAY); digitalWrite(LED_PIN, LOW); delay(BLINK_DELAY); }
В файле platformio.ini указал все необходимые параметры:
[env:uno]
platform = atmelavr
board = uno
framework = arduino
upload_speed = 57600
upload_port = COM5
Код скомпилировался без ошибок и быстро. А вот с загрзкой в Arduino появились проблемы:
Выдаёт вот такую ошибку:
Выдаёт вот такую ошибку:

Текст целиком:
[04/22/18 12:47:24] Processing uno (platform: atmelavr; board: uno; framework: arduino) Verbose mode can be enabled via `-v, --verbose` option PLATFORM: Atmel AVR > Arduino Uno SYSTEM: ATMEGA328P 16MHz 2KB RAM (31.50KB Flash) Library Dependency Finder -> http://bit.ly/configure-pio-ldf LDF MODES: FINDER(chain) COMPATIBILITY(light) Collected 24 compatible libraries Scanning dependencies... No dependencies C:\.platformio\packages\tool-scons\script\..\engine\SCons\Environment.py:1303: UnicodeWarning: Unicode equal comparison failed to convert bo th arguments to Unicode - interpreting them as being unequal val = [x for x in val if x not in dk] Linking .pioenvs\uno\firmware.elf Checking program size text data bss dec hex filename 928 0 9 937 3a9 .pioenvs\uno\firmware.elf Configuring upload protocol... AVAILABLE: arduino CURRENT: upload_protocol = arduino Looking for upload port... Use manually specified: COM5 Uploading .pioenvs\uno\firmware.hex avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xe0 avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xe0 avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xe0 avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xe0 avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00 avrdude done. Thank you. *** [upload] Error 1 [ERROR] Took 80.83 seconds
Прошу помощи в решении данной проблемы, заранее благодарю
Вопрос решён увеличением скорости загрузки до 115200bod в строке upload_speed
Спасибо тебе дорогой человечище!!!