This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Memory map of AT91EB40 and AT91R40807


Hi Odd,

>I wonder what the memory map of the AT91EB40 is.
>Particularly where the internal extended sram resides and to what address
>Angel is loaded after reboot and at what address it puts its stack?

This information is split between the AT91EB40 Evaluation Board User Guide 
and the AT91x40807 datasheet (AT91M40800, AT91R40807, AT91M40807). The 
memory map set up by the bootloader is as follows (it is similar to, but 
differs from, the memory map in the AT91EB01):

0x00000000-0x00001FFF = 8K low RAM (mirrored throughout the area up to 
0x000FFFFF).

0x00100000-0x0011FFFF = 128K extended RAM (mirrored throughout the area up 
to 0x001FFFFF)

0x01000000-0x0100FFFF = 64K FLASH (write-protected unless LK7 is 
installed). The bottom 8K is used for the bootloader. The upper 56K 
contains Angel.

0x01010000-0x0101FFFF = 64K user FLASH. This is factory-programmed
Despite what Atmel says, it appears that this area cannot be erased in 
software unless LK7 is installed, and the erase command will erase the 
entire flash chip (it's not sectored). So be very careful! To use the 
flash, you are strongly recommended to use the JTAG port.

0x02000000-0x0203FFFF = 512K off-chip SRAM. If you boot the board with 
Angel then Angel occupies the area from 0x02020000-0x0203FFFF.

(The above area will be 0x02000000-0x021FFFFF if you have installed the 
optional upgrade to 2048K off-chip SRAM).


>This is what I believe is true:
>
>0x0207FFFF
>128K External SRAM - Angel is copyed here after boot
>0x02060000
>
>0x0205FFFF
>384K Available External SRAM
>0x02000000
>
>0x0101FFFF
>64K External Flash - Available
>0x01010000
>
>0x0100FFFF
>64K External Flash - Occupied by Boot software and Angel
>0x01000000
>
>0x0011FFFF
>128K Internal SRAM
>0x00100000
>
>0x00001FFF
>8K Internal RAM
>0x00000020
>Exception vectors
>0x00000000
>
>However, I can't write to the internal SRAM address 0x000100000 to
>0x00011FFFF !!!
>
>I also think that for the AT91EB01, Angel resides in 0x02000000-0x02010000
>
>Would appreciate any assistance
>
>Regards Odd

=== Lewin A.R.W. Edwards (Embedded Engineer)
Work: http://www.digi-frame.com/
Personal: http://www.zws.com/ and http://www.larwe.com/

"Und setzet ihr nicht das Leben ein,
Nie wird euch das Leben gewonnen sein."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]