**** Advance Notice ****

This site will be closed on 31 December 2015,

Important Information for users of NXP LPCXpresso

This site is for users of Code Red branded products.

NXP LPCXpresso users should visit the LPCXpresso FAQ's for up-to-date information relevant to that product.

Switching the selected C library

Recent versions of the Code Red IDE provide a simple way of switching the selected C library from Redlib <-> Newlib, and switching the library variant in use from Semihost <-> Nohost <-> None. To switch go to:

Quickstart -> Quick Settings -> Set library type

and select the required library and variant.

Alternatively, you can make the required changes to your project properties manually as follows...

The 2 libraries use different header files. When switching between Newlib and Redlib libraries you must also switch the headers. To do this:

Repeat the above sequence for all Build Configurations (typically Debug and Release).

To then change the libraries actually being linked with (assuming you are using Managed linker scripts):

  1. Select the project in Project Explorer
  2. Right-click and select Properties
  3. Expand C/C++ Build and select Settings
  4. In the Tools settings tab, select Target under MCU Linker
  5. In Use C library, select the Newlib or Redlib library variant that you require (None, Nohost, Semihost).

Again repeat the above sequence for all Build Configurations (typically Debug and Release).

Library variants

For an explanation of the library variants, please see the FAQ What are none, nohost and semihost libraries?.

Library selection if using your own linker scripts

If you are providing your own linker script (you are not using the "Manage linker script" option), you will need to add one of the following entries before the SECTION line in your linker script:

Redlib

Newlib

SwitchingCLibrary (last edited 2012-12-19 09:12:26 by CrSupportAb)