This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Generating @address in a .txt file

Using IAR.

In my linker file I have code1=3100-35FF and code2=3800-FFFF.

The generated .txt file has

@1000

(info memory bytes) and

@3100

(the rest of the story)

Is there a way to generate

@3800

(code)

??

Thanks.

  • I'm not sure how you are specifying which code you want to go into segment CODE1 and segment CODE2.... but, what you want to do does work. Here is an example .xcl file and the resulting MSP430txt format file.

    XCL file (change extension, forum balked at .xcl):

    4375.dbc_xcl.txt
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    // -------------------------------------------------------------------
    // Relocated embedded programming application - Needs force build
    // -------------------------------------------------------------------
    //-gEmbeddedProgramming
    // -------------------------------------------------------------------
    // Image checksum generation
    // -------------------------------------------------------------------
    -HFFFF
    -J2,sum,=(CODE)C000-FF7D
    // ---------------------------------------------------------
    // Read-write memory.
    // ---------------------------------------------------------
    -Z(CODE)EP_RAM_CODE=2400-33FF
    -Z(DATA)DATA16_I,DATA16_Z,DATA16_N,DATA16_HEAP+_DATA16_HEAP_SIZE=2400-33FF
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    MSP430txt output file:

    3857.dbc.txt
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    @C100
    31 40 00 34 B0 13 50 CC 0C 93 08 24 8C 00 00 24
    3E 40 20 00 3F 40 00 00 B0 13 00 D3 B0 13 FE CC
    B0 13 F8 D2 FF FF FF FF FF FF FF FF FF FF FF FF
    FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    @C700
    3F 14 1F 42 0E 05 E0 0F 14 3C 07 3C 12 3C 11 3C
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • Figured it out. Under project Options:Checksum if the Fill unused code memory is checked then only two @address are generated. If unchecked then the @address information is generated for all the various blocks and the .txt file doesn't show all the unwritten 0xFF locations.

**Attention** This is a public forum