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
Hi.
What is the board model that you are using?
Do you have any peripherals connected to your board?
Regards,
Sara
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
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
[env:esp12e]
platform = espressif8266
board = espressif8266
framework = arduino
monitor_speed = 115200
Here is the platform.ine file.
dgf
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
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
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.
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
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