====== n-LP =====
page building in progress, based on n-DAP... \\
Form CP12 with 20 pins \\
Programmable via JTAG or DFU
//**n-DAP**//
{{n-dap-v3-orthographic.jpg?100}}
mbed enable board
| License | GPL 2.0 |
| Authors |NC |
| Contributors |MC |
| Based on | |
| Categories | |
| Repo | [[https://bitbucket.org/nimbus_it/n-dap|Bitbucket]] |
* Small generic processor board, Low Power cortex M4
~~TODOLIST ns:nblocks:n-dap completed:no~~
\\
=====Block Diagram, used as programming/debugging interface=====
{{:nblocks:n-dap-8.jpg?700|}}
\\
\\
=====Pinout=====
{{:nblocks:n-dap-7.jpg?1000|}}
* 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\\
\\
=====Background=====
'''LPC11U35''' based CMSIS-DAP programming of ARM Cortex devices via SWD. Appears as a Disk to PC. Tested with mbed firmware.\\
Provides '''mbed-enable''' capability and can be designed-in as an SMD component or used as external programmer/debuger. {{:nblocks:n-dap-4.jpg?|}}\\
Deployed as main CPU in use cases like MODBUS host and client controller, Thermocouple and load-cell interface.\\
\\
\\
\\
=====Features=====
{{:nblocks:n-dap-3.jpg?|}}
{{:nblocks:n-dap-2.jpg?|}}
*Breadboard-able: 1/10 inch connector pitch
*Robust USB mini connector:
\\
\\
===== n-DAP as small application processor board =====
====Blink example with mbed-CLI====
* Checking the working target setup// //
{{:nblocks:mbed-cli-1.jpg?400|}}// //
* compile// //
{{:nblocks:mbed-cli-2.jpg?400|}}// //
* After pressing [SW4+SW3], then [SW3 only], then [release SW3],CPU is in ISP mode and appears as Disk with name '''"CRP DISABLD"'''// //
* Remove previous firmware from CPU flash by deleting the file '''firmware.bin'''// //
***The folder should be empty**, if not then the device can not be programmed// //
*Then just drag-drop the new compiled .bin to the mbed board. It should appear as **firmware.bin**
\\
\\
=====CMSIS-DAP Interface Firmware=====
This is "mbed-enable Firmware"
*[[https://docs.mbed.com/docs/handbook/en/latest/CMSIS/Interface_Firmware/ |CMSIS-DAP Interface Firmware]]\\
The CMSIS-DAP Interface Firmware provides:
* **USB Mass Storage Device for drag and drop programming of the target chip**
* **USB Communications Device Class for Serial Communication with the target chip**
* **USB HID CMSIS-DAP for debugging**
* **USB bootloader for updating the interface firmware itself**\\
When n-DAP flash memory is empty or when in ISP mode it appears as a disk named ''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|}}
\\
{{:nblocks:n-dap-16.jpg?150|}}
===LPC1768===
*[[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]] Does create a virtual serial port **Tested and worked!**
====LPC812====
The same as LPC1768 above
====LPC1114FN28====
*Firmware to use n-DAP with the non-SMD LPC1114FN28 DIP-28 [[https://developer.mbed.org/teams/Switch-Science/wiki/Firmware-LPC1114FN28| Firmware LPC1114FN28]]
====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]] **Tested and worked!**
====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]]
*???? CAN IT WORK FOR TEENSY K20???
\\
\\
=====Gallery=====
{{:nblocks:n-dap-9b.jpg?433|}}
{{:nblocks:n-dap-10.jpg?400|}}
{{:nblocks:n-dap-11.jpg?400|}}
{{:nblocks:n-dap-12.jpg?400|}}
{{:nblocks:n-dap-13.jpg?400|}}
{{:nblocks:n-dap-14.jpg?400|}}
{{:nblocks:n-dap-15.jpg?400|}}
=====Related articles in this Wiki=====
*[[ ]]
\\
\\
\\
-----
*Update n-DAP photo
*Update n-DAP pinout photo: P0.17->P0.22 ADC0; P0.16->P0.12 ADC1; 3.3V->3.3V-OUT; PIN4->5V-FROM-USB-OUT
*Move pinout spreadsheet to pcb repository
*Add photo of assembled boards
*Add block-diagram for CMSIS-DAP programming
{{tag>nblock CPU modbus }}