Hi,
Im pretty new to this kind of programming so don't know much about it.
I have a arduino uno and made a program for it but its working slow ( when i disconnect power from a input a led should light up but it takes like 10 sec or something before it lights up) so i was thinking the atmega328p-pu is using his internal crystal.
Or is the problem something else??
But i don't know how i could change the fuses.
I did some research on the internet and found you can do it with avrdude or boards.txt
and with board.txt i got this:
atmega328p-16.name=ATmega328p (external 16 MHz clock)
atmega328p-16.upload.protocol=usbtiny
atmega328p-16.upload.using=usbtinyisp
atmega328p-16.upload.maximum_size=32768
atmega328p-16.upload.speed=19200
atmega328p-16.bootloader.low_fuses=0xdf
atmega328p-16.bootloader.high_fuses=0xDF
atmega328p-16.bootloader.path=atmega328p
atmega328p-16.bootloader.file=optiboot_atmega328.hex
atmega328p-16.bootloader.extended_fuses=0xF9
atmega328p-16.bootloader.lock_bits=0xFF
atmega328p-16.build.mcu=atmega328p
atmega328p-16.build.f_cpu=16000000L
atmega328p-16.build.core=arduino:arduino
atmega328p-16.build.variant=arduino:standard
Are the fuses correct?
I know there are fuse calculators but i don't know how to use them.
So its just copying from the internet.
Or do i need to use this:
atmega328p-16.name=ATmega328p (external 16 MHz clock)
atmega328p-16.bootloader.low_fuses=0xff
atmega328p-16.bootloader.high_fuses=0xda
atmega328p-16.bootloader.extended_fuses=0x05
atmega328p-16.upload.maximum_size=32768
atmega328p-16.build.mcu=atmega328p
atmega328p-16.build.f_cpu=16000000L
atmega328p-16.build.core=arduino:arduino
atmega328p-16.build.variant=arduino:standard
and then burn a bootloader to it?
Or is it better with avrdude?
Thank you