Step 9Program the Chip
1) Get in the LED_Demo directory.
2) Cross your fingers.
3) Type "make"
Windows:
1) Open up LED_Demo.c with Programmer's Notepad.
2) Cross your fingers.
3) Select "Tools...Make Program"
Both:
Watch the log as the text goes scrolling by. There are two things you're looking out for here.
One is if the program compiled sucessfully. If there are no errors, it did. If it didn't, why? Did you mess around with my code?
Two is if the chip programmed sucessfully. For this, it writes the code in, then verifies the chip's memory. It should say "Contents Verified." If it says something about the parallel port or "giveio.sys", did you enable the parallel port back a couple steps ago?
Success? Yay! There's nothing like the sweet smell of blinking LED's in the morning.
| « Previous Step | Download PDFView All Steps | Next Step » |











































thanks
Joseph
*** No rule to make target `LED_Demo.o'. Stop
The programminf needs more detail, specially you mentioned to modify the txt file, but what line?
In windows there is no "Tools...Make Program"
avrdude: AVR device not responding
avrdude: initialization failed, rc=-1
To fix it i took off my 220 ohm resistor from pin 11.
avrdude -p atmega32 -p lpt2 -c bsd -U flash:w:f:prateek.hex
avrdude: AVR device not responding
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude done. Thank you.
make.exe: *** [program] Error 1
I checked the connections many times but they are right , where could the problem be ???
> "make.exe" program
Creating load file for EEPROM: main.eep
avr-objcopy -j .eeprom --set-section-flags=.eeprom="alloc,load" \
--change-section-lma .eeprom=0 --no-change-warnings -O ihex main.elf main.eep || exit 0
c:\WinAVR-20070525\bin\avr-objcopy.exe: there are no sections to be copied!
avrdude -p attiny2313 -P com1 -c dasa -U flash:w:main.hex
avrdude: AVR device not responding
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude done. Thank you.
make.exe: *** [program] Error 1
> Process Exit Code: 2
> Time Taken: 00:01
The connections are triplechecked and I even tried different ones. Any clue what is wrong?
I just noticed, in Make All it doesn't return an error code but it does return
Creating load file for EEPROM: main.eep
avr-objcopy -j .eeprom --set-section-flags=.eeprom="alloc,load" \
--change-section-lma .eeprom=0 --no-change-warnings -O ihex main.elf main.eep || exit 0
c:\winavr-20070525\bin\avr-objcopy.exe: there are no sections to be copied!
is this an error? I am starting to believe it might be my parallel port. Is there a way to check it with a multimeter or something?
avrdude -p attiny2313 -P lpt1 -c dapa -E reset -U flash:w:LED_Demo.hex
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0xffffff
avrdude: Yikes! Invalid device signature.
Double check connections and try again, or use -F to override
this check.
avrdude done. Thank you.
make.exe: *** [program] Error 1
> Process Exit Code: 2
> Time Taken: 00:00
My question is, do you hook up the 5v to the board while you are downloading it or does it receive power from the computer via the cable?
I have tried it both ways and get roughly the same error.
Any help would be greatly appreciated.
make: *** No rule to make target `LED_Demo.o', needed by `LED_Demo.elf'. Stop.
I reinstalled winavr on c: and put your .c and makefile in c:\winavr\LED_demo\ and I still get this. What am I doing wrong?