Show Posts
Pages: 1 [2] 3
16  Forum 2005-2010 (read only) / Bugs & Suggestions / Bug with !!! Using Mega 2560 on: January 08, 2011, 08:22:08 pm
This is an apparent bug with the Mega 2560. So far it has been found to not occur with a Duemilanove, but three different Mega 2560s have gotten it to occur.

When the code contains three or more exclamations it will prevent the sketch from being able to complete uploading. Note that there is no compile errors. However eventually there may be a timeout from avrdude.

An example set of code that causes this behavior is:
Code:
int IncrementingInteger = 1345;
int AlarmTriggerInteger = 1355;
boolean BooleanAlarmTriggered = false;

void setup() {
  Serial.begin( 9600 );
}

void loop() {
  delay( 5000 );
  IncrementingInteger = IncrementingInteger + 1;
  Serial.print( "Incrementing integer: " );
  Serial.println( IncrementingInteger );
  Serial.print( "Alarm trigger integer:" );
  Serial.println( AlarmTriggerInteger );
  if ( BooleanAlarmTriggered == false ) {
    if ( IncrementingInteger == AlarmTriggerInteger ) {
      BooleanAlarmTriggered = true;
      Serial.println( "Alarm has gone off!!!" );
    }
  }
}

Removing just one of the exclamation marks from the Serial.println ( "Alarm has gone off!!!" ); will allow the sketch to upload normally and it will work as expected. I was unable to find reference to this problem otherwise.

Devices used:
Arduino Mega 2560 with Arduino IDE 0022 on a Windows 7 64bit. - Problem occurs.
Duemilanove with Unknown IDE Version on a Windows 7 64bit. - No problem.
Second Arduino Mega 2560 with Arduino IDE 0022 on OSX. - Problem occurs.
Third Arduino Mega 2560 with Arduino IDE 0021 on Ubuntu 10.04 64bit - Problem occurs.

This was originally raised in thread:
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1294452951/0#0

If any further information is needed, please let me know.
17  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Suggestion: History in Serial Monitor on: January 10, 2011, 10:11:30 pm
+1

I just ran into a need for this last night. Configurable length and possible output to a simple text file would make long-run (or verbose) debugs easier.
18  Forum 2005-2010 (read only) / Troubleshooting / Re: Webserver on: January 17, 2011, 09:32:28 pm
Most typically your subnet mask is 255.255.255.0. So for the arduino that would be entered as:
Code:
byte subnet[] = { 255, 255, 255, 0 };

This CAN vary depending on your network setup. If you need to check it in a Windows PC, open a command prompt (type "cmd" in the run box). Then type "ipconfig" in the displayed window. Within the text that results should be your Subnet Mask for the PC. If the Arduino is on the same network, it should be the same value.
Not sure but I think the related command in a linux terminal window is "ifconfig".
19  Forum 2005-2010 (read only) / Troubleshooting / Re: Trouble uploading to Mega 2560? Try this... on: January 12, 2011, 12:47:14 pm
This is a problem with the Mega 2560 and its bootloader:
http://code.google.com/p/arduino/issues/detail?id=392

I also ran into this and a bunch of people helped track down the problem and what it occurs on. Couple threads later and it is all labeled in a newer issue:
http://code.google.com/p/arduino/issues/detail?id=459

Just today I was pointed to the older issue and this thread. Yes, it still exists, but the issue indicates a fix may occur. (Although that was posted 2 months ago).
20  Forum 2005-2010 (read only) / Workshops / Rochester, NY Workshop/Meeting on: January 10, 2011, 10:43:00 pm
Looking to see if there are enough people/interest to justify having a meeting in the Rochester, NY area. Any takers?
21  Forum 2005-2010 (read only) / Bar Sport / Re: Sparkfun Free Day is Back on: January 13, 2011, 02:03:54 pm
From my perspective their "funds used" bar went from ~20% at 1.5hrs in, to done at about 2hrs.
22  Forum 2005-2010 (read only) / Bar Sport / Re: Sparkfun Free Day is Back on: January 13, 2011, 01:17:06 pm
I got 3 of 3. Kindof shocked by how quick it went from not a ton to all done... Especially since I could not even get to question 4, but 3 of 3 is better than nothing. Woohoo Free Day!
23  Forum 2005-2010 (read only) / Bar Sport / Re: Sparkfun Free Day is Back on: January 13, 2011, 12:43:49 pm
Weird. Mine got 1 and 2, but now I am timing out to see how I did on 3 (and get my fourth).
24  Forum 2005-2010 (read only) / Bar Sport / Re: Sparkfun Free Day is Back on: January 13, 2011, 12:28:20 pm
Thanks. I have to bookmark that site for the future.

Edit: As of 12:31pm (1hr 31min after start) I just got to answer my first quiz question... It also seems to be holding my login and quiz answers through timeouts and such.
25  Forum 2005-2010 (read only) / Bar Sport / Re: Sparkfun Free Day is Back on: January 13, 2011, 12:20:47 pm
That is not encouraging. I have not even been able to see if I have ever successfully logged in. I saw the login page appear maybe twice but have not seen it since (~20min).
26  Forum 2005-2010 (read only) / Bar Sport / Re: Sparkfun Free Day is Back on: January 13, 2011, 12:15:39 pm
That makes sense to me. Hopefully they will "learn their lesson" again and add to their capabilities for a repeat next year. It seems like a good idea but again they appear to have underestimated the response.
27  Forum 2005-2010 (read only) / Bar Sport / Re: Sparkfun Free Day is Back on: January 13, 2011, 12:11:26 pm
My thought about the distance was more of how many "segments" the connection needs to go through to get to SparkFun's servers. Each one would add a delay, chance of error, etc...
28  Forum 2005-2010 (read only) / Bar Sport / Re: Sparkfun Free Day is Back on: January 13, 2011, 11:56:29 am
I have the login page appearing now. Furthest yet. I wish I knew whether the grey bar in the funds section meant how much was left, or how much is spent. Disappointing that there is very little/no grey in the donation section that I can see.
29  Forum 2005-2010 (read only) / Bar Sport / Re: Sparkfun Free Day is Back on: January 13, 2011, 11:31:47 am
Still unable to get anywhere yet. Been trying for 30min... Oh well. I hope they at least post the quiz after the fact so I can take it and see how well I would have done.

BroHogan: Aren't they located in Denver also? Maybe you had less traffic to contend with.
30  Forum 2005-2010 (read only) / Bar Sport / Re: Sparkfun Free Day is Back on: January 13, 2011, 11:20:47 am
I would hope most people would take the quiz if only to help donate money. I do not have enough years to really be worthwhile so I figure why not...
Pages: 1 [2] 3