Pay attention to the part labeled FTDI in the shematic, that should correspond to the USB to Serial adapter you have, wire the correct pins as shown in the above schematic. You will need to install a hardware core on your computer for this chip. Instructions for that should have come with you ATMEGA644 with bootloader, if not you MIGHT be able to use the core described in the above thread, which contains instructions on how to install.
After installing the core, you will either find your chip listed, or if you have to use the above referenced core, you will need to modify the boards.txt file for your chip.
Personally, I would contact whomever sold you the 644 chip and see what they can provide as far as instructions and core files.
A. Wire up the 644 with crystal, 2 caps, 100nF caps on VCC/AVCC, power ground, 10K pullup on reset.
Connect USB/Serial pins to +5, Gnd, DTR to 100nF cap to chip's reset pin, Rx to Tx, Tx to Rx.
B. That's trickier. Start with downloading maniacbug's Mighty 1284 core files. Review the boards.txt file and see if it as 644 variant in it. If not, you'll have to do some code copying to create a 644 entry.
Ok,I have another question related to the ardunio IDE.
Ill give you a run down ive got a standalone atmega 328 set up with this Arduino Serial USB Board - DEV-08165 - SparkFun Electronics usb to serial converter.When i set tools->board->uno it uploads fine and says i have 32,256 bytes maximum.When i set tools->board->ardunio mini w/atmega328 again works fine but this time it says i have 28,672 bytes max.when i choose any other option apart from those two with atmega328 in the description i get this error "avrdude: stk500_getsync(): not in sync: resp=0x00" .Firstly which one of the two should i use when programming the atmega 328 and second why do i get the error ?
Those 2 numbers come from the data file Boards.txt which is one of the Arduino installed files. It is based on which bootloader is loaded on a particulr board/chip combination. If you pick the wrong board you might create a program that is too big for your board.. Unless you are pushing that limit you really don't have to worry.
You are probably just fine using the Arduino Uno profile. I have a couple of those chips myself.
Downloaded arduino 1.0.1 installed the sangunio libraries for the atmega 644 using the guide from http://sanguino.cc/ however when i compile even a bareminimum program from file->examples->basics i get the following error "BareMinimum.cpp:1:21: error: Arduino.h: No such file or directory". Any ideas ???
Okay, should be able to duplicate one of the sections in boards.txt for a 644 or 644P entry, adding the needed signature byte info and memory size info.
Something like these >> ?
CrossRoads:
Okay, should be able to duplicate one of the sections in boards.txt for a 644 or 644P entry, adding the needed signature byte info and memory size info.
Something like these >> ?