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.

Memory Segment problem in MEM_stat()

Hi TI,

I am using BIOS 5.41.13.42 on C6416. While calling MEM_stat() to see the heap statistics, it fails in a certain memory segment (SDRAM0 in below configuration), but succeeds in other segments including L2-RAM and other parts of SDRAM. The failure is MEM_stat() can NOT return back, seems like running a deadloop inside from the disassembly view.

Why does this happen?

My memory segments are as follows:

1. IRAM: all L2-RAM

2. SDRAM0: 0x80000000 - 0x80300000 (SDRAM is from 0x80000000 to 0x81000000, 16MByte)

3. SDRAM1: 0x80300000 - 0x80400000

4. SDRAM2: 0x80400000 - 0x81000000

  • Hi,

    There is nothing special about MEM_stat().  It should work on any type of memory (internal or external).
    Maybe your heap is corrupted?  Have you used the KOV is CCS plugin to see if it gives you any more info?
    My two best guess on what's happening is:

    #1.  The heap in SDRAM0 is corrupted and then MEM_stat tries to walk the link lists, it gets in a cycle.

    #2.  Something wrong with the memory in SDRAM0.

    Judah