Using Firmware
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 24
- Joined: Tue Oct 06, 2009 11:44 am
Using Firmware
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.
-
- Posts: 47
- Joined: Sun Oct 28, 2007 8:22 am
Re: Using Firmware
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...
Maybe somebody else can write the step-by-step...
-
- Posts: 24
- Joined: Tue Oct 06, 2009 11:44 am
Re: Using Firmware
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?
-
- Posts: 24
- Joined: Tue Oct 06, 2009 11:44 am
Re: Using Firmware
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?
- c.b.
- Posts: 15
- Joined: Thu Oct 15, 2009 3:39 pm
Re: Using Firmware
To make the test firmware, just open main.c in your favourite text editor and uncomment the desired test, for example
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.
Code: Select all
...
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 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.
Please be positive and constructive with your questions and comments.