AVR programming with Ralf



Just a checklist for programming the microncontroller Ralf gave me yesterday ((Also check out <a href="http://www.mikrocontroller.net/articles/AVR_Eclipse">this useful article</a>)) * you need a functional eclipse installation * Install WinAVR and be sure that it is in the `PATH` by executing  `avr-gcc` from a command prompt * Install the AVR-Interface into eclipse via `Help` &rarr; `Install New Software` &rarr; `Add`. Then paste the following link in the URL Box: ```text http://avr-eclipse.sourceforge.net/updatesite/ ``` * When I create a new project, I need to adjust the following settings in the project properties: * `AVR` &rarr; `AVRDude` `Programmer` click on `New`, Name: `USBASP`, Programmer Hardware (`-c`) `USBasp, http://www.fischl.de/usbasp/` * `AVR` &rarr; `AVRDude`, `Advance` be sure the check `Disable device signature check` * `AVR` &rarr; Target Hardware `MCU Type` select `ATmega168` and set the `MCU Clock Frequency` to `12000000` (that's $12\cdot10^6$) * `C/C++-Build` &rarr; Settings unter `Tool Settings` check `Generate HEX file for Flash memory` * `C/C++-Build` &rarr; Settings unter `Tool Settings`, `AVR Compiler` &rarr; `Optimization` set the `Optimization Level` to `Size Optimizations (-Os)`.

One Reply to “AVR programming with Ralf”

  1. I have literally no idea what you are talking about here, and I don't think anyone else does. Maybe Ralf. I fixed the post up real nice with markdown, though.

Leave a Reply

Your email address will not be published. Required fields are marked *