• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

sync problem with platformio

Q&A Forum › Category: ESP8266 › sync problem with platformio
0 Vote Up Vote Down
David Fields asked 4 years ago

when trying upload program (sketch) to esp8266mod I receive the error msg.  below.
> Executing task in folder Blink-led: C:\Users\Owner\.platformio\penv\Scripts\platformio.exe run –target upload <
Processing uno (platform: atmelavr; board: uno; framework: arduino)
———————————————————————————————————————————————————————————–
Verbose mode can be enabled via `-v, –verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/atmelavr/uno.html
PLATFORM: Atmel AVR (3.1.0) > Arduino Uno
HARDWARE: ATMEGA328P 16MHz, 2KB RAM, 31.50KB Flash
DEBUG: Current (avr-stub) On-board (avr-stub, simavr)
PACKAGES:
– framework-arduino-avr 5.1.0
– tool-avrdude 1.60300.200527 (6.3.0)
– toolchain-atmelavr 1.50400.190710 (5.4.0)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 5 compatible libraries
Scanning dependencies…
No dependencies
Building in release mode
Checking size .pio\build\uno\firmware.elf
Advanced Memory Usage is available via “PlatformIO Home > Project Inspect”
RAM: [= ] 10.2% (used 208 bytes from 2048 bytes)
Flash: [= ] 6.2% (used 2008 bytes from 32256 bytes)
Configuring upload protocol…
AVAILABLE: arduino
CURRENT: upload_protocol = arduino
Looking for upload port…
Auto-detected: COM5
Uploading .pio\build\uno\firmware.hex
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x4c
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x45
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x44
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x20
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x69
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x73
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x20
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x6f
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x6e
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x0d
avrdude done. Thank you.
*** [upload] Error 1
=========================================================================== [FAILED] Took 7.59 seconds ===========================================================================
The terminal process “C:\Users\Owner\.platformio\penv\Scripts\platformio.exe ‘run’, ‘–target’, ‘upload'” terminated with exit code: 1.
Terminal will be reused by tasks, press any key to close it.
all loads good on arduino ide. any help?? thx dgf

10 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi.
What is the board model that you are using?
Do you have any peripherals connected to your board?
Regards,
Sara

0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

It seems that you didn’t select the right board when you started the project.
Can you show me your platformio.ini file?
Regards,
Sara

0 Vote Up Vote Down
David Fields answered 4 years ago

 
This is the board I got from ebay. I didn’t see it on the platformio boards list but I used 2  generic listings. there are no peripherals attached.
 thanks for the fast response
“ESP8266 ESP-12E CH340G WIFI Network Development Board Wemos for Arduino NodeMcu”
dgf

0 Vote Up Vote Down
David Fields answered 4 years ago

[env:esp12e]
platform = espressif8266
board = espressif8266
framework = arduino
monitor_speed = 115200

 
Here is the platform.ine file.
 
dgf

0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi David.
It seems that everything is alright with the paltformio.ini file.
Do you have any other projects opened with PIO at the same time?
Were you able to upload code to that board (via Arduino IDE, for example) before?
Regards,
Sara

0 Vote Up Vote Down
David Fields answered 4 years ago

hello
 
Arduino IDE loaded just fine and I have tried another bd or two and still get the same problem. Maybe I’ll try reinstalling the platformio and see what happens.
Thanks dgf
 

0 Vote Up Vote Down
David Fields answered 4 years ago

I think I’ll use the Arduino ide to upload to this board and buy another cheep chip and see if PIO works with that. Thanks for your help and guess we can count this resolved for now  thanks.
DGF.

0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi David.
Besides getting a new board, it is a good idea to reinstall PlatformIO IDE.
I’ll mark this issue as resolved. If you need further help, you just need to open a new question in our forum.
Regards,
Sara

0 Vote Up Vote Down
David Fields answered 4 years ago

I found the problem was that the latest build for Python wont work on Win 7. OOPS. I should have read the print better.  I installed Python 3.8 and was able to upload without problem.
Regards, DGF

0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Great!
I’m glad you found the problem.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.