Quantcast
Channel: 蓝牙论坛 - 最近的话题
Viewing all articles
Browse latest Browse all 7485

官方例程CC2564 + MSP430F5229, 编译提示Flash空间不足,如何解决?

$
0
0

硬件平台:  蓝牙 和 MSP430 音频信宿参考设计  CC2564 + MSP430F5229

http://www.ti.com.cn/tool/cn/bt-mspaudsink-rd?keyMatch=bt-mspaudsink&tisearch=Search-CN#descriptionArea

软件版本:Bluepia for MSP430  V1.4 R2

使用的工程:

C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R2\MSP430_Experimentor\Samples\A3DPDemo_SNK\Projects\IAR

IAR for MSP430 版本: V6.10.1

——————————————————

(1)打开工程A3DPDemo_SNK,默认的MCU型号为 MSP430F5438A,编译结果如下:

----优化等级 高(Size)


121 646 bytes of CODE memory
7 864 bytes of DATA memory (+ 89 absolute )
9 627 bytes of CONST memory

----优化等级为低;

126 130 bytes of CODE memory
7 864 bytes of DATA memory (+ 89 absolute )
9 629 bytes of CONST memory

(2)更改MCU型号为MSP430F5229:

编译结果如下:

---优化等级为低;

Error[e104]: Failed to fit all segments into specified ranges. Problem discovered in segment CODE. Unable to place 209 block(s) (0x1ea5e byte(s) total) in 0x1dfea byte(s) of memory. The problem occurred while processing the segment
placement command "-P(CODE)CODE=4400-FF7F,10000-243FF", where at the moment of placement the available memory ranges were "CODE:6396-ff7f,CODE:10000-243ff"
Error while running Linker

0x1ea5e byte -- 122KB         0x1dfea byte(s) -- 119KB

---优化等级为高(Size)

Error[e16]: Segment DATA20_C (size: 0x7e5 align: 0) is too long for segment definition. At least 0xd3 more bytes needed. The problem occurred while processing the segment placement command
"-Z(CONST)DATA20_C,DATA20_ID=4400-FF7F,10000-243FF", where at the moment of placement the available memory ranges were "CODE:23cee-243ff"
Reserved ranges relevant to this placement:
4400-6105 DATA16_C
6106-61b5 DATA16_ID
61b6-61e5 CSTART
61e6-636d ISR_CODE
636e-ff7f CODE
10000-23ced CODE
23cee-243ff DATA20_C
Error while running Linker

问题:

(1)在哪可以下载到DEMO板可以使用的工程?

http://processors.wiki.ti.com/index.php/CC256x_Audio_Sink_User_Guide

---上面提到的下载地址,就是Bluetopia的软件包,解压之后出现的问题如本贴描述。


(2)MSP430F5229有128K的Flash空间,实际编译出来的代码并未大于128K,就已经提示空间不足。

----是否有优化代码分配的配置选项? 例如ccs中lnk_msp430f5529.cmd文件,可以直接查看地址分配?



Viewing all articles
Browse latest Browse all 7485

Trending Articles