====== n-DAP ======
~~CLOSETOC~~
//**n-DAP**//
{{:nblocks:n-dap-10b.jpg}}
mbed enable board
| License | GPL 2.0 |
| Authors |NC |
| Contributors |MC |
| Based on | |
| Categories | |
| Repo | [[https://bitbucket.org/nimbus_it/n-dap|Bitbucket]] |
n-DAP is an mbed-enabled development board from the n-Blocks family, with a reduced form factor.
{{:nblocks:n-dap-3d.png?400|}}
===== Overview =====
The n-DAP-mbed enabled board had been designed by Nimbus Research Center for users to quickly design and develop next generation Internet of things (IoT) applications. The 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 board provides access to the CPUs, ADC, UART and I2C pins which allow the user to use it as a stand alone development board when programmed with custom firmware.
===DAP interface===
The n-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
* 50 MHz max CPU frequency
* Built-in Nested Vectored Interrupt Controller (NVIC)
* 128 Kbytes of Flash memory
* 12 kB SRAM data memory
* 4 to 32 MHz crystal oscillator
* 12 MHz high-frequency Internal RC oscillator
* Internal low-power, low-frequency WatchDog Oscillator
* 54 GPIOs with configurable pull-up/pull-down resistors
* 8 GPIOs can be selected as edge and level sensitive interrupt sources
* Programmable WatchDog Timer with a dedicated internal WatchDog Oscillator (WDO)
* 10-bit ADC
* UART
* I2C
* USB 2.0 FS
* General purpose Timer (4)
* Single 3.3 V power supply (1.8 V to 3.6 V)
* Temperature Range: -40 ºC to +85 ºC
\\
{{:nblocks:n-dap-3.jpg?|}}
{{:nblocks:n-dap-2.jpg?|}}
=====Main Features Of The Board=====
* Three User LEDs
* Two push buttons
* Two modules(I2C, SPI) on-board
* USB 2.0 FS with Micro connector
* DAP_Link
* Power-supply options: USB 2.0 FS, DAP_Link USB
* Breadboard-able: 1/10 inch connector pitch
* Robust USB mini connector:
\\
=====Board Pinout=====
The board has 12 pins, 6 for each side, If the board is used as SWD interface, only 3 pins for signals and 2 pins for power are needed.\\
{{:nblocks:n-dap-7.jpg?1000|}}
\\
====Block Diagram: Connections to use as a programming/debugging interface====
{{:nblocks:n-dap-8.jpg?700|}}
\\
\\
=====Getting Started=====
* Use the USB lead to connect your mbed to a PC
* The red LED will be on, indicating it has power
* Press the buttons together (SW4 +SW3).Release the button SW4
* Release the button SW3, the CPU would be in ISP mode and appears as Disk with name '''"CRP DISABLD"'''// //
* If the CMSIS-DAP (named also mbed_HDK) is programmed, then after reset n-DAP appears as a disk with the mame ''MBED''// //
{{:nblocks:n-dap-18.jpg?150|}}
{{:nblocks:n-dap-17.jpg?150|}}
\\
\\
=====Examples=====
====Blink example with mbed-CLI====
add the code here
* Check the working target setup
{{:nblocks:mbed-cli-1.jpg?400|}}// //
* Compile
{{:nblocks:mbed-cli-2.jpg?400|}}// //
* Remove previous firmware from CPU flash by deleting the file '''firmware.bin'''// //
{{:nblocks:fw.jpg?600|}}
***Make sure the folder is empty**, if not then the device can not be programmed
* Drag-drop the new compiled .bin file to the mbed board. It should appear as **firmware.bin**
\\
=====Technical References=====
For more information, please refer to:
===LPC11U35===
* [[https://www.nxp.com/docs/en/data-sheet/LPC11U3X.pdf]]
===DAPLink===
* [[https://os.mbed.com/handbook/DAPLink]]
// //
\\
=====Downloads=====
===LPC1768/LPC812===
*[[https://developer.mbed.org/users/chalikias/code/mbed-HDK/| LPC11U35-Firmware for communicating with LPC1768]] (Does not create virtual serial port)
*[[https://os.mbed.com/platforms/SWDAP-LPC11U35/ |SWDAP-LPC11U35 NXP LPC1768 PREBUILD IMAGE]] (Creates a virtual serial port)
===LPC1114FN28===
*[[https://developer.mbed.org/teams/Switch-Science/wiki/Firmware-LPC1114FN28| Firmware LPC1114FN28]] (Firmware to use n-DAP with the non-SMD LPC1114FN28 DIP-28)
===nRF51822===
*[[http://www.seeedstudio.com/wiki/Arch_BLE| Seeed studio wiki Arch BLE]]
*[[http://www.seeedstudio.com/wiki/File:Lpc11u35_nrf51822_if_mbed.bin.zip| Seeed studio wiki File:Lpc11u35 nrf51822 if mbed.bin.zip]]
*[[https://os.mbed.com/platforms/Y5-LPC11U35-MBUG/#bootloader-for-ble-mbug |Bootloader for BLE mbug]]
===NXP K64F===
*[[https://os.mbed.com/platforms/SWDAP-LPC11U35/NXP K64F]]
*[[https://os.mbed.com/media/uploads/chris/lpc11u35_swdap_k64f_if_crc.bin bin]]
===CMSIS-DAP Interface Firmware===
* [[https://docs.mbed.com/docs/handbook/en/latest/CMSIS/Interface_Firmware/ |CMSIS-DAP Interface Firmware]]
\\
=====Related articles in this Wiki=====
*[[ ]]
*[[nblocks:n-lp]]
\\
\\
\\
{{tag>nblock CPU modbus }}