Go Down

Topic: Mega 2560 bootloader revised? (Read 6 times) previous topic - next topic

draythomp

Still trying to get these problems resolved.  Here's my latest mail to the
developer's group.

Code: [Select]
It's been a couple of weeks since the last response, has there been any
progress on this long-term problem?

Meanwhile, at least one person has replaced the 2560 bootloader with one
for the 1280 to get around the problems.  Is that what we're going to be
reduced to, crippling the board to make it work?  Especially since the fixes
for both problems have existed for months and months?  I totally understand
the need to organize the code and keep track of it, but give us a hex file to
load and test with while the other stuff is being done.

>Hey Guys,
>
>I talked to Massimo he wants to make sure this is moved into a project
>in Arduino. We'll get this straightened out.

>In the meantime I'll ask Mark about the hex file.
>
>-_Rick
>
>On Wed, Sep 14, 2011 at 10:34 PM, Dave Thompson <draythomp at
>gmail.com> wrote:
>> Thanks for the update and the code.  I can't get the hex file to load
>> though.  This is the error I get:
>>
>>
>>
>> avrdude: ERROR: address 0x40010 out of range at line 515 of < and the
>> file name followed >
>>
>>
>>
>> dave
>>


I know the developers visit this board from time to time because I see their comments.  Why are we being stonewalled on this?
Trying to keep my house under control http://www.desert-home.com/

Big Dutch

Thanks for keeping us posted on your progress!

draythomp

Progress  !!!

Quote
the bootloader is now an "official" Arduino repository.
we recompiled the code because the HEX provided were defective.

We've added a test program to verify that the bootloader can work with files bigger than 128k

you can find it here https://github.com/arduino/Arduino-stk500v2-bootloader

let us know if this solves your issues. we're committed to fix all the issues asap.

thanks

massimo


I'll get to try it soon, but I can't right now.  If someone else out there has a minute, take a shot.  I suspect it will work just fine.
Trying to keep my house under control http://www.desert-home.com/

Graynomad

Quote
Progress  !!!

Careful with those exclamation marks :)

______
Rob
Rob Gray aka the GRAYnomad www.robgray.com

draythomp

Ok, got a chance to test it.  I used a USBtinyISP and loaded the file indicated above.  With the test sketch:

Code: [Select]

void setup(){
 Serial.begin(57600);
 Serial.println("Hello World !!!");
}
void loop(){
}


The new bootloader loaded and executed the file just fine.  However, the sketch:

Code: [Select]

#include <avr/wdt.h>

void setup(){

 wdt_reset();   // First thing, turn it off
 wdt_disable();
 Serial.begin(57600);
 Serial.println("Hello, in setup");
}

int firstTime = true;

void loop() {
     if (firstTime){
       firstTime = false;
       Serial.println("In loop waiting for Watchdog");
       wdt_enable(WDTO_8S);    // eight seconds from now the device will reboot
     }
     // now just do nothing
}


this one loaded and then hung up in a loop.  I had to power down and reload a new script after holding the reset button until the compile finished to get the board back.
Trying to keep my house under control http://www.desert-home.com/

Go Up