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.

  • TI Thinks Resolved

RTOS/AM5728: Heap size for the DSP

Mastermind 18075 points

Replies: 6

Views: 164

Part Number: AM5728

Tool/software: TI-RTOS

Hi Champs

When using ti rtos on the DSP in the am5728 is there a heap size restriction ? like if you want to assign 1GB do you have to add 1 byte extra? We even tried to set the heap size to 518MB it only let us get 512MB-1B. If we use 256MB its ok. Can you comment on this issue please.

Thanks

Regards

Mohsen


 
  • Guru 60060 points

    3225.hello_AM5728_C66XX.zipHi Mohsen,

    I attached a CCS project showing this problem. When I used a heap size of 512MB (heapMem3Params.size = 0x20000000;), it had

    >> Compilation failure

    subdir_rules.mk:19: recipe for target 'build-1539081055-inproc' failed

    "C:/ti/bios_6_75_02_00/packages/ti/sysbios/heaps/HeapMem.h", line 90 (col. 18): error: Object size 536870912 bytes is greater than maximum supported size 536870911 bytes

    1 error detected in the compilation of "package/cfg/hello_pe66.c".

    gmake.exe: *** [package/cfg/hello_pe66.mak:18: package/cfg/hello_pe66.oe66] Error 1

    I used ti-cgt-c6000_8.3.2.

    I asked RTOS team for help.

    Regards, Eric

  • In reply to lding:

    Hi Moysen,

    What version of SYS/BIOS are you using? Can you confirm you are using HeapMem as (which is the default for the System heap with SYS/BIOS). How are you determining the size? Looking in ROV, the mapfile or the generated big C file? I remember we had an issue with very large sizes at one point. I'll look for it when I get into the office.

    Todd
  • Guru 60060 points

    In reply to ToddMullanix:

    Todd,

    You can look at the CCS project I attached. It is SYSBIOS 6.75.2.00.

    Regards, Eric
  • In reply to lding:

    Hi Todd

    i did see your e2e post from the past that you need couple of bits for the bigger HEAP sizes like 512MB or above. i hope that is the case here then it would explain the issue. Please let me know.

    Thanks


     
  • In reply to Mohsen Khayami:

    It looks like this is the problem: e2e.ti.com/.../593077. This is not a SYS/BIOS issue, but a compiler limitation.
  • In reply to ToddMullanix:

    I talked with one of the compiler guys. One solution around the compiler limitation is to define a large buffer in assembly. Then dynamically create a SYS/BIOS HeapMem instance with that buffer.

    Todd

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.