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.

CCSv5 Linker Warning #10260-D

Other Parts Discussed in Thread: MSP430G2553

Where can I find out what this warning means?  "unrecognized -- mapfile contents attribute:"

Do I need to be concerned since my code seems to run fine.

  • What does your link command look like? It seems that you are passing an unrecognized attribute to the link option --mapfile_contents. Please check your link command and also the reference for the --mapfile_contents and accepted attributes in the Assembly Language Tools/Linker Users Guide. Users Guides can be found here.

    The warning should not affect your code, that option only controls the contents of the link map file.

  • Sorry I haven't followed this up.. I'm still getting the warning but don't know where within CCS5 to find what you are asking for in terms of what it is supplying as "link commands" or the "reference for the --mapfile_contents abd accepted attributes in the Assembly Language Tools/Linker Users Guide". CCS5 is a great compiler but in many ways it has TOO MANY OPTIONS and enough documentation to "sink a battleship" but documentation that is scattered everywhere forcing users to go on a hide and seek exercise to find simple answers to simple questions.

  • Jim Taylor99524 said:
    I'm still getting the warning but don't know where within CCS5 to find what you are asking for in terms of what it is supplying as "link commands" or the "reference for the --mapfile_contents abd accepted attributes in the Assembly Language Tools/Linker Users Guide".

    In CCS, look at the build console when you build your project to see what options are being passed to the linker. Basically everything after it says "Invoking Linker", and look closely at the --mapfile_contents option. The compare it with the accepted attributes that are listed in the Assembly Language Tools Users Guide for your device.

    All of the manuals are available here: http://processors.wiki.ti.com/index.php/TI_Compiler_Information#Compiler_Manuals. Open the one for the processor you are working with, and search for the option --mapfile_contents to review its details.

  • OK - I seem to be getting closer to the solution. Below is a C&P of the Build Console Linker output:

    **** Build of configuration Debug for project LCD2 ****


    'Building target: LCD2.out'
    'Invoking: MSP430 Linker'
    "C:/ti/ccsv5/tools/compiler/msp430/bin/cl430" -vmsp --abi=coffabi -g --define=__MSP430G2553__ --diag_warning=225 --display_error_number --printf_support=minimal -z -m"LCD2.map" --stack_size=80 --heap_size=150 -i"C:/ti/ccsv5/ccs_base/msp430/include" -i"C:/ti/ccsv5/tools/compiler/msp430/lib" -i"C:/ti/ccsv5/tools/compiler/msp430/include" --reread_libs --warn_sections --mapfile_contents=LCD2map --rom_model -o "LCD2.out"  "./time.obj" "./lcd_main.obj" "./lcd_funcs.obj" "./UART_funcs.obj" "./Messages.obj" -l"libc.a" "../lnk_msp430g2553.cmd"
    <Linking>
    warning #10260-D: unrecognized --mapfile_contents attribute:  LCD2map
    'Finished building target: LCD2.out'
    ' '

    **** Build Finished ****

    By looking at the "--mapfile_contents" entry above, the "filter" option following is the string "LCD2map" which doesn't coincide with any of the allowable filters specified in Section 7.4.15 of the MSP430 Assembly Language Tools Users Guide. That's exactly what the warning text is saying that it doesn't like the string "LCD2map". So the questions now are --- 1. How does the string LCD2map get put there? and 2. How do I change it from within CCS5?

  • OK -- I fixed the problem. I found the Project Properties entry for the --mapfile_contents option and indeed, the string LCD2map was there but I don't know how it got there. Anyway, I removed it, re-built my project, and the Warning message is now gone. Thanks for your help.