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
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)
– 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
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…
CURRENT: upload_protocol = arduino
Looking for upload port…
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
What is the board model that you are using?
Do you have any peripherals connected to your board?
It seems that you didn’t select the right board when you started the project.
Can you show me your platformio.ini file?
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”
platform = espressif8266
board = espressif8266
framework = arduino
monitor_speed = 115200
Here is the platform.ine file.
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?
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.
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.
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.
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.