======n-PRO-DAP====== ~~CLOSETOC~~ ~~TODOLIST ns:nblocks:n-pro-DAPcompleted:no~~ //**n-PRO-DAP**// {{:nblocks:n-pro-dap-09.jpg}} n-PRO-DAP | License | GPL 2.0 | | Status | Tested | | Buy at: | | | Categories | | | Hardware repo | [[https://bitbucket.org/nimbus_it/n-pro-00|Bitbucket]] | | Firmware repo | [[https://bitbucket.org/nimbus_it/n-pro-00|Bitbucket]] | [[nblocks:n-PRO-DAP|n-PRO-DAP]] is a development support board for the n-Blocks. {{:nblocks:n-pro-dap-02.jpg?300|}} ===== Overview===== [[nblocks:n-PRO-DAP|n-PRO-DAP]] board can facilitate USB drag and drop firmware programming of ARM based CPU boards. It comes with the NXP Semiconductor's LPC11U35 MCU which belongs to the enhanced line of LPC11U3x, ARM-Cortex M0 based, low-cost 32-bit MCU family. The LPC11U35 operate at CPU frequencies of up to 50 MHz and brings unparalleled design flexibility and seamless integration to today’s prototyping and development solutions. The low profile connectors allows the user to connect peripheral boards as and when required. ===DAP interface=== The n-PRO-DAP (if flashed with a binary image) behaves as a USB to JTAG/SWD bridge between the computer and target's debug access port, using the ARM CMSIS DAP for user friendly programming and debugging. It enables firmware development for n-Blocks boards using the ARM mbed platform and can also be used with industry standard tools such as Keil and IAR. The CMSIS-DAP Interface Firmware provides: * **USB MSC Mass Storage Device for drag and drop programming of the target chip** * **USB CDC Communications Device Class for Serial Communication with the target chip** * **USB HID CMSIS-DAP for debugging** * **USB bootloader for updating the interface firmware itself**\\ \\ ===== MCU Features ==== * Arm® Cortex-M0 processor, running at frequencies of up to 50 MHz * Arm Cortex-M0 built-in Nested Vectored Interrupt Controller (NVIC) * Up to 128 kB on-chip flash memory, 4 kB on-chip EEPROM data memory * Up to 12 kB SRAM data memory, 16 kB boot ROM * In-System Programming (ISP) and In-Application Programming (IAP) * USB 2.0 full-speed device controller * USARTs with fractional baud rate generation, internal FIFO, and RS-485/9 support * 2 × SSP controllers with FIFO and multi-protocol capabilities * I2C bus interface * I/O Handler for hardware emulation of serial interfaces and DMA * 54 × GPIOs with configurable pull-up/down resistors * High-current source output driver (20 mA) on one pin * High-current sink driver (20 mA) on true open-drain pins * 10-bit ADC with input multiplexing among eight pins * 4 × general purpose timers/counters * Standard JTAG (Joint Test Action Group) test interface for BSDL * Serial Wire Debug * Integrated PMU (Power Management Unit) * 4 reduced power modes: Sleep, Deep-sleep, Power-down, and Deep power-down * Single 3.3 V power supply (2.4 V to 3.6 V) * 4 × external interrupt inputs configurable as edge/level sensitive * Non-maskable Interrupt (NMI) input * Processor wake-up from Power-down mode via any interrupt * Brownout detect with separate threshold for interrupt and forced reset * Power-On Reset (POR) * Crystal oscillator with an operating range of 1 MHz to 25 MHz * 12 MHz internal RC oscillator, can be used as a system clock * Unique device serial number for identification purposes \\ \\ =====Main Features Of The Board===== * Three User LEDs * USB 2.0 FS with Micro connector * Drag-and-drop programming * SWD/JTAG connector * Built-in USB drag 'n' drop FLASH programmer * Reset and Bootloader enable push-buttons * Cortex debug interface connector * 5V USB or 4.5-5.5V supply \\ \\ =====Board Pinout===== {{:nblocks:n-pro-dap-01.jpg?300|}} \\ {{:nblocks:n-pro-dap-nbusa.jpg|}} \\ {{:nblocks:n-pro-dap-nbusb.jpg|}} \\ {{:nblocks:n-pro-dap-nbusc.jpg|}} \\ {{:nblocks:n-pro-dap-nbusd.jpg|}} \\ \\ \\ ===== Getting started===== ===Programming n-PRO-10 using n-PRO-DAP=== * Plug the USB cable to the n-PRO-DAP board. * Connect the n-PRO-10 board on top using the connectors. {{:nblocks:n-pro-dap-gs2.jpg?400|}} * After a few seconds a mass storage device named DAPLINK will show up on your computer {{:nblocks:n-pro-dap-gs1.jpg?700|}} * Select target on mbed online compiler * Create a blinky program like below #include "mbed.h" DigitalOut led1(P0_20); // main() runs in its own thread in the OS int main() { while (true) { led1 = !led1; wait(0.05); } } * Download the bin file from the mbed compiler. * Drag and drop the file on the DAPLINK. * Press RESET, and the n-PRO-10 board will now be running your code. \\ \\ =====Related articles in this Wiki===== *[[ ]] {{tag> RF CPU nblock BLE nsensorRF}}