Offline
Newbie
Karma: 0
Posts: 15
|
 |
« on: February 04, 2013, 04:50:34 am » |
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
Offline
Brattain Member
Karma: 240
Posts: 16433
Available for Design & Build services
|
 |
« Reply #1 on: February 04, 2013, 01:33:30 pm » |
NickGammon's program might show the installed bootloader. http://www.gammon.com.au/forum/?id=11635If nothing else, you can use it to ensure all boards have the same bootloader.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 15
|
 |
« Reply #2 on: February 05, 2013, 02:01:46 pm » |
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
Jr. Member
Karma: 0
Posts: 63
digitalWrite( 5, HIGH);
|
 |
« Reply #3 on: February 05, 2013, 03:42:51 pm » |
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
Newbie
Karma: 0
Posts: 15
|
 |
« Reply #4 on: February 06, 2013, 04:40:53 am » |
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
Offline
Brattain Member
Karma: 240
Posts: 16433
Available for Design & Build services
|
 |
« Reply #5 on: February 06, 2013, 04:30:40 pm » |
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
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 15
|
 |
« Reply #6 on: February 09, 2013, 07:43:12 am » |
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
Newbie
Karma: 0
Posts: 15
|
 |
« Reply #7 on: February 09, 2013, 07:45:13 am » |
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
Newbie
Karma: 0
Posts: 15
|
 |
« Reply #8 on: February 10, 2013, 05:53:06 am » |
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
Offline
Brattain Member
Karma: 240
Posts: 16433
Available for Design & Build services
|
 |
« Reply #9 on: February 10, 2013, 10:49:54 am » |
Glad you got it solved.
|
|
|
|
|
Logged
|
|
|
|
|
|