Flash and RAM usage of LPC824

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

Flash and RAM usage of LPC824

705 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by vddvss on Fri Mar 06 16:02:00 MST 2015
Hi I am an absolute beginner with LPCXpresso. I have reasonable experience in programming 8 bit controllers in C (Microchip) and finally I decide to take the leap into the present with NXP's Cortex M0 processors, as a possible candidate to substitute the current 8 bit processors for relative simple tasks. The first thing I did is I bought the LPCXpresso 824 MAX board to experiment with. I plan to use LPCXpresso IDE.
Now the firs thing is that I have downloaded the LPCOpen package for the 824, and took a look into the programs, and tried to compile them.

The question is: did I interpret the following lines:

   text   data    bss    dec    hexfilename
   4196      0    468   4664   1238periph_blinky.axf

of the preipheral blinky example project right, by thinking: the program consumes 4196 bytes of code (almost 13%) out of the possible 32768 bytes when built in Release mode?
In Debug build, the same is:
   text   data    bss    dec    hexfilename
   6536      0    468   7004   1b5cperiph_blinky.axf

The debug build is almost 20% of the available "program memory"? This I find to be too much (coming from the world of 8 bit Microchip controllers, where similar functionality - blinky - could be realized just by a few 10's of lines).

Thank you for anyone's feedback!

0 项奖励
回复
2 回复数

635 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by vddvss on Tue Mar 10 14:56:04 MST 2015
Thank you very much for the clarification!
0 项奖励
回复

635 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Mon Mar 09 02:37:00 MST 2015
Information on application sizes can be found in:

http://www.lpcware.com/content/faq/lpcxpresso/application-flash-ram-size

The LPCOpen examples have not been created with minimal code size as a primary objective. Thus the examples do pull in more code than may be required in some circumstances.

They also tend to link with the Redlib (Nohost) C library, which many examples do not strictly require. One very easy way to quickly reduce the code size is thus to modify the C library variant that is used to Redlib (None). For details of how to do this, please see:

http://www.lpcware.com/content/faq/lpcxpresso/switching-selected-c-library

Doing this here reduces the size of the 824 blinky example thus:

Debug
   4428      0    132   4560   11d0periph_blinky.axf

Release
   2292      0    132   2424    978periph_blinky.axf


Regards
LPCXpresso Support
0 项奖励
回复