AVR32UC3 flash memory contents

classic Classic list List threaded Threaded
2 messages Options
Martin Guy Martin Guy
Reply | Threaded
Open this post in threaded view
|

AVR32UC3 flash memory contents

Hi again
  I dunno if this is the right place to ask, but I;m wondering what
the first 0x2000 bytes of the AT32UC3 series flash is reserved for.
The flash is at 0x80000000 and at reset it jumps to 0x8000000.
However, eLua has, in src/platform/avr32/at32uc3a0512.ld

MEMORY
{
    sram (W!RX) : ORIGIN = 0x00000004, LENGTH = 0x0000FFFC
    flash (RX) : ORIGIN = 0x80002000, LENGTH = 0x00080000 - 0x2000
}

To get my board to boot eLua at poweron, I had to set that to

    flash (RX) : ORIGIN = 0x80000000, LENGTH = 0x00080000

(well, LENGTH=0x00020000 as I'm using the 128K part not the 512K part)
which also gives 8KB more program space.

I'm wondering if anyone knows why the default setup reserves the first
8K. Is there some tiny AVR bootloader that I am missing?

Thanks

    M
_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev
Renaud Renaud
Reply | Threaded
Open this post in threaded view
|

Re: AVR32UC3 flash memory contents

Hi Martin,

AVR32 are factory shipped with a DFU bootloader (8KB) in FLASH. If not used, it can be overwritten :)

On Thu, Aug 5, 2010 at 7:07 PM, Martin Guy <[hidden email]> wrote:
Hi again
 I dunno if this is the right place to ask, but I;m wondering what
the first 0x2000 bytes of the AT32UC3 series flash is reserved for.
The flash is at 0x80000000 and at reset it jumps to 0x8000000.
However, eLua has, in src/platform/avr32/at32uc3a0512.ld

MEMORY
{
   sram (W!RX) : ORIGIN = 0x00000004, LENGTH = 0x0000FFFC
   flash (RX) : ORIGIN = 0x80002000, LENGTH = 0x00080000 - 0x2000
}

To get my board to boot eLua at poweron, I had to set that to

   flash (RX) : ORIGIN = 0x80000000, LENGTH = 0x00080000

(well, LENGTH=0x00020000 as I'm using the 128K part not the 512K part)
which also gives 8KB more program space.

I'm wondering if anyone knows why the default setup reserves the first
8K. Is there some tiny AVR bootloader that I am missing?

Thanks

   M
_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev


_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev