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

Linker Keep-Out?

Is there a linker command to exclude addressing spaces without using the CODE command and listing all the segments? For example, I need my code to reside within the first 8K (0000 - 1FFF) and at the end of memory (C000 - FFFF) only. I need to "keep-out" of area 2000 - BFFF which contains 38K of fixed data. FLASH IAP is driving this request to work with 3 (16K) and 2 (8K) segments within a 64K FLASH device.

Thamks,
Alan Preuss

Parents
  • Is there a linker command to exclude addressing spaces without using the CODE command and listing all the segments?

    You can use the CODE directive and just list the memory areas. For example:

    CODE (0x0000-0x1FFF,0xC000-0xFFFF)

    That will cause the linker to use the ranges 0x0000-0x1FFF and 0xC000-0xFFFF.

    Jon

Reply
  • Is there a linker command to exclude addressing spaces without using the CODE command and listing all the segments?

    You can use the CODE directive and just list the memory areas. For example:

    CODE (0x0000-0x1FFF,0xC000-0xFFFF)

    That will cause the linker to use the ranges 0x0000-0x1FFF and 0xC000-0xFFFF.

    Jon

Children