Community
OpenEnergyMonitor

OpenEnergyMonitor Community

Problems programming attiny841

Hello good, I am programming attiny841, I have programmed 10 without problem, but with 5 units I have this problem:

RAM:   [=====     ]  46.5% (used 238 bytes from 512 bytes)
Flash: [========= ]  93.7% (used 7678 bytes from 8192 bytes)
Building .pio\build\V421\module_fw_V421_attiny841_421_eF4_hD6_l62.hex
Configuring upload protocol...
AVAILABLE: usbtiny
CURRENT: upload_protocol = usbtiny
Looking for upload port...
Uploading .pio\build\V421\module_fw_V421_attiny841_421_eF4_hD6_l62.hex

avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.


avrdude done.  Thank you.

*** [upload] Error 1
================================================================================================== [FAILED] Took 1.64 seconds ==================================================================================================
The terminal process "C:\Users\Jordi\.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.

I have also tried avrdude:

avrdude -C avrdude.conf -P usb -c usbtiny -p t841 -e -B 8 -U efuse:w:0xF4:m -U hfuse:w:0xD6:m -U lfuse:w:0x62:m -U flash:w:module_fw_V421_attiny841_421_eF4_hD6_l62.hex:i

avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.


avrdude done.  Thank you.

avrdude -C avrdude.conf -P usb -c usbtiny -p t841 -e -B 8 -U efuse:w:0xF4:m -U hfuse:w:0xD6:m -U lfuse:w:0x62:m -U flash:w:module_fw_V421_attiny841_421_eF4_hD6_l62.hex:i -F

avrdude: initialization failed, rc=-1
avrdude: AVR device initialized and ready to accept instructions
avrdude: Device signature = 0x6c6675
avrdude: Expected signature for ATtiny841 is 1E 93 15

avrdude done.  Thank you.

Can somebody help me?

Thanks

Formatted text - Moderator, BT

Can anyone help me?