|
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
|