1.. zephyr:board:: lpcxpresso11u68 2 3Overview 4******** 5 6The LPCXpresso11u68 development board uses an NXP LPC11U68 MCU based 7on an ARM Cortex-M0+ core. 8 9Hardware 10******** 11 12The LPCxpresso 11U68 board provides the following hardware components: 13 14- LPC11U68 microcontroller in LQFP100 package 15- ARM Cortex-M0+ 16- Memory: 17 18 - 256KB of flash memory 19 - 32KB of SRAM 20 - 2x2KB of additional SRAM 21 - 4 KB EEPROM 22- USB: 23 24 - USB 2.0 Full-Speed device controller 25- DMA controller 26- 5x USART 27- 2x I2C 28- 2x SSP with DMA support 29- Board power supply: through USB bus or external power supply (3V and 5V) 30- Arduino connectors compatible with the 'Arduino UNO' platform 31- Tri-color user LED, Power On Led, Reset LED 32- Three push buttons: target reset, ISP and user 33 34More information can be found here: 35 36- `LPC11UXX SoC Website`_ 37- `LPC11U6X Datasheet`_ 38- `LPC11U6X Reference Manual`_ 39- `LPCXPRESSO11U68 Website`_ 40- `LPCXPRESSO11U68 Schematics`_ 41 42Supported Features 43================== 44 45The lpcxpresso11U68 supports the following features: 46 47+-----------+------------+-------------------------------------+ 48| Interface | Controller | Driver/Component | 49+===========+============+=====================================+ 50| NVIC | on-chip | nested vector interrupt controller | 51+-----------+------------+-------------------------------------+ 52| SYSTICK | on-chip | systick | 53+-----------+------------+-------------------------------------+ 54| IOCON | on-chip | pinmux | 55+-----------+------------+-------------------------------------+ 56| CLOCK | on-chip | clock and reset control | 57+-----------+------------+-------------------------------------+ 58| GPIO | on-chip | gpio | 59+-----------+------------+-------------------------------------+ 60| I2C | on-chip | i2c master/slave controller | 61+-----------+------------+-------------------------------------+ 62| UART | on-chip | serial port-polling; | 63| | | serial port interrupt | 64+-----------+------------+-------------------------------------+ 65| EEPROM | on-chip | eeprom | 66+-----------+------------+-------------------------------------+ 67 68Other hardware is not yet supported on Zephyr. 69 70Connections and IOs 71=================== 72 73The IOCON controller can be used to configure the LPC11U68 pins. 74 75+---------+-----------------+----------------------------+ 76| Name | Function | Usage | 77+=========+=================+============================+ 78| PIO2_11 | UART | USART RX | 79+---------+-----------------+----------------------------+ 80| PIO2_12 | UART | USART TX | 81+---------+-----------------+----------------------------+ 82| PIO2_16 | GPIO | GREEN LED | 83+---------+-----------------+----------------------------+ 84| PIO2_17 | GPIO | RED LED | 85+---------+-----------------+----------------------------+ 86| PIO2_18 | GPIO | BLUE_LED | 87+---------+-----------------+----------------------------+ 88| PIO0_4 | I2C | I2C SCL | 89+---------+-----------------+----------------------------+ 90| PIO0_5 | I2C | I2C SDA | 91+---------+-----------------+----------------------------+ 92 93 94Programming and Debugging 95************************* 96 97Flashing 98======== 99 100The LPCXpresso11U68 board can be flashed by using the on-board LPC-Link2 debug 101probe (based on a NXP LPC43xx MCU). This MCU provides either a CMSIS-DAP or 102a J-Link interface. It depends on the embedded firmware image. The default 103OpenOCD configuration supports the CMSIS-DAP interface. If you want to 104switch to J-Link, then you need to edit the 105:zephyr_file:`boards/nxp/lpcxpresso11u68/support/openocd.cfg` file and to replace:: 106 107 source [find interface/cmsis-dap.cfg] 108 109with:: 110 111 source [find interface/jlink.cfg] 112 113.. note:: 114 The firmware image of the LPC-Link2 can be updated using the 115 `LPCScrypt tool <https://www.nxp.com/design/microcontrollers-developer-resources/lpc-microcontroller-utilities/lpcscrypt-v2-1-1:LPCSCRYPT>`_. 116 117.. note:: 118 The `Mbed project <https://os.mbed.com>`_ also provides some firmware images 119 `here <https://os.mbed.com/teams/NXP/wiki/Updating-LPCXpresso-firmware>`_. 120 In addition to a CMSIS-DAP interface, they also provide a convenient update 121 mechanism through a pseudo USB disk. 122 123Here are the steps to flash a firmware you built into a LPCXpresso11U68 board: 124 125#. Connect the "Link" micro-B USB port to your host computer. 126#. Next, simply run the ``west flash`` command 127 128Debugging 129========= 130 131Please refer to the `Flashing`_ section and run the ``west debug`` command 132instead of ``west flash``. 133 134References 135********** 136 137- `LPC11UXX SoC Website`_ 138- `LPC11U6X Datasheet`_ 139- `LPC11U6X Reference Manual`_ 140- `LPCXPRESSO11U68 Website`_ 141- `LPCXPRESSO11U68 Schematics`_ 142 143.. _LPC11UXX SoC Website: 144 https://www.nxp.com/products/processors-and-microcontrollers/arm-microcontrollers/general-purpose-mcus/lpc1100-cortex-m0-plus-m0/scalable-entry-level-32-bit-microcontroller-mcu-based-on-arm-cortex-m0-plus-and-cortex-m0-cores:LPC11U00 145 146.. _LPC11U6X Datasheet: 147 https://www.nxp.com/docs/en/data-sheet/LPC11U6X.pdf 148 149.. _LPC11U6x Reference Manual: 150 https://www.nxp.com/webapp/Download?colCode=UM10732 151 152.. _LPCXPRESSO11U68 Website: 153 https://www.nxp.com/design/microcontrollers-developer-resources/lpc-microcontroller-utilities/lpcxpresso-board-for-lpc11u68:OM13058 154 155.. _LPCXPRESSO11U68 Schematics: 156 https://www.nxp.com/downloads/en/schematics/LPC11U68_Xpresso_v2_Schematic_RevC_1.pdf 157