Go Down

Topic: board types & bootloaders (Read 2 times) previous topic - next topic

cyclegadget

Quote
I guess the real genius of the Arduino IDE (and just like with a bumble bee) is not how well it 'flies', but the fact that it 'flies' at all.


    XD


Chagrin

Personally prefer if the chip name (e.g. ATMega 128) was used instead of the board name (e.g. Uno) and the menu should be nested with the chip at the first level and the speed/oscillator at the second.

Java: Write, wince, run away. ;)

CrossRoads

Here's my first pass at adding the chip types.
Rename your current files and save these into their place.
Not sure why but 2 of them, the '328 and 16U4, fail when I try to compile a program.
Think there might be some deeper change needed as well.

Gonna work on '1284 family parts tomorrow.
Then '2561 family after that. Don't know if I know enough for those.
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.

CrossRoads

I was having problems with the Uno328 and Leonardo16  board types.

I have a solution with Coding Badly's help.

http://arduino.cc/forum/index.php/topic,60649.msg437771.html#msg437771
See reply #1. Follow all the steps, ignoring the ATtiny xx stuff in the middle.

This seems to be a more direct link to WinAVR
http://sourceforge.net/projects/winavr/?source=directory

I then copied the ATMEGA328P section into a new ATMEGA328 section and changed the last signature byte from 0x0F to 0x14, thatcompiles now.
And the Leonardo16 stuff I made for Atmega16U4 compiles now too.

Will check out more of them tomorrow, and see if the stuff I made today for '1284 family of chips works.

Then, on to the '2561 family with 56 IO pins in 64 pin TQFP package.
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.

bighuey

Crossroads,
It sounds like you're the person I need to talk to. I took the "Mighty 1284" boards.txt files and the associated optiboot executables,  and installed them in "Arduino1-5". When verifying a sketch, it can't find "Arduino.h".  Is that because of the extra directory level (Avr) in the cores path?

I then moved the "Mighty 1284" to "Arduino1.0.2".  Verify can now find the "Arduino.h file, no AVR directory, but it can't find the "Serial" function.  Neither could "Arduino1-5".

If I change the board type to UNO, it verifies fine, of course it wont execute correctly.

Got any ideas?

P.S. Why different boot loaders for different clock speeds, does the boot loader contain speed dependent code?

Following is my boards.txt entry.


atmega1284_8.name=ATMega1284P 8MHz using Optiboot 3.3V

atmega1284_8.upload.protocol=arduino
atmega1284_8.upload.maximum_size=130048
atmega1284_8.upload.speed=57600

atmega1284_8.bootloader.low_fuses=0xff
atmega1284_8.bootloader.high_fuses=0xde
atmega1284_8.bootloader.extended_fuses=0xfd
atmega1284_8.bootloader.path=optiboot
atmega1284_8.bootloader.file=optiboot_atmega1284p_8MHz.hex
atmega1284_8.bootloader.unlock_bits=0x3F
atmega1284_8.bootloader.lock_bits=0x0F

atmega1284_8.build.mcu=atmega1284p
atmega1284_8.build.f_cpu=8000000L
atmega1284_8.build.core=standard
atmega1284_8.build.variant=standard

This is the sketch I'm working with.  As you can see it's extremely complicated.

//#include "Wiz820.h"
#include <Arduino.h>
void setup(){
  Serial.begin(9600);
}

void loop(){
}


Go Up