LPCOpen Platform  v1.03
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Include paths for LPCOpen Chip and Board layer code

Include paths for LPCOpen code and projects
For IP, Chip, and Board layer code, these are the required include paths needed to build a specific platform.

Chip layer paths - paths needed to build the IP and Chip layers
All Chip layer code requires the following paths:

  • "<LPCOPEN_PATH>\software\CMSIS\CMSIS\Include"
  • "<LPCOPEN_PATH>\software\lpc_core\lpc_ip"
  • "<LPCOPEN_PATH>\software\lpc_core\lpc_chip\chip_common"

LPC8xx Chip code also requires the following path:

  • "<LPCOPEN_PATH>\software\lpc_core\lpc_chip\chip_lpc8xx"

LPC11xx Chip code also requires the following path:

  • "<LPCOPEN_PATH>\software\lpc_core\lpc_chip\chip_lpc11xx"

LPC13xx Chip code also requires the following path:

  • "<LPCOPEN_PATH>\software\lpc_core\lpc_chip\chip_lpc13xx"

LPC17xx and LPC40xx Chip code also requires the following path:

  • "<LPCOPEN_PATH>\software\lpc_core\lpc_chip\chip_lpc17xx_40xx"

LPC18xx and LPC43xx Chip code also requires the following path:

  • "<LPCOPEN_PATH>\software\lpc_core\lpc_chip\chip_lpc18xx_43xx"

Board layer paths for supported boards - paths needed to build the Board layer
The Board layer needs the Chip layer paths plus the common board code path and board specific paths.

All Board layer code requires the following path:

  • "<LPCOPEN_PATH>\software\lpc_core\lpc_boards\board_common"

Supported boards also require the board specific code path (path to the board.h file for the supported board).

  • "<LPCOPEN_PATH>\software\lpc_core\lpc_boards\board_<CHIP>\<board_name>"

Some boards share the same code, but may have multiple variants of the board with different devices on it. For example, the Keil LPC1857 and Keil LPC4357 boards share the same board code in the same directory with a single board.h file. Because each platform needs a unique sys_config.h file, these types of boards will also usually have a sub-directory under it's board file directory that contains the sys_config.h file named for that board. If the sys_config.h is not in the same directory as board.h, this is likely the case. For these boards, the path to the sys_config.h file is also needed.

  • "<LPCOPEN_PATH>\software\lpc_core\lpc_boards\board_<CHIP>\<board_name>\<board_var>"

Example of all the include paths for the NGX Xplorere LPC4330 board
The NGX Xplorer LPC4330 board uses the LPC18xx/43xx Chip library and the the 'ngx_xplorer_18304330' board directory. The board code is the same for both the NGX LPC1830 and NGX LPC4330 boards, so another sub-direcotyr under the board directory has the sys_config.h file specific to the LPC4330 board. A full list of all the needed include paths is shown below to build a single library containing the IP, Chip, and Board layer code:

  • "<LPCOPEN_PATH>\software\CMSIS\CMSIS\Include"
  • "<LPCOPEN_PATH>\software\lpc_core\lpc_ip"
  • "<LPCOPEN_PATH>\software\lpc_core\lpc_chip\chip_common"
  • "<LPCOPEN_PATH>\software\lpc_core\lpc_chip\chip_lpc18xx_43xx"
  • "<LPCOPEN_PATH>\software\lpc_core\lpc_boards\board_common"
  • "<LPCOPEN_PATH>\software\lpc_core\lpc_boards\boards_18xx_43xx\ngx_xplorer_18304330"
  • "<LPCOPEN_PATH>\software\lpc_core\lpc_boards\boards_18xx_43xx\ngx_xplorer_18304330\ngx_xplorer_4330"