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.

MSPM0L1306: Linker warnings

Part Number: MSPM0L1306


Trying to build some trivial stuff without linker warnings:

/**
 * main.c
 */


volatile int jaja = 0;
int main(void)
{

    jaja++;
    return 0;
}

Building target: "jajamspm0.out"
Invoking: Arm Linker
"/home/hans/bin/ccs1230/ccs/tools/compiler/ti-cgt-armllvm_2.1.3.LTS/bin/tiarmclang" -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -Og -D__MSPM0L1306__ -g -Wl,-m"jajamspm0.map" -Wl,--heap_size=0 -Wl,--stack_size=256 -Wl,-i"/home/hans/bin/ccs1230/ccs/tools/compiler/ti-cgt-armllvm_2.1.3.LTS/lib" -Wl,--reread_libs -Wl,--diag_wrap=off -Wl,--display_error_number -Wl,--warn_sections -Wl,--xml_link_info="jajamspm0_linkInfo.xml" -Wl,--rom_model -o "jajamspm0.out" "./main.o"
warning #10247-D: creating output section ".text" without a SECTIONS specification
warning #10247-D: creating output section ".data" without a SECTIONS specification
warning #10247-D: creating output section ".cinit" without a SECTIONS specification
warning #10247-D: creating output section ".stack" without a SECTIONS specification
Finished building target: "jajamspm0.out"

  • Hi Hans,

    What does your linker command file look like? If you pulled it from one of our examples it will typically be called something like: mspm0l1306.cmd

    Your project properties should also point to it like so:

    That is where the sections specifications would be. 

    Best Regards,
    Brandon Fisher

  • That linker file does not seem to exist at the default location.

    I created the project from scratch via the wizard and NOT from an example.

    Running 12.4.0.0000007, updated from 12.3.0.

  • Hi Hans,

    The project wizard in CCS is not our recommended method of starting a project. As you've noticed, currently CCS doesn't automatically include a lot of the important files like this linker command file and the device header files (and our DriverLib if you intend to use that). If you downloaded the SDK, the linker file you need is located at C:\ti\mspm0_sdk_<SDK Version>\source\ti\devices\msp\m0p\linker_files\ticlang by default in Windows. 

    Otherwise I've attached a copy to this post below. 

    If you're going to start a new project. I'd recommend importing the empty example project instead. You can find that online here or in your SDK/Examples directory.

    - Brandon

     https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/908/mspm0l1306.cmd