I have an atTiny85 I want to program using arduino as ISP (I program a loose chip using a nano as programmer).
Now when I do that and I will set the frequency in the arduino IDE (Tools>clock>internal 16mhz) but I do not see the lfuse (-U lfuse=0x...) set in the avrdude command line, which I think is required.
Tools -> burn bootloader. Like every arduino core ever, ATTinyCore only sets fuses when you "burn bootloader" (if non bootloader definition is selected, this just does fuses. It is unfortunate that the menu option is called "burn bootloader", not "burn bootloader and set fuses") because wrong fuse settings can brick the board and fuse settings only need to be applied once (unless you change the clock settings, or something)
DrAzzy:
Tools -> burn bootloader. Like every arduino core ever, ATTinyCore only sets fuses when you "burn bootloader" (if non bootloader definition is selected, this just does fuses. It is unfortunate that the menu option is called "burn bootloader", not "burn bootloader and set fuses") because wrong fuse settings can brick the board and fuse settings only need to be applied once (unless you change the clock settings, or something)
I tried that but get an error it can not find the bootloader.file
avrdude: erasing chip
avrdude: reading input file "C:\Users\Reinier\Documents\ArduinoData\packages\atflash\hardware\avr\0.1.0\bootloaders{bootloader.file}"
avrdude: can't open input file C:\Users\Reinier\Documents\ArduinoData\packages\atflash\hardware\avr\0.1.0\bootloaders{bootloader.file}: No such file or directory
avrdude: read from file 'C:\Users\Reinier\Documents\ArduinoData\packages\atflash\hardware\avr\0.1.0\bootloaders{bootloader.file}' failed
So I guess Ill have to get this bootloader somewhere...and after I burned the bootloader I will overwrite it with my own program...
will have a look into that...
But it would have been nice if I could add parameters to AVRdude script. E.g. it would be nice to have the clock on PB4 in my case, which is possible for atTiny, but can't set it in arduino IDE