Pages: [1]   Go Down
Author Topic: Arduino 2560 Problem  (Read 660 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
**
Karma: 2
Posts: 53
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

I have 8 Mega 2650's

When i upload my code to them five work perfectly.
three of them show a statement which is placed in a different progmem space.
During the boot i print logging to the Serialport and the LCD screen these logging which are also stored in program memory contains pretty long strings
2 of them show the same message.  the other a different one.
all three show only a part of the different line.
i uploaded the other 5 again to be sure it wasn't my fault due to an error in my code but these keep working as expected.

when i upload an older smaller version of the code. with less progmem variabels i do not have the issue.

As far as i can see the mega's looks the same. i verified the numbers on the chips.
is there an option to show, download or detect the bootloader versions.
because i think the difference is in there.

or someone has a better idea where to find the issue.

Kind regards

Johan



Logged

Global Moderator
Boston area, metrowest
Online Online
Brattain Member
*****
Karma: 446
Posts: 23871
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

NickGammon's program might show the installed bootloader.
http://www.gammon.com.au/forum/?id=11635

If nothing else, you can use it to ensure all boards have the same bootloader.
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.

Offline Offline
Jr. Member
**
Karma: 2
Posts: 53
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I verified the output of the different arduino's
everything is the same execpt

Arduino 1    =     Lock byte = CF    
Arduino 2    =     Lock byte = FF    
Arduino 3    =     Lock byte = FF    
Arduino 4    =     Lock byte = FF    

Arduino 1    =     Clock calibration = 59    
Arduino 2    =     Clock calibration = 90    
Arduino 3    =     Clock calibration = AA    
Arduino 4    =     Clock calibration = 8F    

Logged

New York
Offline Offline
Jr. Member
**
Karma: 0
Posts: 63
digitalWrite( 5, HIGH);
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Are they connected to the correct port number for each?  It's probably very easy to mix up port numbers with 8 different boards!
Logged

-Matt-

Offline Offline
Jr. Member
**
Karma: 2
Posts: 53
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have 8 devices all for different customers. they should be all the same.
and all have the same program.
so i don't understand what you mean with are the connected to the correct port
Logged

Global Moderator
Boston area, metrowest
Online Online
Brattain Member
*****
Karma: 446
Posts: 23871
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

Your question kind of gave the impression you were connecting all 8 to your PC at once, so each would have a different COM port.

You seem to only connect one a time.

Have you tried NickGammon's programmer to make sure they are all bootloaded the same and have the same fuse settings?
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.

Offline Offline
Jr. Member
**
Karma: 2
Posts: 53
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes i did. I verified all the settings and only the clock and lockbyte were different.
I changed the lockbyte of the not working one's but without any luck

Kind regards

Johan
Logged

Offline Offline
Jr. Member
**
Karma: 2
Posts: 53
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

when i upload a new bootloader with the nick gammon bootloader. and verify it it looks oke.
when i upload my program the bootloader verify tool notice about 3000 errors.

is that because i write a lot of progmemory or because a program is loaded.

Johan
Logged

Offline Offline
Jr. Member
**
Karma: 2
Posts: 53
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I finally found it.
It was a realy stuppid misstake.

I read in my code the language value from the eeprom.
But because this where new arduinos the value was default so not 0 1 or 2
because i didn't check the value i read the code requested a complete wrong progmem value.



Johan
Logged

Global Moderator
Boston area, metrowest
Online Online
Brattain Member
*****
Karma: 446
Posts: 23871
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

Glad you got it solved.
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]   Go Up
Jump to: