Hello,
I am using the ATMEL-ICE programmer with the ATTINY1634 target.
All compiles fine but when trying to upload I get a verification error (see below).
Using the same HEX file but from ATMEL STUDIO tools works well. Also different code for another target (ATTINY841) works well with PlatformIO and ATMEL-ICE.
Please advise. Thank you.
Configuring upload protocol…
AVAILABLE: atmelice_isp
CURRENT: upload_protocol = atmelice_isp
Looking for upload port…
Uploading .pioenvs\attiny1634\firmware.hex
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.03s
avrdude: Device signature = 0x1e9412 (probably t1634)
avrdude: reading input file “.pioenvs\attiny1634\firmware.hex”
avrdude: writing flash (8094 bytes):
Writing | ################################################## | 100% 3.95s
avrdude: 8094 bytes of flash written
avrdude: verifying flash memory against .pioenvs\attiny1634\firmware.hex:
avrdude: load data flash data from input file .pioenvs\attiny1634\firmware.hex:
avrdude: input file .pioenvs\attiny1634\firmware.hex contains 8094 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 3.89s
avrdude: verifying …
avrdude: verification error, first mismatch at byte 0x1f98
avrdude: verification error; content mismatch
0x32 != 0x33
avrdude: safemode: Fuses OK (E:FF, H:DF, L:E2)
avrdude done. Thank you.
*** [upload] Error 1
[ERROR] Took 15.18 seconds