build USB project, RAM using upto 50516byte, why?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

build USB project, RAM using upto 50516byte, why?

跳至解决方案
1,929 次查看
9218sky
Contributor II

1. USB PROJECT:

    lpcopen_2_20\applications\lpc18xx_43xx\keil\keil_mcb_1857\lpcusblib_host\usbhost_msc\usbhost_msc 

    Program Size: Code=27928 RO-data=1692 RW-data=108 ZI-data=48716  

2. but build SDcard file system using RAM following:

    Program Size: Code=14770 RO-data=682 RW-data=48 ZI-data=6952  

how do lessen RAM using?

标签 (4)
1 解答
1,740 次查看
converse
Senior Contributor V

Suggest you look in the linker map file to see what is using the space - I would guess it is used for buffers etc.

在原帖中查看解决方案

4 回复数
1,740 次查看
chrispflieger
Contributor IV

Is optimization turned on? Try the -Os option.

0 项奖励
回复
1,740 次查看
9218sky
Contributor II

Hi, Chris

optimization select level-3, only code as lessen, but RAM no change!

0 项奖励
回复
1,741 次查看
converse
Senior Contributor V

Suggest you look in the linker map file to see what is using the space - I would guess it is used for buffers etc.

1,740 次查看
9218sky
Contributor II

Hi, Con Verse

look in map file, get RAM expend information.

because "keil_startup_lpc18xx_43xx.s" define head size:

"Heap_Size       EQU     0x00006000"

I set the value to 0Byte.

build and test as successful.

thanks.

0 项奖励
回复