Pages: 1 [2]   Go Down
Author Topic: Standalone use of atmega644p / 164p  (Read 2636 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Full Member
***
Karma: 9
Posts: 109
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The optiboot just compiled uses baud rate 115200 (see code).
No matter what, after reset a led on ic pin 1(see code) should blink briefly. Does it do that?

We had better check each fuse bit carefuly first in order not to brick the chip. I can help with that later...

In meantime I flashed the optiboot just compiled for 644 into my sanguino rbk, it works well, I use this boards.txt to download sketches:
Code:
sanguino.name=Sanguino
sanguino.upload.protocol=arduino
sanguino.upload.maximum_size=63488
sanguino.upload.speed=115200
sanguino.bootloader.low_fuses=0xFF
sanguino.bootloader.high_fuses=0xDC
sanguino.bootloader.extended_fuses=0xFD
sanguino.bootloader.path=atmega644p
sanguino.bootloader.file=ATmegaBOOT_644P.hex
sanguino.bootloader.unlock_bits=0x3F
sanguino.bootloader.lock_bits=0x0F
sanguino.build.mcu=atmega644p
sanguino.build.f_cpu=16000000L
sanguino.build.core=standard
sanguino.build.variant=standard
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 16
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Good news!  The blink sketch is running on the 164p using optiboot.  I eventually found a successful configuration with the following :

Code:
############################################################
atmega164p.name=Sanguino W/ ATmega164p
atmega164p.upload.protocol=arduino
atmega164p.upload.maximum_size=15872
atmega164p.upload.speed=115200
atmega164p.bootloader.low_fuses=0xFF
atmega164p.bootloader.high_fuses=0xDC
atmega164p.bootloader.extended_fuses=0xFD
atmega164p.bootloader.path=atmega
atmega164p.bootloader.file=optiboot_atmega164p.hex
atmega164p.bootloader.unlock_bits=0x3F
atmega164p.bootloader.lock_bits=0x0F
atmega164p.build.mcu=atmega164p
atmega164p.build.f_cpu=16000000L
atmega164p.build.core=arduino
atmega164p.build.variant=standard
##############################################################

Kind of a hybrid of our two respective entries. I have to admit I still don't really know what quite a few of them actually mean, but it works regardless. The build.core line as 'standard' would not compile at all for me, so needed to use 'arduino'.  Yes the ic pin 1 does give a quick double-blink on reset. I also don't really know anything about the fuse settings, so you may think changing them would be better.

Thanks again for all your help. Hopefully there are others out there like me that'll find this thread useful in the future.
Logged

Offline Offline
Full Member
***
Karma: 9
Posts: 109
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Champagne!
Quote
Hopefully there are others out there like me that'll find this thread useful in the future.
If there are, we might ask the optiboot developer to adopt our extra build target for the 164p.
If not, it was fun figuring this out!
Logged

Pages: 1 [2]   Go Up
Jump to: