Go Down

Topic: ATMega1284p new chip fuse selections in AVR Studio 4.13 (Read 1 time) previous topic - next topic

Frisky

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

cyclegadget


Is there a reason you don't want to go with 16MHz? If not, there is a bootloader available.
Good links: Eagle tutorial= http://www.youtube.com/playlist?list=PLDE1858BD83D19C70
General Arduion tutorials = http://tronixstuff.wordpress.com
http://www.gammon.com.au/forum/bbshowpost.php?bbtopic_id=123

Frisky

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..

cyclegadget

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
Good links: Eagle tutorial= http://www.youtube.com/playlist?list=PLDE1858BD83D19C70
General Arduion tutorials = http://tronixstuff.wordpress.com
http://www.gammon.com.au/forum/bbshowpost.php?bbtopic_id=123

cyclegadget

  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
Good links: Eagle tutorial= http://www.youtube.com/playlist?list=PLDE1858BD83D19C70
General Arduion tutorials = http://tronixstuff.wordpress.com
http://www.gammon.com.au/forum/bbshowpost.php?bbtopic_id=123

Frisky

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?

Frisky

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

westfw

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...

Frisky

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. 

westfw

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."

Frisky

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. 

CrossRoads

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

Here are the fuse settings from boards.txt, pins_arduino.h, and bootloader file
Code: [Select]

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


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.

cyclegadget

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.
Good links: Eagle tutorial= http://www.youtube.com/playlist?list=PLDE1858BD83D19C70
General Arduion tutorials = http://tronixstuff.wordpress.com
http://www.gammon.com.au/forum/bbshowpost.php?bbtopic_id=123

pito

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

CrossRoads

So its just my hardware that the fuses work correctly for?  I must have the golden touch.
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.

Go Up