EmbDev.net

Forum: µC & Digital Electronics Arduino UNO as AVR Programmer (for Transistor Tester) under Linux


von Thierry R. (tyr)


Rate this post
useful
not useful
Hello,

Is it possible to use an Arduino UNO board as programmer for the AVR 
toolchain under Linux ?

I have made few tests, everything goes well until "make upload" which 
fails :

-> with the original ATMEGA328 from the Arduino board :

avrdude -c Arduino -B 5.0 -p m328p -P /dev/ttyACM0 \
  -U flash:w:./ComponentTester.hex:a -U eeprom:w:./ComponentTester.eep:a

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 
0.00s

avrdude: Device signature = 0x1e950f (probably m328p)
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: reading input file "./ComponentTester.hex"
avrdude: input file ./ComponentTester.hex auto detected as Intel Hex
avrdude: writing flash (20220 bytes):

Writing | ################################################## | 100% 
3.63s

avrdude: 20220 bytes of flash written
avrdude: verifying flash memory against ./ComponentTester.hex:
avrdude: load data flash data from input file ./ComponentTester.hex:
avrdude: input file ./ComponentTester.hex auto detected as Intel Hex
avrdude: input file ./ComponentTester.hex contains 20220 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 
2.78s
...
...
avrdude: 608 bytes of eeprom written
avrdude: verifying eeprom memory against ./ComponentTester.eep:
avrdude: load data eeprom data from input file ./ComponentTester.eep:
avrdude: input file ./ComponentTester.eep auto detected as Intel Hex
avrdude: input file ./ComponentTester.eep contains 608 bytes
avrdude: reading on-chip eeprom data:

Reading | ################################################## | 100% 
1.25s

avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0000
         0x67 != 0x00
avrdude: verification error; content mismatch

avrdude: safemode: Fuses OK (E:00, H:00, L:00)

avrdude done.  Thank you.


-> with a brand new (blank) ATMEGA328 :

avrdude -c Arduino -B 5.0 -p m328p -P /dev/ttyACM0 \
  -U flash:w:./ComponentTester.hex:a -U eeprom:w:./ComponentTester.eep:a

avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00


Thanks in advance for your feed-back

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.