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.

CCE and List files

Other Parts Discussed in Thread: MSP430F2419

I am trying to figure out how to generate a list file for each source file that contains the amount of ram used for the gvie source file. I can create one that defines the assembly used, but I want to use the list file so I can search for what files are causing the most ram usage. Any ideas? I am receiving the following error.

"../lnk_msp430f2419.cmd", line 346: error: run placement fails for object ".bss"

  • John B said:

    I am trying to figure out how to generate a list file for each source file that contains the amount of ram used for the gvie source file. I can create one that defines the assembly used, but I want to use the list file so I can search for what files are causing the most ram usage.

    You mention that you can create one that defines the assembly used.  I assume you are referring to using the Project Build Options to generate the listing file using the below option in CCE?

    Project->Properties
    C/C++ Build -> Tool Settings -> MSP430 Compiler v3.0 -> Assembler Options -> Generate listing file (--asm_listing)

     

    You can create a map file, only after a successful link however, that produces a listing of the input and output sections from the linker.

    Project-Properties
    C/C++ Build -> Tool Setttings -> MSP430 Linker v3.0 -> Linker Output -> Produce listing of input and output sections in <file> (--map_file)

    John B said:

    I am receiving the following error.

    "../lnk_msp430f2419.cmd", line 346: error: run placement fails for object ".bss"

    As a quick test, you could specify a memory section larger than available just so the project links.  Then using the map file, you can identify what is taking up so much memory.
    Obviously, you will want to return the memory section to the correct size.

  • That worked, thank you.

    One other item. It looks like the list files only list the line number in the source file and not the "C" statement that makes up the assembly. Is there any way to mix these two together?

  • John B said:

    One other item. It looks like the list files only list the line number in the source file and not the "C" statement that makes up the assembly. Is there any way to mix these two together?

    Yes.  Select the following Project Build option.

    Project -> Properties -> C/C++ Build -> Tool Settings (tab) -> MSP430 Compiler v3.0 -> General Options -> Source interlist -> Generate C source interlisted assembly file (--c_src_interlist)

**Attention** This is a public forum