Show Posts
Pages: [1]
1  Using Arduino / Project Guidance / Re: Burning bootloader on atmega2560 on: March 20, 2013, 11:33:48 am
I have a shinny new atmega2560 which appears to have a couple of issues.

First you have to power cycle the board, reset won't do, to avoid an initial programmer timeout when uploading the board with the IDE (1.0.3).  The sketch loads and runs with or without the timeout.  I just get an initial delay and then the sketch uploads. I should note that this doesn't happen with windows just osx.

The error is "avrdude: stk500v2_ReceiveMessage(): timeout"

Second is the "!!!" issue which locks up the board.

From the reading I've done all I have to do is follow Nicks instructions and use an UNO to program a new bootloader in the atmega2560.

Am I close?
2  Using Arduino / Programming Questions / Re: SoftwareSerial question? on: February 27, 2013, 01:18:02 pm
I thought the softwareserial routines were HALF duplex.
Thanks.  You're right they are.
3  Using Arduino / Programming Questions / SoftwareSerial question? on: February 27, 2013, 10:32:48 am
I have an Arduino Uno with digital pins 2 and 3 connected together to form a Tx -> Rx loopback.  The following code seems to have a problem as no characters are ever received. A scope says the characters are indeed transmitted on the Tx pin.  I'd be grateful for any insight you wizards can provide.

Using Arduino 1.0.3.

Code:
#include <SoftwareSerial.h>

SoftwareSerial mySerial(3,2); // rx, tx

void setup() {
  
  Serial.begin(115200); // serial Monitor
  mySerial.begin(9600); // loopback baud rate
  
  Serial.println("SoftwareSerial loopback test...");
}

void loop() {
  mySerial.write('X'); // send any character
  delay(100);
  if (mySerial.available())
    Serial.println(mySerial.read()); // print data from loopback
}
 
4  Development / Other Hardware Development / Atmega64/128 support? on: December 27, 2012, 09:09:12 am
Has anyone added support for the atmega64/128?

I would like to use the IDE to work on Turnigy 9X and 9XR transmitters.

5  Development / Other Software Development / Re: New Arduino IDE with an external AVR toolchain and compiler/linker options on: May 17, 2011, 12:38:40 pm
Is there a way to specify the compiler and/or linker options int eh preferences file, or some other easily modified file?

It's all covered in the "readme.txt" file in the same place as you obtained the IDE.

If you are looking to save memory space these optimizations go a lot further to conserve ram than the standard IDE:

-g -Os -Wall -ffunction-sections -fdata-sections -funsigned-char -mcall-prologues -Wl,--relax,--gc-sections -funsigned-bitfields -fpack-struct -fno-inline-small-functions -fno-split-wide-types

Good linker options:
-Os -Wl,--relax,--gc-sections

6  Development / Other Software Development / Re: New Arduino IDE with an external AVR toolchain and compiler/linker options on: May 09, 2011, 12:48:33 pm
The best way (easiest) to enlarge the output window (where the errors appear) is to enlarge the IDE and then drag the upper edge of the output window up.
7  Development / Other Software Development / Re: New Arduino IDE with an external AVR toolchain and compiler/linker options on: May 09, 2011, 08:08:45 am
@skyjumper, your welcome!

When you turn on warnings either by default or with a -Wall option the arduino core libs will output some warnings.  As Nick said the warnings you are seeing really shouldn't be there but then the stock IDE uses -w to turn off all warnings so you don't usually see them.

Getting warnings back was one of the features that motivated me to change to IDE.
8  Development / Other Software Development / Re: New Arduino IDE with an external AVR toolchain and compiler/linker options on: March 06, 2011, 05:02:26 pm
You have to get the source code and use ant to rebuild the IDE.  Look here for instructions http://code.google.com/p/arduino/wiki/BuildingArduino.  Replace the existing Compiler.java with my new one.

Alternately you could just download one of the prebuilt IDEs from my site.
9  Development / Other Software Development / New Arduino IDE with an external AVR toolchain and compiler/linker options on: March 05, 2011, 04:56:25 pm
I had a bug with the current 0022 compiler so I modified Compiler.java to accept an external AVR toolchain.  It also allows you to optionally specify new compiler/linker options.  Useful if you want to turn on warnings or spec a little better optimization.  All options are specified in the preference.txt file and if left out the IDE reverts to the internal compiler and options.

Prebuilt IDEs with a readme along with the modified Compiler.java can be found here http://www.mostlysoftware.com/files
10  Forum 2005-2010 (read only) / Troubleshooting / Re: Arduino Uno sketch limit size on: January 17, 2011, 07:26:23 pm
Turns out that the optiboot bootloader version I have has some problems.  I ordered a programmer so I could burn a new bootloader.  The new optiboot from the optiboot software repo doesn't have this problem.
11  Forum 2005-2010 (read only) / Troubleshooting / Re: Arduino Uno sketch limit size on: January 12, 2011, 08:12:06 am
http://code.google.com/p/aeroquad/downloads/list

The code in question is AeroQuad_v2.1.2_Beta.zip

In AeroQuad.pde uncomment these defines to drive image over 30720 bytes:
#define AeroQuad_v18
#define HeadingMagHold
#define BattMonitor

That should give you a sketch size of:
Binary sketch size: 31574 bytes (of a 32256 byte maximum)

Which will fail to upload despite being below the 32256 maximum.
12  Forum 2005-2010 (read only) / Troubleshooting / Re: Arduino Uno sketch limit size on: January 11, 2011, 05:36:08 pm
I'm using the AeroQuad code base and I'm sure you don't want me to post it here.

Avrdude is the one reporting the error:
Code:
Binary sketch size: 31430 bytes (of a 32256 byte maximum)
avrdude: verification error, first mismatch at byte 0x7800
         0x07 != 0xff
avrdude: verification error; content mismatch

I assumd the Uno sketch size limit was 32256 bytes but now I've been told that there was a bug that limited the size 30720 and I need to reprogram the bootloader with a new version of Optiboot.  Sound right?

13  Forum 2005-2010 (read only) / Troubleshooting / Arduino Uno sketch limit size on: January 11, 2011, 04:43:52 pm
Arduino reports "Binary sketch size: 31070 bytes (of a 32256 byte maximum)"  When I upload the sketch it fails at 30720.  Is this a bootloader problem?  I could have sworn it was work before today.
Pages: [1]