Archive for the ‘winavr’ Category

avrdude 5.4 for Windows

Sunday, July 15th, 2007

I had some problems with the avrdude 5.3.1. It complains about reading the fuses properly.

Verify error - unable to read lfuse properly. Programmer may not be
reliable.

A workaround is to use the -u switch to override this check. As the new version with this bug fixed is not available for windows, I tried to compile it myself. I used MinGW and MSYS and it worked, at least for me. I can now even omit the -F switch, which I had to use before, as the device signature was not read properly. If you want to try it, here you go.

Download: avrdude 5.4 windows

Please note, that this comes without any warranty and is not completly tested or verified.

Using PROGMEM and EEMEM with AVRs

Saturday, June 16th, 2007

This post will give you a short example how to read and write EEPROM, and how to use flash memory as storage.

When you are jumping into programming microcontrollers many things are new and uncommon. At least to me as I used to develop in Java. This snippet may save you some time when you start playing with EEPROM and flash storage. Please note, that this is not a complete tutorial on this topic. You may find usefull links in the link section below.

(more…)

Programming AVR with Eclipse and WinAVR

Sunday, June 3rd, 2007

This is a log of what I have done to get Eclipse running with WinAVR on Windows XP. Maybe it’s helpfull for others.
Prerequisites

  • Download a Java Runtime JRE or JDK, if you do not have already. Anything greater 1.4.2 should be ok.
  • Download Eclipse 3.2.2 here
  • Download the CDT 3.1.2 plugin for Eclipse C/C++ development here
  • Download WinAVR 20070525 here

(more…)