I changed makefile and the first few lines are as follows
Code: Select all
# Name: Makefile
# Project: hid-mouse example
# Author: Christian Starkjohann
# Creation Date: 2008-04-07
# Tabsize: 4
# Copyright: (c) 2008 by OBJECTIVE DEVELOPMENT Software GmbH
# License: GNU GPL v2 (see License.txt), GNU GPL v3 or proprietary (CommercialLicense.txt)
# This Revision: $Id$
DEVICE = atmega32
F_CPU = 12000000 # in Hz
FUSE_L = 0xEF
FUSE_H = 0xC9
AVRDUDE = avrdude -c usbasp -p $(DEVICE) # edit this line for your programmer
The changes made were in the DEVICE, F-CPU, FUSE_L and FUSE_H. Then i went on to use avrdude and the following instructions in that order
make hex
make flash
make fuse
However the lfuse value does not get 'SET'.
Shown below is what i get in command prompt.
Code: Select all
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e9502
avrdude: reading input file "0xC9"
avrdude: writing hfuse (1 bytes):
Writing | ################################################## | 100% 0.02s
avrdude: 1 bytes of hfuse written
avrdude: verifying hfuse memory against 0xC9:
avrdude: load data hfuse data from input file 0xC9:
avrdude: input file 0xC9 contains 1 bytes
avrdude: reading on-chip hfuse data:
Reading | ################################################## | 100% 0.00s
avrdude: verifying ...
avrdude: 1 bytes of hfuse verified
avrdude: reading input file "0xEF"
avrdude: error opening 0xEF: No such file or directory
avrdude: input file 0xEF auto detected as invalid format
avrdude: can't open input file 0xEF: No such file or directory
avrdude: write to file '0xEF' failed
avrdude: safemode: Fuses OK
avrdude done. Thank you.
make: *** [fuse] Error 1
Can i know what went wrong ?