How To Program Atmega 1280

2020. 2. 29. 11:14카테고리 없음

I did read through that, but it shows programming another Arduino or programming a chip on a breadboard, i am dealing with trying to program a 1280 SMD installed on an existing board with an ICSP 6 pin header. So thats where i got lost.I have a boot file for the 1280, i found all the info and files to do this on a 3d printer forum, the problem is they are all using a standalone USB programmer which i do not have, i bought one but its going to take weeks to get here, so i was hoping to do it with the Arduino if i can to avoid the wait. Interesting.Ok, so its possible to do with the UNO, now the question is how do i wire this up. I have found a bunch of posts on this subject, some mention wiring from the ICSP port on the UNO to the ICSP port of the board you want to program, in my case a Mightyboard from the 3d printer, and then run the reset line over to D10.

How To Program Atmega 1280 Windows 7

How To Program Atmega 1280Smother

And yet other posts mention wiring the ICSP port of the board your trying to program to various pins on the UNO, and adding a capacitor or a resistor, etc etc. Its all very confusing because every post i find on it they did something completely different.Just looking for the magical formula that actually works!

Pinouts

Well i followed every tutorial i can find on the subject. NONE of them work.I just get an error from AVRDude saying that libusb0.dll is missing. So how the heck do i fix that?

I installed the Arduino software latest version on my workbench computer and connected the UNO, it saw it, installed the drivers, and its on COM6, i can read and write to the Arduino. I uploaded the ISP sketch, grabbed my breadboard and wired the pins as shown in the sketch using the breadboard as a breakout to add the 10uf capacitor thats needed on the reset line, connected pins 10-13 to the ICSP header on the Mightyboard, powered up the mightyboard and tried the AVRDude command and it returnsLIBUSB0.DLL NOT FOUND REINSTALL BLAH BLAH BLAHSo now what? Ok i got past the USB problem but then when i issue the command i get this.C:avrdude.exe -p m1280 -P COM6 -c avrisp -U flash:w:C:ATmegaBOOT168atmega1280.hex:iavrdude.exe: AVR device initialized and ready to accept instructionsReading ################################################## 100% 0.02savrdude.exe: Device signature = 0x000000avrdude.exe: Yikes! Invalid device signature.Double check connections and try again, or use -F to overridethis check.avrdude.exe done. Thank you.C:So how do i get past this and whats the -F to override. So is this chip just hosed or what??C:avrdude.exe -p m1280 -F -P COM6 -b 19200 -c avrisp -u -U efuse:w:0xF5:m -Uhfuse:w:0xDA:m -U lfuse:w:0xFF:mavrdude.exe: AVR device initialized and ready to accept instructionsReading ################################################## 100% 0.06savrdude.exe: Device signature = 0x000000avrdude.exe: Yikes!