This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
nblocks:n-pro-dap [2020/02/17 07:53] faizan |
nblocks:n-pro-dap [2020/02/27 07:43] (current) engineer |
||
---|---|---|---|
Line 2: | Line 2: | ||
~~CLOSETOC~~ | ~~CLOSETOC~~ | ||
<WRAP no_pdf > | <WRAP no_pdf > | ||
- | **this page is work in progress** | + | |
Line 10: | Line 10: | ||
{{:nblocks:n-pro-dap-09.jpg}} | {{:nblocks:n-pro-dap-09.jpg}} | ||
<WRAP centeralign> | <WRAP centeralign> | ||
- | n-PRO-00</WRAP> | + | n-PRO-DAP</WRAP> |
| License | GPL 2.0 | | | License | GPL 2.0 | | ||
| Status | Tested | | | Status | Tested | | ||
Line 19: | Line 19: | ||
</WRAP> | </WRAP> | ||
- | [[nblocks:n-PRO-DAP|n-PRO-DAP]] is a development motherboard for the n-Blocks. | + | [[nblocks:n-PRO-DAP|n-PRO-DAP]] is a development support board for the n-Blocks. |
<WRAP centeralign>{{:nblocks:n-pro-dap-02.jpg?300|}}</WRAP> | <WRAP centeralign>{{:nblocks:n-pro-dap-02.jpg?300|}}</WRAP> | ||
===== Overview===== | ===== Overview===== | ||
- | <poem> | + | [[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. |
- | [[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 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. | + | |
- | </poem> | + | |
+ | ===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 ==== | ===== MCU Features ==== | ||
Line 65: | Line 72: | ||
=====Main Features Of The Board===== | =====Main Features Of The Board===== | ||
<WRAP left 600px :en> | <WRAP left 600px :en> | ||
- | * Small size | + | * Three User LEDs |
+ | * USB 2.0 FS with Micro connector | ||
* Drag-and-drop programming | * Drag-and-drop programming | ||
* SWD/JTAG connector | * SWD/JTAG connector | ||
- | * 5V USB or 4.5-5.5V supply | + | |
| | ||
</WRAP> | </WRAP> | ||
- | * Built-in USB drag 'n' drop FLASH programmer | + | * Built-in USB drag 'n' drop FLASH programmer |
* Reset and Bootloader enable push-buttons | * Reset and Bootloader enable push-buttons | ||
* Cortex debug interface connector | * Cortex debug interface connector | ||
+ | * 5V USB or 4.5-5.5V supply | ||
Line 80: | Line 89: | ||
=====Board Pinout===== | =====Board Pinout===== | ||
- | **to be updated** | ||
<WRAP centeralign>{{:nblocks:n-pro-dap-01.jpg?300|}}</WRAP> | <WRAP centeralign>{{:nblocks:n-pro-dap-01.jpg?300|}}</WRAP> | ||
+ | \\ | ||
+ | <WRAP centeralign>{{:nblocks:n-pro-dap-nbusa.jpg|}}</WRAP> | ||
+ | \\ | ||
+ | <WRAP centeralign>{{:nblocks:n-pro-dap-nbusb.jpg|}} </WRAP> | ||
+ | \\ | ||
+ | <WRAP centeralign>{{:nblocks:n-pro-dap-nbusc.jpg|}} </WRAP> | ||
+ | |||
+ | \\ | ||
+ | <WRAP centeralign>{{:nblocks:n-pro-dap-nbusd.jpg|}} </WRAP> | ||
+ | |||
\\ | \\ | ||
Line 93: | Line 111: | ||
\\ | \\ | ||
- | ===== Geting started===== | + | ===== Getting started===== |
- | **to be updated** | + | ===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 | ||
+ | <code c++> | ||
+ | #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); | ||
+ | } | ||
+ | } | ||
+ | </code> | ||
+ | * 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. | ||
\\ | \\ |