avrdude-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avrdude-dev] Source code does not work in Linux


From: Ed Silva
Subject: [avrdude-dev] Source code does not work in Linux
Date: Thu, 29 Jul 2010 17:58:51 +0100

Hi.
I have one board with atmega1281 for some tests.
My source code for blink leds was made in avrstudio and winavr (both with
the recent updates) in Windows XP SP3.
Then, for keep my development I have switch to one machine with Linux
(Debian distro), where I have avrdude.
First the 5.5-7 from lenny repos and now the 5.10-3 from squeeze repos.

After sending the elf file, (the same from avrstudio) I was expecting to see
the leds working as in Windows but in fact, nothing happens.

You can see my command and the results from it:
*$ avrdude  -c jtag2 -p m1281 -U flash:w:leds.elf:a -U eeprom:w:leds.elf:a
-C /etc/avrdude.conf -P usb:45:8E

avrdude: jtagmkII_initialize(): warning: OCDEN fuse not programmed,
single-byte EEPROM updates not possible
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e9704
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be
performed
         To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: jtagmkII_initialize(): warning: OCDEN fuse not programmed,
single-byte EEPROM updates not possible
avrdude: reading input file "leds.elf"
avrdude: input file leds.elf auto detected as raw binary
avrdude: writing flash (131072 bytes):

Writing | ################################################## | 100% 8.85s

avrdude: 131072 bytes of flash written
avrdude: verifying flash memory against leds.elf:
avrdude: load data flash data from input file leds.elf:
avrdude: input file leds.elf auto detected as raw binary
avrdude: input file leds.elf contains 131072 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 11.80s

avrdude: verifying ...
avrdude: 131072 bytes of flash verified
avrdude: reading input file "leds.elf"
avrdude: input file leds.elf auto detected as raw binary
avrdude: writing eeprom (4096 bytes):

Writing | ################################################## | 100% 2.56s

avrdude: 4096 bytes of eeprom written
avrdude: verifying eeprom memory against leds.elf:
avrdude: load data eeprom data from input file leds.elf:
avrdude: input file leds.elf auto detected as raw binary
avrdude: input file leds.elf contains 4096 bytes
avrdude: reading on-chip eeprom data:

Reading | ################################################## | 100% 1.31s

avrdude: verifying ...
avrdude: 4096 bytes of eeprom verified

avrdude: safemode: Fuses OK

avrdude done.  Thank you.
*
I also have generated the same file with in Linux with Eclipse+AVR Plugin,
and send the file by AVR Plugin.
Once again no errors but my leds don't blink.

Does anyone know why the differences between the two OS?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]