0

Led Test Not working
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Led Test Not working

by sciguy14 on Fri Jun 12, 2009 3:28 pm

Hi all, been working on my own wavebubble, and I've got a quick question, hopefully somebody can help.

I've gotten up to the point where I need to run the LED test using the first "burn-fuse" command. I have tested all my power rails, and ensured that the LED lights properly when given 3.3V.

I run the "make burn-fuse" command and the programming appears to be successful, but the LED does not blink. I have already uncommented the proper line in main.c.

Here is the output from avrdude:
Code: Select all | TOGGLE FULL SIZE
C:\Users\stevens\Desktop\firmware>make burn-fuse
avrdude -p atmega88 -P com3         -c avrisp -u -U lfuse:w:0xe2:m -U hfuse:w:0x
d7:m
         Probeing avrisp Firmware-Version 1.x...
         Auto-switch to Programmer "STK500V2".
         Use -c stk500v2 to avoid this delay.

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.05s

avrdude: Device signature = 0x1e930a   (Atmel-ID detected)
avrdude: reading input file "0xe2"
avrdude: writing lfuse (1 bytes):

Writing | ################################################## | 100% 0.02s

avrdude: 1 bytes of lfuse written
avrdude: verifying lfuse memory against 0xe2:
avrdude: load data lfuse data from input file 0xe2:
avrdude: input file 0xe2 contains 1 bytes
avrdude: reading on-chip lfuse data:

Reading | ################################################## | 100% 0.01s

avrdude: verifying ...
avrdude: 1 bytes of lfuse verified
avrdude: reading input file "0xd7"
avrdude: writing hfuse (1 bytes):

Writing | ################################################## | 100% 0.01s

avrdude: 1 bytes of hfuse written
avrdude: verifying hfuse memory against 0xd7:
avrdude: load data hfuse data from input file 0xd7:
avrdude: input file 0xd7 contains 1 bytes
avrdude: reading on-chip hfuse data:

Reading | ################################################## | 100% 0.01s

avrdude: verifying ...
avrdude: 1 bytes of hfuse verified

avrdude done.  Thank you.
sciguy14
 
Posts: 17
Joined: Fri Jun 12, 2009 3:19 pm

Re: Led Test Not working

by nux on Fri Jun 12, 2009 7:40 pm

You have only programmed the micros fuses. You then need to comment out the LED code in the test c file, compile and burn that as well.
nux
 
Posts: 23
Joined: Sun Mar 22, 2009 11:48 pm

Re: Led Test Not working

by sciguy14 on Mon Jun 15, 2009 10:54 am

Sorry I'm a bit confused. I commented out the line test_led() in the main method of main.c. Then I do it again with that commented, and the LED doesn't blink. Is it normal that avrdude says it is only writing one byte?
sciguy14
 
Posts: 17
Joined: Fri Jun 12, 2009 3:19 pm

Re: Led Test Not working

by sciguy14 on Mon Jun 15, 2009 11:08 am

ah never mind i got it figured out. I had to run "make full"
sciguy14
 
Posts: 17
Joined: Fri Jun 12, 2009 3:19 pm

Re: Led Test Not working

by Bandit on Wed Nov 04, 2009 5:24 am

If Im using the USBtinyISP to program the Atmega88 do I have to change this line:

avrdude -p atmega88 -P com3 -c avrisp -u -U lfuse:w:0xe2:m -U hfuse:w:0x

to use UCBtinyISP instead of avrisp?

Im ready to burn the fuses to test the led, but not certain how to proceed. I just assembled and tested the USBtinyISP and that seems to work fine.
Bandit
 
Posts: 45
Joined: Mon Dec 01, 2008 1:16 pm

Re: Led Test Not working

by sciguy14 on Wed Nov 04, 2009 10:09 pm

you'll need to change the -c argument.
sciguy14
 
Posts: 17
Joined: Fri Jun 12, 2009 3:19 pm

Re: Led Test Not working

by Bandit on Thu Nov 05, 2009 6:25 am

Thanks, that worked:) Its my first time using avrdude.
Bandit
 
Posts: 45
Joined: Mon Dec 01, 2008 1:16 pm

Re: Led Test Not working

by sciguy14 on Fri Nov 06, 2009 6:53 pm

It was mine too on this project. It takes some getting used to.
sciguy14
 
Posts: 17
Joined: Fri Jun 12, 2009 3:19 pm

Please be positive and constructive with your questions and comments.