I am not expert I will try. For a build it yourself programmer check out Brian Dean's avrdude page. http://www.bsdhome.com/avrdude/ ( I can not tell you how much Brian has been a help to me) I had 1st gotten the Sparc Fun Electronics but could not get it to work. Fuses can be programmed or changed. I think once you program it you can only unprogram it by doing a chip erase. AVRdude (the software) will allow you to work with the low,high, and extend fuse interactively with the -t option. I had to reset these once because somehow I whacked them. As far as how I debug, I am using winavr 3.4.1 with avr studio 4.1. I first use the dwarf-2 option to create a .elf file which I open in avrstudio. Once I have walked the code to my satisfaction I then program the board with it. I will connect to uart0 with a null modem cable and use hyperterminal to view the output. I do have printfs in the code. And I am also using leds. While connected to the uart0 I have to put my robot up on blocks. Once I do all that I will disconnect the comms and then run it free. As far as JTAG and AT90S2313 that would be beyond me -----Original Message----- From: paul_hvidston [mailto:paul@acksysengineering.com] Sent: Saturday, February 12, 2005 12:07 AM To: AVR-Chat@yahoogroups.com Subject: [AVR-Chat] Need help spinning up on AVRs Hi all, I'm new to AVRs and I don't yet have a clear picture of the programming requirements/options for these devices. First a bit about me. I'm a consulting engineer and do hardware, software, just about anything I can get paid for ;-). I'm just finishing up a contract designing an ARM 7 core into an ASIC, I've used PICs in the past (never really liked them) and would like to use the Atmel devices in future projects (where appropriate). Hopefully some kind members can help set me straight here. Here's a few starter questions. 1) From reading the chip documentation, it appears that the "fuse" and "lock" bits can be erased/reprogrammed. Am I correct? 2) Some devices in the family require a parallel programming algorithm in order to configure the fuse bits. For others, the fuse bits can/must be programmed via a serial algorithm. Yes? What cheap programmers to people recommend? Which ones can handle the fuse bits? I've seen interesting offerings from Sparc Fun Electronics (www.sparkfun.com). Any comments? 3) It looks like only some of the newer devices support JTAG? What is the easiest/cheapest way to do in-circuit debugging? Are people using gdb (or printfs and LEDs)? 4) The AT90S2313 appears to have been replaced by the ATtiny2313. Is the new device available and sound, or is the old device the one to use? Thanks for listening Paul California Yahoo! Groups Links
Message
RE: [AVR-Chat] Need help spinning up on AVRs
2005-02-12 by wbounce
Attachments
- No local attachments were found for this message.