Hi all
I've run into a problem (or two) setting fuses and uploading sketches to some attiny841 based boards I had made around 3 years ago. Initially, back then all was fine and despite some teething troubles, see,
all was soon sorted and everything was fine, but after about 6 months I stopped using the boards.
Now, here we are a couple of years down the line I want to use the same sketches on the same boards again. In the interim, my pc has been rebuilt (Win 10) and the IDE is now up to 1.8.8. (I don't remember what the IDE version was before). So, to set up again, I first downloaded the latest ATtiny841 cores from github, as the cores I had before got lost when the pc was rebuilt.
The problems then started!
Problem #1. All the IDE "Tools" options have changed from the notes I made a few years back (using the older 841 cores). I have a choice of using ArduinoISP (preferred) or a temperamental USBasp for uploading but neither work. Using the Arduino as ISP to set the fuses by "burning bootloader" I get the following error message:
Arduino: 1.8.8 (Windows 10), Board: "ATtiny441/841 (No bootloader), ATtiny841, Disabled, 8 MHz (internal), EEPROM retained, B.O.D. Enabled (1.8v), B.O.D. Disabled, B.O.D. Disabled, Clockwise (like Rev. D boards), Master Only"
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Users\Bernie\Documents\Arduino\hardware\ATTinyCore\avr/avrdude.conf -v -pattiny841 -carduino -PCOM4 -b19200 -e -Uefuse:w:0b11111110:m -Uhfuse:w:0b11010110:m -Ulfuse:w:0xE2:m
avrdude: Version 6.3-20171130
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\Users\Bernie\Documents\Arduino\hardware\ATTinyCore\avr/avrdude.conf"
Using Port : COM4
Using Programmer : arduino
Overriding Baud Rate : 19200
Setting bit clk period : 5.0
AVR Part : ATtiny841
Chip Erase delay : 15000 us
PAGEL : P00
BS2 : P00
RESET disposition : possible i/o
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
eeprom 65 6 4 0 no 512 4 0 4000 4500 0xff 0xff
flash 65 12 32 0 yes 8192 16 512 4500 4500 0xff 0xff
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
lock 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
lfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
efuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
Programmer Type : Arduino
Description : Arduino
Hardware Version: 2
Firmware Version: 1.18
Topcard : Unknown
Vtarget : 0.0 V
Varef : 0.0 V
Oscillator : Off
SCK period : 0.1 us
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.01s
avrdude: Device signature = 0x000000 (retrying)
Reading | ################################################## | 100% 0.02s
avrdude: Device signature = 0x000000 (retrying)
Error while burning bootloader.
Reading | ################################################## | 100% 0.02s
avrdude: Device signature = 0x000000
avrdude: Yikes! Invalid device signature.
Double check connections and try again, or use -F to override
this check.
avrdude done. Thank you.
So, I have double, and triple checked the connections and they are all ok.
After numerous failed attempts (involving every combination I could think of for the "Tools" parameters, 841 with optiboot, 841 without optiboot, using Arduino as ISP, using Arduino as ISP(attinycore)) I still can't get the fuses set >:(
Problem #2 is even weirder. I still had a few boards that had their fuses set ok previously and I was able to upload one of the original sketches to them successfully - or so I thought, Seems PWM is no longer functioning on pins PA3 and PA6. So - what's changed in the cores (if that's where the problem(s) lie) over the last few years that could explain either, or both, of these problems? Which Tools parameters should I be using?
TIA