This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
nblocks:n-pro-10 [2020/02/07 11:40] faizan |
nblocks:n-pro-10 [2020/02/07 12:09] (current) faizan |
||
---|---|---|---|
Line 112: | Line 112: | ||
===== Getting started===== | ===== Getting started===== | ||
- | ===Blinky with mbed compiler=== | ||
* Connect the board to the battery or power supply. | * Connect the board to the battery or power supply. | ||
* Press the reset button, green LED will indicate that you have power connected. | * Press the reset button, green LED will indicate that you have power connected. | ||
* Select target on mbed online compiler | * Select target on mbed online compiler | ||
- | * Create a blinky program like below | + | * Create a blinky program like below. Compile and it will get downloaded. |
<code c++> | <code c++> | ||
#include "mbed.h" | #include "mbed.h" | ||
Line 131: | Line 130: | ||
} | } | ||
</code> | </code> | ||
- | * Delete the existing firmware.bin file, and replace it with the .bin file you downloaded from the mbed compiler. | + | *Connect the board to j-link. |
+ | {{:nblocks:n-pro-10-p1.jpg?400|}} | ||
+ | * Open J-Flash Lite, select the device. | ||
+ | {{:nblocks:n-pro-10-p0.jpg?600|}} | ||
+ | * Select the bin file downloaded from mbed compiler. | ||
+ | {{:nblocks:n-pro-10-p2.jpg?600|}} | ||
+ | * Click on Program device | ||
+ | {{:nblocks:n-pro-10-p3.jpg?400|}} | ||
* Press RESET, and the board will now be running your code. | * Press RESET, and the board will now be running your code. | ||
- | {{:nblocks:n-pro-10-p1.jpg?400|}} | + | |
==USB Serial Port== | ==USB Serial Port== | ||
* To use the debug serial port out of the LPC1769 to emulate a serial port over USB see example [[https://developer.mbed.org/handbook/USBSerial|here.]] | * To use the debug serial port out of the LPC1769 to emulate a serial port over USB see example [[https://developer.mbed.org/handbook/USBSerial|here.]] | ||
\\ | \\ | ||
\\ | \\ | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
=====References===== | =====References===== |