DSP28379学习笔记 (一)——GPIO基本操作
开发环境
软件:ccs11.1.0
硬件:LAUNCHXL-F28379D
日期:2022.8.16
问题及修改cmd文件
这段时间把工程移植到了dsp上,基于driverlib,在ti的例程上修改部分底层配置。在debug和 release模式下都遇到了 内存不够 ,需要修改 cmd文件的情况。
debug模式下
program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section. placement with alignment/blocking fails for section ".text" size 0x455e page 0. Available memory ranges: 2837xD_RAM_lnk_cpu1.cmd /0.28379_temp__CPU1/1.cmd line 81 C/C++ Problem
事先分配的ram的大小已经满了,且page0 里也几乎没有空余的ram
找到page1 中空余的空间
移到page 0 中,并分配给 .text
release模式下
program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section. placement with alignment/blocking fails for section ".cinit" size 0x79 page 0. Available memory ranges: 2837xD_FLASH_lnk_cpu1.cmd /0.28379_temp__CPU1/1.cmd line 78 C/C++ Problem
同理,把同page 下的空内存分配过去,没有,就从其他 page下移空闲内存过来
这里我直接分配 FLASHE过去