> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > On Behalf Of Thomas Richter > Sent: Friday, March 09, 2007 6:06 AM > To: avr-chat > Subject: [avr-chat] ATmega2561: bootloader can not write in > application section > > Hi, > > why it is not possible for my bootloader application to write into > application flash section? > I use ATmega2561. My code uses the AVR libc functionality (installed > with WinAVR-20070122 package). To prevent protection mode I > set all boot > loader lock bits to "1". > > Here the important parts of my code: > <snip> > > The function to write my data (stored at gBuffer) one page into flash: > uint8_t writeFlashPage(uint16_t waddr, pagebuf_t size) > {
Ok, here are the obvious questions: How did you declare the prototype to writeFlashPage() above? Did you put it in it's own named section (.bootloader)? Did you relocate the .bootloader section to the correct address? What address did you relocate it to? Do you have the correct fuse settings for the size of the bootloader area? Eric _______________________________________________ AVR-chat mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/avr-chat
