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.

Unable to place .vecs at another address than 0x00

(CCS 4.2.3 and SYS/BIOS 6.31.4.27, TMS570)

Hello,

In order to have an application being program by a bootloader, I want to place my .vecs application segment at 0x08000.

But RTSC refuses that, I got this error:

Cannot set property "loadAddress" of undefined to "32768"

 

What can I do?

 

Even if I define:

Program.sectionsExclude = ".vecs";

The result is still the same

.

 Simon

 

 

  • Hi Simon --

    Check the "Memory" chapter of the BIOS User's Guide.

    I think you can do the following:

    Program.sectMap[".vecs"] = new Program.SectionSpec();
    Program.sectMap[".vecs"].loadSegment = 0x8000;

    -Karl-

  • No this doesn't work either.

    And the memory chapter just talks about head configuration, not what I'm searching for.

     

    But

    Program.sectionsExclude = ".vecs";

    have the consequence to exclude the

    .vecs: load > 0x0

    in SECTIONS of the auto-generated linker.cmd file.

    I still see in the map file that the .vecs is still place at 0x00 tough.

    So maybe if I'll find a way to call a custom linker file after the auto-generated one, it could configure the address of .vecs

    Do you now how to call a custom linker file command after the first one?

    Simon

  • Simon --

    You should be able to add another .cmd file to your project.   And then use the following dialog box to specify the order of the 2 .cmd files.  You need to add yours and the generated files to the list and then you can move up/down.   I think your vectors are being placed at 0, since the linker will find the first place that fits for sections that aren't specified in the .cmd file.  But, I think you should also see a "placing section without explicit placement" or some such warning.

    -Karl-

     

  • Yes, that's it.

    I have now another (custom) command file containing:

    SECTIONS
    {
    .vecs: load > VECTORS
    }

    where VECTORS is at 0x080000.

    In CCS:

     

     

    And the .map file gives:


    SECTION ALLOCATION MAP

    output attributes/
    section page origin length input sections
    -------- ---- ---------- ---------- ----------------
    .vecs 0 00080000 00000040
    00080000 00000040 Application_xer4fte.oer4fte (.vecs)

    Thanks so lot.

    Simon