This guide will walk you through how to get up and running with the NM180100 Boards in the Arduino IDE.
- NM180100EVB or NM180410
- A USB to micro-USB cable to connect the board
- A Linux or Windows machine
- Arduino IDE
- ARM GNU Toolchain
- Segger J-Link
- Python
Expand for the detailed software installation instructions
The Arduino IDE is where you will write the code that will run on the NM180100.
The ARM GNU Toolchain is used for compiling and building.
Windows
- Download and install the Windows hosted cross toolchains.
arm-gnu-toolchain-11.3.rel1-mingw-w64-i686-arm-none-eabi.exe
- Add the compiler to your PATH using the Add path to environment variable checkbox.
Linux
- Download the Linux hosted cross toolchains
arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-eabi.tar.xz
- Extract the toolchain files to the directory where it will be stored. For example, to install the toolchain to
/opttype the following
sudo tar -xvf arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-eabi.tar.xz -C /opt
- Add the compiler to your PATH.
SEGGER J-Link is used to program and debug the NM180100.
Download J-Link Software and Documentation Pack
Details
-
Download the official J-Link Software and Documentation pack. The exact version will depend on your operating system. Download the version that applies to your operating system.
-
Add J-Link to your PATH.
Windows
-
Download the latest version of Python 3 from the Downloads page.
-
Use the Installation Wizard to add Python 3 to your PATH.
- Verify that the installation was successful by running the following command in a command prompt:
python --version
Linux
Python is usually pre-installed in Linux. If not, you can run the following command in a terminal to install Python
sudo apt-get install python3
Windows/Linux
- To install the latest version, execute the following in a command prompt:
python -mpip install --pre -U git+https://github.com/pyocd/pyOCD.git
- This will install pyOCD under the Python Scripts directory. Ensure that this directory is added to your PATH.
To get your code to run on the NM180100, you need to install the corresponding Arduino Core.
-
Open the Releases Section of the NM180100 Arduino Core github page.
-
Find the most recent release, which will be at the top, and open the Assets dropdown.
-
Right click on the .json file, and copy the link address.
-
Open the Arduino IDE.
-
Open the Preferences menu under File > Preferences.
-
Paste the link address in the Additional boards manager URLs box.
-
Click OK
-
In the sidebar, open the Boards Manager by clicking the second icon from the top. Alternatively, you can click on Tools > Board > Boards Manager.
- In the search bar, type in NM180100, and the board should appear.
-
Click INSTALL
-
Now, select your board. For example, if you have an NM180100EVB, click the Tools menu > Board > Northern Mechatronics NM180100 Boards > NM180100 Evaluation Board.
And that's it! You are now ready to start writing code and running it on your NM180100 board.
If you are new to this, and want a small example to use as a stepping stone to begin your journey, try this one!
Arduino provides some built in examples to help get you off the ground. Go open the Blink example in File > Examples > 01.Basics > Blink.
In order to run the Blink code on the board, ensure your board is plugged in and turned on. The power switch is located next to the micro-USB port on the board, and the on position is when the switch is flipped away from the micro-USB port. When the board is plugged in and turned on, one blue light and five orange lights should be lit up.
In the top left, the Check Mark
icon compiles the code and checks for errors. The Arrow
icon compiles the code and loads it onto the board.
Click the Arrow
button to load and run the Blink code on your board. Once the load completes, you should see one of the orange lights on the board start to blink. If nothing is happening, try pressing the Reset button situated next to the blue light.
The Arduino Getting Started Guide provides more content on what Arduino is, and how it works.
The Arduino Programming Language Reference provides useful information that will help you write code for your board.







