Pages: [1] 2   Go Down
Author Topic: ATMega1284p new chip fuse selections in AVR Studio 4.13  (Read 1497 times)
0 Members and 1 Guest are viewing this topic.
Chicago
Offline Offline
Full Member
***
Karma: 0
Posts: 113
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi
I'm using AVR Studio 4.13 still and I was setting fuses for a brand new ATMega1284p chip.
Should I turn off JTAG operation? ISP has been enabled. Brownout is set for 2.7 volts
How large of a bootloader should I select? I selected 8.0Mhz -  crystal with the longest startup delay.
Will these setting work? Does anyone have a opinion on what I fuses I should select.
This is my first time setting fuses to use an AVR for Arduino use.
Thanks
Don
Logged

Greenville, IL
Offline Offline
Edison Member
*
Karma: 15
Posts: 1328
Warning Novice on board! 0 to 1 chance of errors!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


 Is there a reason you don't want to go with 16MHz? If not, there is a bootloader available.
Logged


Chicago
Offline Offline
Full Member
***
Karma: 0
Posts: 113
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I didn't see 16Mhz to pick from that is the crystal I plan to use with the 1284p. I saw 3.0 to 8.0 and at the bottom it had 8.0 I wasn't sure if that meant 8.0 Mhz and above. I could try to include a picture of the selection box..
Logged

Greenville, IL
Offline Offline
Edison Member
*
Karma: 15
Posts: 1328
Warning Novice on board! 0 to 1 chance of errors!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

 The Bobuino files are 16Mhz. I think the rest of the boards listed on the below site maybe also but Im not positive.

  http://maniacbug.wordpress.com/2011/11/27/arduino-on-atmega1284p-4/

https://github.com/maniacbug/mighty-1284p
Logged


Greenville, IL
Offline Offline
Edison Member
*
Karma: 15
Posts: 1328
Warning Novice on board! 0 to 1 chance of errors!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

  There are a few threads recently about using the 1284p chip and fuse selections. Here is one http://arduino.cc/forum/index.php/topic,139671.135.html
Logged


Chicago
Offline Offline
Full Member
***
Karma: 0
Posts: 113
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Before you load the bootloader don't I have to set fuses in the brand new ATMega1284p I got from Mouser.
All chip come running with internal oscillators correct?
Logged

Chicago
Offline Offline
Full Member
***
Karma: 0
Posts: 113
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks I'll read that over I appreciate your replies Don
Logged

SF Bay Area (USA)
Offline Offline
Tesla Member
***
Karma: 124
Posts: 6652
Strongly opinionated, but not official!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Should I turn off JTAG operation?
Yes, unless you were planning on experimenting with JTAG debugging.

Quote
How large of a bootloader should I select?
Which bootloader are you planning on using?  Optiboot is 512 bytes, and the minimum bootloader size is 1K.  The stk500v2 bootloader is 8k...
Logged

Chicago
Offline Offline
Full Member
***
Karma: 0
Posts: 113
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I was planning on using Optiboot with a 16 Mhz crystal. I've used JTAG with AVR Assembler projects I didn't know it was available to with Arduino. 
Logged

SF Bay Area (USA)
Offline Offline
Tesla Member
***
Karma: 124
Posts: 6652
Strongly opinionated, but not official!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I didn't know [JTAG] was available to with Arduino.
It isn't "available."  But it is "possible."  You would have to use a debugger other than the arduino IDE, an add-on JTAG device, and some sort of kludge to get the jtag signals from their pins to the standard JTAG connector.

JTAG is also possible on the arduino MEGA boards.   The fact that you don't hear of more people trying to get it working is an interesting contrast to the frequent complaints of "no debugging support."
Logged

Chicago
Offline Offline
Full Member
***
Karma: 0
Posts: 113
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I use to use ICE200 with the AT90S2313 and the AT90S8515. I purchased a JTAGICE from ebay and loved how it how it worked with AVR Studio. So will the 1284p work better with a resonator then I was reading over a thread you guys where working on using 16 Mhz crystals with Opiboot. 
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 525
Posts: 26523
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I've only used '1284P with 16 MHz crystal.

Here are the fuse settings from boards.txt, pins_arduino.h, and bootloader file
Code:
bobuino.name=Bobuino
bobuino.upload.protocol=arduino
bobuino.upload.maximum_size=130048
bobuino.upload.speed=115200
bobuino.bootloader.low_fuses=0xff
bobuino.bootloader.high_fuses=0xde
bobuino.bootloader.extended_fuses=0xfd
bobuino.bootloader.path=optiboot
bobuino.bootloader.file=optiboot_atmega1284p.hex
bobuino.bootloader.unlock_bits=0x3F
bobuino.bootloader.lock_bits=0x0F
bobuino.build.mcu=atmega1284p
bobuino.build.f_cpu=16000000L
#bobuino.build.core=arduino:arduino
bobuino.build.core=standard
bobuino.build.variant=bobuino


* pins_arduino.h (6.21 KB - downloaded 14 times.)
* optiboot_atmega1284p.hex (1.47 KB - downloaded 10 times.)
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Greenville, IL
Offline Offline
Edison Member
*
Karma: 15
Posts: 1328
Warning Novice on board! 0 to 1 chance of errors!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

 The main problems in the thread talking about crystals and serial issues was that the crystal pins need to be shielded from the serial pins. In short, have a ground ring around the crystal/capacitor circuit and have the crystal as close to the chip as possible. Atleast that is my take on it.
Logged


Rapa Nui
Offline Offline
Edison Member
*
Karma: 60
Posts: 2066
Pukao hats cleaning services
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Do not use low fuse = 0xFF fuse with 1284p (low power oscillator). Do use "Full Swing Oscillator" setting instead.
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 525
Posts: 26523
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

So its just my hardware that the fuses work correctly for?  I must have the golden touch.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Pages: [1] 2   Go Up
Jump to: