Thanks Paul,
Will your Command Line instructions also work with this programmer?
pololu.com/catalog/product/740
When I load the MazeSolver Code into AVR Studio, I get this Message . . .
Loaded plugin STK500
Loaded plugin AVR GCC
Loaded partfile: C:\Program Files\Atmel\AVR Tools\PartDescriptionFiles
Error Code: -2147467259:
Um, Help ???
About 2 Hours later . . .
OK, I tried this;
C:\Users\Murray\Downloads\Pololu 3 Pi\libpololu-avr\examples\atmega328p\3pi-mazesolver\default>
avrdude -p m328p -P COM4 -c avrispv2 -e -U flash:w:test.hex
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.05s
avrdude: Device signature = 0x1e9406
avrdude: Expected signature for ATMEGA328P is 1E 95 0F
Double check chip, or use -F to override this check.
avrdude done. Thank you.
Went to the Pololu Website & found that my 3pi is an older one with the Atmega168 Chip, so tried this;
C:\Users\Murray\Downloads\Pololu 3 Pi\libpololu-avr\examples\atmega328p\3pi-mazesolver\default>
avrdude -p m168 -P COM4 -c avrispv2 -e -U flash:w:test.hex
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.06s
avrdude: Device signature = 0x1e9406
avrdude: erasing chip
avrdude: reading input file "test.hex"
avrdude: input file test.hex auto detected as Intel Hex
avrdude: writing flash (10396 bytes):
Writing | ################################################## | 100% 5.16s
avrdude: 10396 bytes of flash written
avrdude: verifying flash memory against test.hex:
avrdude: load data flash data from input file test.hex:
avrdude: input file test.hex auto detected as Intel Hex
avrdude: input file test.hex contains 10396 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 4.31s
avrdude: verifying …
avrdude: 10396 bytes of flash verified
avrdude -p m168 -P COM4 -c avrispv2 -e -U flash:w:test.hex
avrdude: safemode: Fuses OK
avrdude done. Thank you.
Code appeared to load - 3pi has now got the top 8 blocks of LCD Black & no response.
Realized that this is not the program I want, I tried this to no avail.
C:\Users\Murray\Downloads\Pololu 3 Pi\libpololu-avr\examples\atmega168\3pi-mazesolver>
avrdude -p m168 -P COM4 -c avrispv2 -e -U flash:w:3pi-mazesolver
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.06s
avrdude: Device signature = 0x1e9406
avrdude: erasing chip
avrdude: reading input file "3pi-mazesolver"
avrdude: error opening 3pi-mazesolver: No such file or directory
avrdude: input file 3pi-mazesolver auto detected as invalid format
avrdude: can’t open input file 3pi-mazesolver: No such file or directory
avrdude: write to file ‘3pi-mazesolver’ failed
avrdude: safemode: Fuses OK
avrdude done. Thank you.
C:\Users\Murray\Downloads\Pololu 3 Pi\libpololu-avr\examples\atmega168\3pi-mazesolver>
appears to have no .hex file in it ??
![:imp: :imp:](https://forum.pololu.com/images/emoji/twitter/imp.png?v=5)