allocating to different banks

Sumesh UdayaKumaran sumesh_uk@hotmail.com
Mon Aug 18 17:39:00 GMT 2003


Hi
    I was wondering if some one can tell me the linker script changes I 
would need to support multiple banks.

I was thinking of changes like this

1. Defining the memory configuration

MEMORY
{
   bankD   : ORIGIN = 0x00000000, LENGTH = 262144
   bank0   : ORIGIN = 0x00080000, LENGTH = 100000
   bank1   : ORIGIN = 0x000A0000, LENGTH = 131072
   bank2   : ORIGIN = 0x00060000, LENGTH = 131072
}

2. Defining sections like below

   bank0 :
  {
     *(bank0)
  } >bank0
  bank1 :
  {
     *(bank1)
  } >bank1
  bank2 :
  {
     *(bank2)
  } >bank2



Modifying the assembly file to include  the following directive for each 
variable.
for example
.section bank0


Can some body point me whats wrong in this ?


thanks
-SUmesh

_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail



More information about the Binutils mailing list