LPCXPRESSO-What files are generated during project Build ?

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

LPCXPRESSO-What files are generated during project Build ?

300 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Karthik Venkatesh on Sun Nov 29 19:55:27 MST 2015
Hi,

I am new to LPCXpresso IDE.

I am trying to understand what files are created during a project build.

I opened an in-built example project called "periph-blinky" and when i did build, it create a folder called "Release".

Inside "Release" folder, I could see files like

1. makefile

2. objects.mk

3. periph_blinky.map

4. periph_blinky_Release.ld

5. periph_blinky_Release_library.ld

6. periph_blinky_Release_memory.ld

7. periph_blinky_Release_old.ld

8. sources.mk


I would like to know what each of the above files mean.

Please help.


Thanks and regards,
Karthik
0 Kudos
3 Replies

279 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by MikeSimmonds on Mon Nov 30 04:21:54 MST 2015
The .map files (text) is output as part of the link (final) step of the build process.
It shows the addresses and sizes of the various items (i.e. code and data etc.)
that make up the project.

It is a sort of report about the final download image.

This can help with various issues such as 'code too big', overruning memory (stack and heap),
and where in the address space the various functions and variables reside.

If all is OK, you need not look at it other than for interrest.

Finally, the axf file is the build result which is used by the flash program to burn the program
into the device. This is also used by the debugger to get the 'symbols' for debugging.

Cheers, Mike.
0 Kudos

279 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Karthik Venkatesh on Mon Nov 30 01:37:52 MST 2015
Hi,

Thanks for the quick answer. I really appreciate it.

So I understand makefile, objects.mk, sources.mk are make files that are used to execute various build command.

All .ld files are the linker files.

But what is the purpose of .map ?


Regards,
Karthik

0 Kudos

279 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Mon Nov 30 00:59:00 MST 2015
These files are all auto-generated by LPCXpresso IDE.

.ld files are linker script files - which control the layout of your code and data in memory. As a starting point for more information, read:

[list]
  [*]https://www.lpcware.com/content/faq/lpcxpresso/own-linker-scripts
[/list]

The other files are the files used to carry out the build of your project, which is done by the make utility.

[list]
  [*]https://en.wikipedia.org/wiki/Make_(software)
[/list]

Regards,
LPCXpresso Support
0 Kudos