LPCOPEN-SOFTWARE-FOR-LPC43XX: LPCOpen Software Development Platform LPC43XX
Jump To
Overview
To quickly get started with LPCopen v2.xx, check out the LPCOpen v2.xx quickstart guides. The quickstart guides provide basic example bring-up procedures for IAR Embedded Workbench, Keil uVision4 (MDK), and LPCXpresso toolchains.
Latest available LPCOpen 3.xx software package downloads
| Supported board(s)/devices(s) | Software Download link | Toolchain 1 | Documentation download link 2 | Debugger(s) 3 | Related downloads | Version history and known issues |
|---|---|---|---|---|---|---|
| Hitex LPC4350 board | v3.02 Release Date: 12/21/2017 | LPCXpresso v8.2.0 | Windows help file (chm) HTML help package | CMSIS-DAP (LPC-Link2) | Windows USB drivers LPCSPIFI Library Source | History |
| v3.02 Release Date: 12/21/2017 | IAR EWARM 7.70.11486 Keil MDK-Arm ® v5.21.0 | ULINK/ME (Keil I-Jet (IAR) | ||||
| v3.02 Release Date: 12/21/2017 | LPCXpresso v8.2.0 | Windows help file (chm) HTML help package | CMSIS-DAP (LPC-Link2) | Windows USB drivers LPCSPIFI Library Source | History | |
| v3.02 Release Date: 12/21/2017 | IAR EWARM 7.70.11486 Keil MDK-Arm ® v5.21.0 | CMSIS-DAP (Link-II) | ||||
| Keil MCB4300 (LPC4357) board | v3.02 Release Date: 12/21/2017 | LPCXpresso v8.2.0 | Windows help file (chm) HTML help package | CMSIS-DAP (LPC-Link2) | Windows USB drivers emWin Graphics Library LPCSPIFI Library Source | History |
| v3.02 Release Date: 12/21/2017 | IAR EWARM 7.70.11486 Keil MDK-Arm ® v5.21.0 | ULINK/ME (Keil I-Jet (IAR) | ||||
| NGX Xplorer LPC4330 board | v3.02 Release Date: 12/21/2017 | LPCXpresso v8.2.0 | Windows help file (chm) HTML help package | CMSIS-DAP (LPC-Link2) | Windows USB drivers LPCSPIFI Library Source | History |
| v3.02 Release Date: 12/21/2017 | IAR EWARM 7.70.11486 Keil MDK-Arm ® v5.21.0 | ULINK/ME (Keil I-Jet (IAR) | ||||
| LPC-Link 2 (LPC4370) board | v3.02 Release Date: 12/21/2017 | LPCXpresso v8.2.0 | Windows help file (chm) HTML help package | CMSIS-DAP (LPC-Link2) | Windows USB drivers LPCSPIFI Library Source | History |
| v3.02 Release Date: 12/21/2017 | IAR EWARM 7.70.11486 Keil MDK-Arm ® v5.21.0 | ULINK/ME (Keil I-Jet (IAR) |
¹Package has been tested with this specific toolchain version, but normally also should work with later versions of the toolchain.
²Documentation packages consists of software API documentation, example descriptions, and board information.
³Projects are setup for this debugger as a default. Projects can be easily setup with other debuggers by changing the project settings.
LPCOPEN-SOFTWARE-FOR-LPC13XX: LPCOpen Software Development Platform LPC13XX
Jump To
Overview
To quickly get started with LPCopen v2.xx, check out the LPCOpen v2.xx quickstart guides. The quickstart guides provide basic example bring-up procedures for IAR Embedded Workbench, Keil uVision4 (MDK), and LPCXpresso toolchains.
Latest available LPCOpen 2.xx software package downloads
| Supported Board(s) /Devices(s) | Software Download link | Toolchain¹ | Documentation download link² | Debugger(s)³ | Related downloads | Version history and known issues |
|---|---|---|---|---|---|---|
| LPCXpreso LPC1343 board | v2.05 Release Date 12/20/2013 | LPCXpresso v6.1.0_164 | Windows help file (chm) HTML help package | CMSIS-DAP (LPC-Link2) | Windows USB drivers | History |
| v2.05 Release Date 09/01/2015 | IAR EWARM 6.70.1 Keil MDK-Arm ® v4.73a | ULINK/ME (Keil) I-Jet (IAR) | ||||
| LPCXpreso LPC1347 board | v2.05 Release Date 12/20/2013 | LPCXpresso v6.1.0_164 | CMSIS-DAP (LPC-Link2) | Windows USB drivers | History | |
| v2.05 Release Date 12/20/2013 | IAR EWARM 6.70.1 Keil MDK- Arm ® v4.73a | ULINK/ME (Keil) I-Jet (IAR) |
¹Package has been tested with this specific toolchain version, but normally also should work with later versions of the toolchain.
²Documentation packages consists of software API documentation, example descriptions, and board information.
³Projects are setup for this debugger as a default. Projects can be easily setup with other debuggers by changing the project settings.
LPCOpen Virtual COM / CDC Example
Using the USB Drivers that are Built Into the LPC ROM
LPCOpen includes an interface to the USB drivers that are built into the LPC1800 hardware itself. This excellent hardware feature allows you to make use of pre-tested and pre-integrated USB drivers without even needing to allocate any valuable Flash memory space to their implementation.
The instructions on this page describe how to import and use LPCOpen’s usbd_rom_cdc_vcom project to show how easy it is to create a USB virtual COM / CDC port on an LPC1800 microcontroller. It is assumed that all preceding steps have already been completed, so the necessary tools have already been installed, and the chip support and board support library projects have already been imported.
The usbd_rom_cdc_vcom project does not use FreeRTOS. Following pages demonstrate both how to incorporate the same virtual COM port functionality into a FreeRTOS application, and how FreeRTOS can be used to make the USB virtual COM / CDC port event driven to massively improve its run time efficiency.
The video on the introductory page shows the Virtual COM / CDC driver being used to provide input and output to the FreeRTOS+CLI command line interface.
The workspace should now include three projects. Right click on the usbd_rom_cdc_vcom project, then select ‘Build Project’ from the pop up menu. The LPC1800 chip and board support packages are dependencies of the usbd_rom_cdc_vcom project, so all three projects will get built.
- usbd_rom_cdc_vcom is highlighted in the Eclipse project explorer window.
- The LPC18xx Xplorer microcontroller evaluation board is connected to your host computer though an appropriate debug adaptor (for example an LPC Link2).
- The LPC18xx Xplorer microcontroller evaluation board is powered using the USB connector that is at the opposite end of the board to the Ethernet connector.
… then click the ‘Debug usbd_rom_cdc_vcom’ button visible in the ‘Start Here’ window (see the image below). The microcontroller’s flash memory will be programmed and the debugger will break at the start of the main() function.
Select ‘Resume’ from LPCXpresso’s ‘Run’ menu to run the application. The host computer will detect the connection of a new USB device and attempt to install a virtual COM port USB driver. A link to an appropriate driver is provided on the same LPCOpen web page from which the LPCOpen .zip file was downloaded – search for “USB Drivers” on the appropriate download page to locate the link.
A quick inspection of the source code shows that the example sends “Hello World!!” to the USB port when it first connects, then simply echos back any characters that are received. To test this, open a dumb terminal program such as Hyperterminal or Tera Term, selecting to connect to which ever COM port has enumerated as “LPC USB VCom Port (COMx)”, then start to type text into the terminal window.
