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

Locating half of source code to specific memory section

Hello,

I want to split my program, so that about half of my c modules are linked starting from 0 and the other half starting from 0x4000.
I configured the L166 to "use linker control file" (project options -> L166 Misc) and defined withing the rec.lin file a new section "..., MYSPECIALCODE (0x4000-0x7FFF), ..."

But how do I tell the linker what c and h files should be within the MYSPECIALCODE section??

Hoping for help

Tobi

Parents
  • How would it work to seperate the two parts in two builds and reuniting them into one target??

    It wouldn't. Which is why we advised you not to do it that way.

    Forget about the "one target" idea. You will be flashing two independently built targets onto the same hardware, either by merging the hex filex before flashing, or by flashing both binaries in sequence.

Reply
  • How would it work to seperate the two parts in two builds and reuniting them into one target??

    It wouldn't. Which is why we advised you not to do it that way.

    Forget about the "one target" idea. You will be flashing two independently built targets onto the same hardware, either by merging the hex filex before flashing, or by flashing both binaries in sequence.

Children
No data