在使用66ak2h开发的时候,有程序需要使用malloc及calloc动态分配内存,分配的内存比较大,采用sys/bios开发,请问,怎么设置,是程序加载到L2RAM,而malloc及calloc分配的内存在DDR,并且指定可分配内存的地址范围!
也就是,让程序分配的内存在0xb0000000~0xe0000000(假设如上地址范围)。
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.
在使用66ak2h开发的时候,有程序需要使用malloc及calloc动态分配内存,分配的内存比较大,采用sys/bios开发,请问,怎么设置,是程序加载到L2RAM,而malloc及calloc分配的内存在DDR,并且指定可分配内存的地址范围!
也就是,让程序分配的内存在0xb0000000~0xe0000000(假设如上地址范围)。
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