Forums

AVR boot loader

Started by Unknown March 31, 2005
good day everybody,
          I am using boot loader for downloading the firmware through
serial port. Now i have the one for Atmega 163 microcontroller. But i
want to make this one for Atmega 128. I did some changes on the code
(the code which i got from Progressive Resources LLC .... Boot16_32)
now it is working fine , but if my code exceeded 64K it is not mapping
correctly to the particular address . some time i used to get the error
massage that FILL ERROR. please give some suggession to make this code
work for atmega 128 for large file?.  thank you.

with regards
marans

On 31 Mar 2005 01:43:44 -0800, tamilmaranz@gmail.com wrote:

>good day everybody, > I am using boot loader for downloading the firmware through >serial port. Now i have the one for Atmega 163 microcontroller. But i >want to make this one for Atmega 128. I did some changes on the code >(the code which i got from Progressive Resources LLC .... Boot16_32) >now it is working fine , but if my code exceeded 64K it is not mapping >correctly to the particular address . some time i used to get the error >massage that FILL ERROR. please give some suggession to make this code >work for atmega 128 for large file?. thank you.
Check the datasheet. Look for the ESPM instruction and RAMPZ. HTH, -=Dave -=Dave -- Change is inevitable, progress is not.
iddw@hotmail.com (Dave Hansen) wrote in message news:<424bfc76.1975579421@news.aioe.org>...
> On 31 Mar 2005 01:43:44 -0800, tamilmaranz@gmail.com wrote: > > >good day everybody, > > I am using boot loader for downloading the firmware through > >serial port. Now i have the one for Atmega 163 microcontroller. But i > >want to make this one for Atmega 128. I did some changes on the code > >(the code which i got from Progressive Resources LLC .... Boot16_32) > >now it is working fine , but if my code exceeded 64K it is not mapping > >correctly to the particular address . some time i used to get the error > >massage that FILL ERROR. please give some suggession to make this code > >work for atmega 128 for large file?. thank you. > > Check the datasheet. Look for the ESPM instruction and RAMPZ. > > HTH, > -=Dave > >
-=Dave hi Dave, thanks for your suggestion , we fix that problem. Now we can able to acess the entire 128K byte through boot loader. But we are not able to read back the contents of the particular memory address from upper 64K bytes. Our entire code is about 82k. After that we are loading some structure starting from 0xB400 which are around 20 K. But we are not able read back the structure. Even after setting RAMPZ as 0x01 , our code is still accessing from the lower 64K byte. Do we need to do any other additional settings to access the upper 64K ? thank you regards marans
On 11 Apr 2005 11:36:25 -0700, tamilmaranz@gmail.com (tamilmaran s)
wrote:

>iddw@hotmail.com (Dave Hansen) wrote in message news: ><424bfc76.1975579421@news.aioe.org>...
[...]
>> Check the datasheet. Look for the ESPM instruction and RAMPZ. >> >> HTH, >> -=Dave >> >> > -=Dave > >hi Dave, > thanks for your suggestion , we fix that problem. Now we can >able to acess the entire 128K byte through boot loader. But we are not >able to read back the contents of the particular memory address from >upper 64K bytes. Our entire code is about 82k. After that we are >loading some structure starting from 0xB400 which are around 20 K. But >we are not able read back the structure. >Even after setting RAMPZ as 0x01 , our code is still accessing from >the lower 64K byte. Do we need to do any other additional settings to >access the upper 64K ?
Are you using LPM or ELPM? -=Dave -- Change is inevitable, progress is not.