View Single Post
  #7   Spotlight this post!  
Unread 13-03-2006, 19:26
Mike Bortfeldt Mike Bortfeldt is offline
Registered User
FRC #1126 (& 1511)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2004
Location: Rochester, NY
Posts: 119
Mike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud of
Re: Please help: Memory allocation problem dealing with sections

Good point about the linker script. You can change one of the DATABANK statements to make a larger section. For example, change:

DATABANK NAME=gpr9 START=0x900 END=0x9FF

to:

DATABANK NAME=gpr9 START=0x900 END=0AFF

Then delete the gpr10 DATABANK line. This would give you a 512 byte block for your data. It's not as efficient to use, but it should work (I just wrote a test program and it ran fine). You may have to do a "build all", but the compiler was smart enough in my simple test case to find the correct memory bank without it.

Mike