I’m trying to upload the “blink” to my new Arduino Pro Mini and having trouble. maybe it is because i do not understand the meaning of the {env:.xxx] section in the project.ini or maybe i’m missing something else .
Project .ini:
#
# Project Configuration File
#
# A detailed documentation with the EXAMPLES is located here:
# http://docs.platformio.org/en/latest/projectconf.html
#
# A sign `#` at the beginning of the line indicates a comment
# Comment lines are ignored.
# Simple and base environment
# [env:mybaseenv]
# platform = %INSTALLED_PLATFORM_NAME_HERE%
# framework =
# board =
#
# Automatic targets - enable auto-uploading
# targets = upload
[env:uno]
platform = atmelavr
framework = arduino
board = uno
[env:pro8MHzatmega328]
platform = atmelavr
framework = arduino
board = pro8MHzatmega328
the “[env:pro8MHzatmega328]” is what i think is the corresponding code for Arduino Pro Mini 3.3v.
The code compiles fine. The upload:
[Thu Oct 6 22:05:20 2016] Processing uno (platform: atmelavr, board: uno, framework: arduino)
--------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
Collected 25 compatible libraries
Looking for dependencies...
Project does not have dependencies
Linking .pioenvs/uno/firmware.elf
Checking program size .pioenvs/uno/firmware.elf
text data bss dec hex filename
1070 2 9 1081 439 .pioenvs/uno/firmware.elf
Looking for upload port...
Warning! Please install `99-platformio-udev.rules` and check that your board's PID and VID are listed in the rules.
https://raw.githubusercontent.com/platformio/platformio/develop/scripts/99-platformio-udev.rules
Auto-detected: /dev/ttyUSB0
Uploading .pioenvs/uno/firmware.hex
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
<skip>
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
avrdude done. Thank you.
*** [upload] Error 1
========================== [ERROR] Took 53.19 seconds ==========================
[Thu Oct 6 22:06:13 2016] Processing pro8MHzatmega328 (platform: atmelavr, board: pro8MHzatmega328, framework: arduino)
--------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
Collected 25 compatible libraries
Looking for dependencies...
Project does not have dependencies
Linking .pioenvs/pro8MHzatmega328/firmware.elf
Checking program size .pioenvs/pro8MHzatmega328/firmware.elf
text data bss dec hex filename
1070 2 9 1081 439 .pioenvs/pro8MHzatmega328/firmware.elf
Looking for upload port...
Warning! Please install `99-platformio-udev.rules` and check that your board's PID and VID are listed in the rules.
https://raw.githubusercontent.com/platformio/platformio/develop/scripts/99-platformio-udev.rules
Auto-detected: /dev/ttyUSB0
Uploading .pioenvs/pro8MHzatmega328/firmware.hex
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e950f
avrdude: reading input file ".pioenvs/pro8MHzatmega328/firmware.hex"
avrdude: writing flash (1072 bytes):
Writing | ############################################avrdude: stk500_recv(): programmer is not responding
*** [upload] Error 1
========================== [ERROR] Took 8.02 seconds ==========================
================================== [SUMMARY] ==================================
Environment pro8MHzatmega328 [ERROR]
Environment uno [ERROR]
========================== [ERROR] Took 61.22 seconds ==========================
Looks like i misunderstand the usage of [env:xx}, but i still can’t upload for some reason.
Please advise.