My guess is that since you are running make first, you haven't read it thru. Now would probably be a good time to take some good photos of your setup and post them so we can see how you wired your programmer to the chip and what is connected to your chip in the programming circuit.ĭid you read the tutorial I posted the link to in my first reply? There are a lot of pointers there to help. Ok, From what you stated, COM1 appears to be the correct port. Ok, i also tried replacing the chip with a new blank one to test if that is the problem, but i still have the same issue
I also tried changing Pololu USB AVR Programmer Programming Port (COM1) to Pololu USB AVR Programmer TTL Serial Port (COM6) to see what would happen and i got: avrdude -p m328p -P COM6 -c avrispv2 -e -F -U lock:w:0x2f:mĪvrdude: stk500_2_ReceiveMessage(): timeoutĪnd then avrdude: stk500_2_ReceiveMessage(): timeout I can tell it is comunicating with the programmer because the green light briefly flashes when I type make, and the red light is solid, but i am not sure what to do. So i changed -U to -F and got: avrdude -p m328p -P COM1 -c avrispv2 -e -F -U lock:w:0x2f:m I changed the settings and got this: avrdude -p m328p -P COM1 -c avrispv2 -e -U -U lock:w:0x2f:mĭouble check connections and try again, or use -F to override Make sure your com setting is for the correct one. Their site also states that it has 2 com ports on it, one for programming, the other for communications. įrom their website LINK you shoud be using avrispv2 as your programmer type. I have a Pololu USB AVR Programmer and i got it here. What programmer do you have, and where did you get it? Ok, I changed the programmer to avrispmkII and now I get this: avrdude -c avrispmkII -p m328p -F -U lock:w:0x2f:mĪvrdude: stk500v2_command(): command failedĪvrdude: stk500v2_command(): unknown status 0xc9Īvrdude: stk500v2_program_enable(): cannot get connection statusĪvrdude: AVR device initialized and ready to accept instructionsĪvrdude: Yikes! Invalid device signature.Īvrdude: Expected signature for ATMEGA328P is 1E 95 0F It was at COM4 at first, but then i changed it to COM1. Using AVR Studio (download from ATmel) it is very easy to program the bootloader to the mcu.
You can also load the foodloader.hex directly without needing to compile the bootloader code (which I have never been able to do). Is Com1 your actual com port? Check Device Manager to make sure. I made a tutorial for installing the bootloader, if you haven't seen it, it may be of help. That may be why you are getting the error because since you didn't define a com port, avrdude is using a default of com1. I'm not 100% but I believe the AVRISP was a serial programmer. Make sure you have your programmer name correct in your makefile. I have it connected, set it to COM1, and in the Makefile I have AVRDUDEFLAGS= -c avrisp -p m328p, but when i try to make it I get: avrdude -c avrisp -p m328p -U lock:w:0x2f:mĪvrdude: ser_open(): can't open device "com1": The system cannot find the file s I'm trying to flash the Nerdkits bootloader on a blank Atmega328p chip I got on Sparkfun and having some issues.