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.

malloc空间分配问题???

Other Parts Discussed in Thread: CCSTUDIO

在使用66ak2h开发的时候,有程序需要使用malloc及calloc动态分配内存,分配的内存比较大,采用sys/bios开发,请问,怎么设置,是程序加载到L2RAM,而malloc及calloc分配的内存在DDR,并且指定可分配内存的地址范围!

也就是,让程序分配的内存在0xb0000000~0xe0000000(假设如上地址范围)。

  • 也就是请问,如何改变 system heap的起始地址和空间大小?多谢!

    或者说,能否把system heap定位到系统的DDR中???

  • http://processors.wiki.ti.com/index.php/Using_CCStudio_v4_to_create_a_custom_RTSC_platform

    看一下这个演示:

    http://rtsc.eclipse.org/docs-tip/Demo_of_the_RTSC_Platform_Wizard_in_CCSv4

    http://processors.wiki.ti.com/index.php/SYS/BIOS_FAQs#3_Placing_SYS.2FBIOS_code_in_different_memory_segments

  • 谢谢,这些方法我已经发现,也就是让systemheap分配到ddr已经实现。但是我的应用还有其他的需求。

    采用的是66ak多核芯片,在几个DSP核上需要运行相同的程序处理不同的数据,但是希望所有的dsp核运行的程序相同,其内核heap所在的DDR的地址范围不同,根据不同的核心自动分配!

    多谢