How to determine axf code size?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to determine axf code size?

1,243 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by hellospencer on Wed Jul 04 01:46:23 MST 2012
Hello,

I'm using the CodeRed IDE and it has a limit of maximal code size for the axf file. How can I determine on the command line the size of my application? I want to know before flashing, if the code is too large for my license.

The license says:

Quote:

License type: FULL
Debug limit: 128k
Activation code: xxx

A FULL copy of LPCXpresso may be used for production.



Thanks a lot!
0 Kudos
Reply
4 Replies

1,190 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by hellospencer on Thu Jul 05 09:52:55 MST 2012
Thanks Serge for pointing me in the right direction! Now I was able to solve it. I've recently upgraded my Ubuntu and that disabled my license. I did the re-activation as suggested by the other thread and it worked.

In any case, the license screen should not display the wrong maximum file size.
0 Kudos
Reply

1,190 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by serge on Wed Jul 04 23:32:23 MST 2012
A simple search on this forum gave me a lot of hits.:eek:
Those other threads may be of interest for you.:p
For example this thread.

This topic has been discussed a zillion times on this forum:(. Do a search and read the other threads.

The sticky post on top of the forum can be helpfull to show you the way how to do a search.:D

Serge
0 Kudos
Reply

1,190 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by hellospencer on Wed Jul 04 11:39:49 MST 2012
Thanks for your reply. I want to download the usb_serial demo, but the CodeRed IDE says


Quote:
License restriction: Flash image too large for this license.
10: Could not start execution from stop: Ep(-1). PC is out of allowed range for this license.

So I followed the guide to determine the size of the binary:
/opt/codered/lpcxpresso422/lpcxpresso/tools/bin/arm-none-eabi-size RDB1768cmsis2_usb_serial.axf 
   text       data        bss        dec        hex    filename
  17568          8        836      18412       47ec    RDB1768cmsis2_usb_serial.axf
The code size is approximately 18k. I got a license for 128k. Now, why does the download fail?

Thanks again!
0 Kudos
Reply

1,190 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Wed Jul 04 05:46:44 MST 2012
Please see the FAQ at:

http://support.code-red-tech.com/CodeRedWiki/FlashRamSize

Regards,
CodeRedSupport
0 Kudos
Reply