NOTICE: This website will be shut down in the near future. Product content has moved to Forum content and FAQs have been moved to We encourage you to create a user account on to use the new community forums and access NXP microcontroller content. We greatly appreciate your contributions and look forward to seeing you at our new web location.


Porting Code from other toolchains

lpcxpresso-support's picture

Generally where example code is provided for another toolchain it will normally port across to the LPCXpresso IDE fairly easily. Simply create a new project within the LPCXpresso IDE, then copy the required source files across.

A few things to watch:

  • Sometimes, depending upon the original project, you may need to produce your own linker script, rather than use the default linker script created automatically by the LPCXpresso IDE. Details of how to go about doing this can be found in the FAQ Using your own linker scripts.

  • There are sometimes slight changes required to sources due to "extensions to the C language" used by source code. Typical examples are:
  • Some examples may contain conditionally compiling code blocks (#ifdef .. #else .. #endif). You may need to check the actual source code, any supplied documentation, or project/make files from the original target toolchain, to confirm what symbols you need to define to get the code to build appropriately for your needs.

Your rating: None