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.

Confused about memory information

Other Parts Discussed in Thread: MSP430F5335

When flashing the uC, the CCS tells me that the expected RAM usage is 19796 bytes, but the default linker script and the specification data sheet for the msp430F5335 indicates that I only have 18432 bytes.  Why would CCS allow me to flash the system if there is not enough memory?  See below.

I am use CCS 6.1.3 on Linux.

  • Hi Silver,

    I cannot speak to why this happens but usually you get a warning to alert you about it. Can you check to see if you are getting any warning? I will inform the team in charge about this.
    One way to solve the problem is to use the the NOINIT or PERSISTENT pragma to save large vraiables in FRAM.

    Thanks,
    Charles O
  • Charles,


    Thanks, but yes, this is totally throwing me off, looking at the ram of the map file

    ******************************************************************************
                      MSP430 Linker Unix v15.12.2                  
    ******************************************************************************
    >> Linked Tue Jun 28 12:34:51 2016
    
    OUTPUT FILE NAME:   <hw_1_5.out>
    ENTRY POINT SYMBOL: "_c_int00_noargs"  address: 00008502
    
    
    MEMORY CONFIGURATION
    
             name            origin    length      used     unused   attr    fill
    ----------------------  --------  ---------  --------  --------  ----  --------
      SFR                   00000000   00000010  00000000  00000010  RWIX
      PERIPHERALS_8BIT      00000010   000000f0  00000000  000000f0  RWIX
      PERIPHERALS_16BIT     00000100   00000100  00000000  00000100  RWIX
      INFOD                 00001800   00000080  00000000  00000080  RWIX
      INFOC                 00001880   00000080  00000000  00000080  RWIX
      INFOB                 00001900   00000080  00000000  00000080  RWIX
      INFOA                 00001980   00000080  00000000  00000080  RWIX
      RAM                   00001c00   00004800  0000251c  000022e4  RWIX
      FLASH                 00008000   00007f80  0000276c  00005814  RWIX
      INT00                 0000ff80   00000002  00000000  00000002  RWIX
      INT01                 0000ff82   00000002  00000000  00000002  RWIX

    It is telling me that ther is 0x22e4 unused bytes, that's 8.9K of unused memory, so which one is true?  What do I go by?

  • Silver Diamond said:
    It is telling me that ther is 0x22e4 unused bytes, that's 8.9K of unused memory, so which one is true?  What do I go by?

    The message "MSP430: Loading complete." about the expected RAM usage reported in the CCS console is incorrect - see CCS Shows way to much expected ram usage in console window after build

    The work-around is look at the RAM usage in the linker map file, or using the CCS Memory Allocation view.

  • SERIOUSLY?  This is insane, does TI not know how to develop software?  We wasted weeks trying to keep our memory within limits, our team had to work over-time to meet the targets, but it could have been much easier if we had correct information to go by.  This makes me very angry, how can I trust TI for anything if this issue was known for at least half a year and was not fixed?

  • Silver Diamond said:
    This makes me very angry, how can I trust TI for anything if this issue was known for at least half a year and was not fixed?

    Checking the status of SDSCM00052390 in the Bug Tracking system shows the defect has a Severity of "Minor" and a Target Release of CCS 6.3.0. Given that CCS 6.2.0 hasn't been released yet, probably several months before SDSCM00052390 is fixed.

    Since the actual MSP430 memory usage is available in the linker MAP file or the CCS Memory Allocation view, to avoid confusion until the proper fix for SDSCM00052390 can the confusing "expected RAM usage" be removed from the  "MSP430: Loading complete" message displayed when starting a debug session?

  • It is certainly better not to say anything than to say a wrong thing, so taking it off is better.  I would say that saying a wrong thing has severe severity, it should immediately be removed.

  • Hello,
    Sorry for the delayed response.

    This bug was originally filed for 6.3.0. However, there will not be a 6.3.0 release as the next release after 6.2.0 will be 7.0.0. Hence the status of the bug has been updated accordingly.

    Note that we have moved to a new bug tracking system. This bug was originally filed in the old system with the ID "SDSCM00052390". It has been migrated to the new system and the new ID is "CCBT-1814". The IDs from both systems can be viewed from the same external portal that existed before.

    Thanks
    ki
  • Ki-Soo Lee said:
    This bug was originally filed in the old system with the ID "SDSCM00052390". It has been migrated to the new system and the new ID is "CCBT-1814". The IDs from both systems can be viewed from the same external portal that existed before.

    Sorry, I need to amend the above comment. Please still use the old ID (SDSCM00052390) to track the bug.

    Thanks

    ki