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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

ソリューションへジャンプ
1,979件の閲覧回数
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,790件の閲覧回数
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,790件の閲覧回数
chrispflieger
Contributor IV

Is optimization turned on? Try the -Os option.

0 件の賞賛
返信
1,790件の閲覧回数
9218sky
Contributor II

Hi, Chris

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

0 件の賞賛
返信
1,791件の閲覧回数
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,790件の閲覧回数
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 件の賞賛
返信