0

Using Firmware
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Using Firmware

by westbrookp1 on Wed Nov 11, 2009 5:33 pm

I apologize for knowing little about the avr and the firmware, but I am trying to run the tests on the circuit. None of them seem to work in the source window of avr insight. I got the isptinyusb from adafruit and installed avr insight. Could anybody give me a step by step process of what I need to do to program the tests and let me know if there is anything else I need to download? Thank you.
westbrookp1
 
Posts: 24
Joined: Tue Oct 06, 2009 11:44 am

Re: Using Firmware

by cmolson on Wed Nov 11, 2009 10:47 pm

not sure about avr insight... Although I remember running into a problem using linux, I ended up downloading winavr I think, compiling the source, and using avrdude to program the chip. It should explain it in the make section on this site. I also used a usbtiny programmer from ladyada (has come in use for many other things as well).

Maybe somebody else can write the step-by-step...
cmolson
 
Posts: 47
Joined: Sun Oct 28, 2007 8:22 am
Location: Canada

Re: Using Firmware

by westbrookp1 on Fri Nov 13, 2009 12:15 am

I just installed avr studio and a comocom to link w/ winavr. Do i need to link with avr dude, and how exactly do i do this?
westbrookp1
 
Posts: 24
Joined: Tue Oct 06, 2009 11:44 am

Re: Using Firmware

by westbrookp1 on Fri Nov 13, 2009 2:17 am

I want to use avr studio but it wont let me select atmega88, it will only let me select atmega88P. I purchased the atmega88, can i use atmega88P setting for atmega88?
westbrookp1
 
Posts: 24
Joined: Tue Oct 06, 2009 11:44 am

Re: Using Firmware

by c.b. on Fri Nov 13, 2009 3:19 am

To make the test firmware, just open main.c in your favourite text editor and uncomment the desired test, for example
Code: Select all | TOGGLE FULL SIZE
...
   pll_init();

   test_resistors();      // test the digital potentiometers
   //test_DC();             // sweep DC offset (PWM)
   //test_powerswitch();    // turn power switches on & off
   //test_vcos();           // test VCOs: sweep and bandwidth
   //test_pll1();           // simple crystal/function test
   //test_uart();
...

Then open Makefile and change AVRDUDE_PORT to the COM port of your programmer. Change AVRDUDE_PROGRAMMER to your programmer id (usbtiny).
Then open a command prompt, change to your source directory and issue "make program". This should compile, link and burn the firmware to your atmega. Issue only "make" if you not want to program the device, just compile and link.
c.b.
 
Posts: 15
Joined: Thu Oct 15, 2009 3:39 pm

Please be positive and constructive with your questions and comments.