This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to split the DATA_GROUP

Hello,

I have a project that uses nearly all the available memory. I want to use overlaying, but the Linker can not fit the DATA_GROUP into memory.

Looking at the memory map, there is a gap of 8 bytes, and a gap of 3 bytes.
The DATA_GROUP is 9 bytes in size.

To my humble opinion, the linker should be able to split the DATA_GROUP in two or more parts, and fit each part in the available memory.

Is this possible, and how do i instruct the linker to do this?

Robert

Parents
  • I don't know if it is possible. The way I've got round this problem is either to force some variables to specific memory locations with the _at_ keyword or to put some of the variable declarations in another source file.

    This situation is particularly irritating if you only use one register bank, one source file and have some bdata variables - you than wind up with a 24 byte gap that never gets filled once DATA_GROUP has grown over 24 bytes.

    Stefan

Reply
  • I don't know if it is possible. The way I've got round this problem is either to force some variables to specific memory locations with the _at_ keyword or to put some of the variable declarations in another source file.

    This situation is particularly irritating if you only use one register bank, one source file and have some bdata variables - you than wind up with a 24 byte gap that never gets filled once DATA_GROUP has grown over 24 bytes.

    Stefan

Children
No data