Arduino UNO as AVR Programmer (for Transistor Tester) under Linux

OP #5162930
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

Reply

A question of your own? This thread is over 9 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.