gokmonk / sanguino

Automatically exported from code.google.com/p/sanguino
0 stars 0 forks source link

Add support for ATmega644 and ATmega644A #21

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Sanguino currently supports the ATmega644P and '644PA.    It is straightforward 
to add support for the ATmega644 and ATmega644A.

Part I:  Update boards.txt with the following new definition for atmega644p and 
atmega644:

##############################################################

atmega644p.name=Sanguino W/ ATmega644P / 644PA

atmega644p.upload.protocol=stk500
atmega644p.upload.maximum_size=63488
atmega644p.upload.speed=38400

atmega644p.bootloader.low_fuses=0xFF
atmega644p.bootloader.high_fuses=0xDC
atmega644p.bootloader.extended_fuses=0xFD
atmega644p.bootloader.path=atmega644p
atmega644p.bootloader.file=ATmegaBOOT_644P.hex
atmega644p.bootloader.unlock_bits=0x3F
atmega644p.bootloader.lock_bits=0x0F

atmega644p.build.mcu=atmega644p
atmega644p.build.f_cpu=16000000L
atmega644p.build.core=arduino

##############################################################

atmega644.name=Sanguino W/ ATmega644/644A

atmega644.upload.protocol=stk500
atmega644.upload.maximum_size=63488
atmega644.upload.speed=38400

atmega644.bootloader.low_fuses=0xFF
atmega644.bootloader.high_fuses=0xDC
atmega644.bootloader.extended_fuses=0xFD
atmega644.bootloader.path=atmega644p
atmega644.bootloader.file=ATmegaBOOT_644P.hex
atmega644.bootloader.unlock_bits=0x3F
atmega644.bootloader.lock_bits=0x0F

atmega644.build.mcu=atmega644
atmega644.build.f_cpu=16000000L
atmega644.build.core=arduino

############################################################## 

Part II:  Update pins_arduino.c and pins_arduino.h, as follows: 

#elif defined(__AVR_ATmega644P__) || defined(__AVR_ATmega1284P__) 

becomes 

#elif defined(__AVR_ATmega644P__) || defined(__AVR_ATmega1284P__) || 
defined(__AVR_ATmega644__)

Original issue reported on code.google.com by windell@oskay.net on 10 Dec 2011 at 9:09

GoogleCodeExporter commented 9 years ago
Edit: Note that changes above will permit treat an ATmega644A as though it were 
an ATmega644, which does not have the second USART.

Original comment by windell@oskay.net on 10 Dec 2011 at 9:56

GoogleCodeExporter commented 9 years ago
If using new 0023r2 I can't upload .hex file. I receive the following error:

avrdude: ERROR: address 0x10010 out of range at line 66 of 
hardware/Sanguino/bootloaders/atmega644p/ATmegaBOOT_644.hex
avrdude: read from file 
'hardware/Sanguino/bootloaders/atmega644p/ATmegaBOOT_644.hex' failed

If using old 0018 version is ok.

Original comment by bb...@webhostec.com on 17 Jan 2012 at 11:02

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
bb...@wibhostec.com,

Were you able to solve the "address out of range" problem?

I am having the same issue, any help would be greatly appreciated.

Thanks in advance.

Original comment by clyn...@gmail.com on 21 Mar 2012 at 10:34

GoogleCodeExporter commented 9 years ago
Yes and no. 

I resolved this issue using other bootloader:

https://github.com/whirleyes/mighty-1284p

I added in boards.txt this:

atmega644.name=Sanguino 644 16Mhz

atmega644.upload.protocol=arduino
atmega644.upload.maximum_size=63488
atmega644.upload.speed=38400

atmega644.bootloader.low_fuses=0xFF
atmega644.bootloader.high_fuses=0xDC
atmega644.bootloader.extended_fuses=0xFD
atmega644.bootloader.path=sanguino
atmega644.bootloader.file=ATmegaBOOT_644.hex
atmega644.bootloader.unlock_bits=0x3F
atmega644.bootloader.lock_bits=0x0F

atmega644.build.mcu=atmega644
atmega644.build.f_cpu=16000000L
atmega644.build.core=standard
atmega644.build.variant=sanguino

Of course you must build first bootloader for 644 to generate ...644.hex

Original comment by nkota...@gmail.com on 21 Mar 2012 at 11:00

GoogleCodeExporter commented 9 years ago
If I remember right the 644A has some different bootloader settings, try 0023r3 
which may work I put some fixes for a 644 in there, next time I do a digikey 
order i'll grab a 644a and see if I can get it to work. (if it works already 
let me know)

(sorry for the delay, changed jobs in april just getting to my sanguino backlog 
:/ )

Original comment by sutt...@gmail.com on 25 May 2012 at 8:20

GoogleCodeExporter commented 9 years ago
also, I plan to have a 0023r4 this weekend which has some fixes for the 
interupts so keep an eye out for that.

Original comment by sutt...@gmail.com on 25 May 2012 at 8:25

GoogleCodeExporter commented 9 years ago
I have GEN6 on Atmega 644PA and when I try to use arduino 0023 with 
Sanguino-0023r4 I can not upload the Marlin firmware:
stk500_getsync(): not in sync: resp=0x00
May be I must use anothe bootloader (specially for 644PA)???

Original comment by rean...@gmail.com on 13 Jul 2012 at 12:45

GoogleCodeExporter commented 9 years ago

Original comment by sutt...@gmail.com on 6 Sep 2012 at 12:21

GoogleCodeExporter commented 9 years ago
@rean...
I just had this issue also. 
The issue for me was the boot loader was expecting a serial connection at 38400 
but Sanguino-0023r4 defined the upload speed as 56K. I edited the file 
arduino-0023/hardware/Sanguino/boards.txt to:
atmega644.upload.speed=38400
And uploaded fine.

Original comment by elle...@gmail.com on 15 Sep 2012 at 2:29

GoogleCodeExporter commented 9 years ago
I have added support for the atmega644 at my github. 
It's working both for the Arduino IDE version 1.x: 
https://github.com/Lauszus/sanguino and version 1.5.x: 
https://github.com/Lauszus/sanguino/tree/ide-1.5.x

Original comment by laus...@gmail.com on 9 Nov 2012 at 9:57

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hello. This link https://github.com/Lauszus/sanguino/tree/ide-1.5.x is broken.
Could someone please to put working link?

Thank you.

Best regards
Mariusz

Original comment by mariusz....@gmail.com on 23 May 2015 at 1:27