DualMCU Setup#

The environment setup is the first step to start working with the DualMCU ONE board. The following steps will guide you through the setup process.

  1. Install the required software

  2. Set up the development environment

  3. Install the required libraries

  4. Set up the board

Install the required software#

The following software is required to start working with the DualMCU ONE board:

  1. Python 3.7 or later: Python is required to run the scripts and tools provided by the DualMCU ONE board.

  2. Git: Git is required to clone the DualMCU ONE board repository.

  3. MinGW: MinGW is a native Windows port of the GNU Compiler Collection (GCC), with freely distributable import libraries and header files for building native Windows applications.

  4. Visual Studio Code: Visual Studio Code is a code editor that is required to write and compile the code.

This section will guide you through the installation process of the required software.

Python 3.7 or later#

Python is a programming language that is required to run the scripts and tools,

To install Python, follow the instructions below:

  1. Download the Python installer from the:

  2. Run the installer and follow the instructions.

_images/python.png

Fig. 10 Add python to PATH#

Attention

Make sure to check the box that says “Add Python to PATH” during the installation process.

Open a terminal and run the following command to verify the installation:

python --version

If the installation was successful, you should see the Python version number.

Git#

Git is a version control system that is required to clone the repositories in general. To install Git, follow the instructions below:

  1. Download the Git installer from the

  2. Run the installer and follow the instructions.

  3. Open a terminal and run the following command to verify the installation:

git --version

If the installation was successful, you should see the Git version number.

MinGW#

MinGW is a native Windows port of the GNU Compiler Collection (GCC), with freely distributable import libraries and header files for building native Windows applications. MinGW provides a complete Open Source programming toolset that is suitable for the development of native Windows applications, and which do not depend on any 3rd-party C-Runtime DLLs. MinGW, being Minimalist, does not, and never will, attempt to provide a POSIX runtime environment for POSIX application deployment on MS-Windows. If you want POSIX application deployment on this platform, please consider Cygwin instead.

To install MinGW, follow the instructions below:

  1. Download the MinGW installer from the

  2. Run the installer and follow the instructions.

_images/mingw.png

Fig. 11 MinGW installer#

Note

During the installation process, make sure to select the following packages:

  • mingw32-base

  • mingw32-gcc-g++

  • msys-base

_images/mingw2.png

Fig. 12 MinGW installation#

  1. Open a terminal and run the following command to verify the installation:

mingw --version

If the installation was successful, you should see the MinGW version number.

Environment Variable Configuration#

Remember that for Windows operating systems, an extra step is necessary, which is to open the environment variable -> Edit environment variable:

C:\MinGW\bin

Locate the file#

After installing MinGW, you will need to locate the mingw32-make.exe file. This file is typically found in the C:/MinGW/bin directory. Once located, rename the file to make.exe.

Locating the mingw32-make.exe file.

Fig. 13 Locating the mingw32-make.exe file#

Rename it#

After locating mingw32-make.exe, rename it to make.exe. This change is necessary for compatibility with many build scripts that expect the command to be named make.

Renaming mingw32-make.exe to make.exe.

Fig. 14 Renaming mingw32-make.exe to make.exe#

Warning

If you encounter any issues, create a copy of the file and then rename the copy to make.exe.

Add the path to the environment variable#

Next, you need to add the path to the MinGW bin directory to your system’s environment variables. This allows the make command to be recognized from any command prompt.

  1. Open the Start Search, type in “env”, and select “Edit the system environment variables”.

  2. In the System Properties window, click on the “Environment Variables” button.

  3. In the Environment Variables window, under “System variables”, select the “Path” variable and click “Edit”.

  4. In the Edit Environment Variable window, click “New” and add the path:

    C:\MinGW\bin
    
Adding MinGW bin directory to environment variables.

Fig. 15 Adding MinGW bin directory to environment variables#

Visual Studio Code#

Visual Studio Code is a code editor that is required to write and compile the code.

To install Visual Studio Code, follow the instructions below:

  1. Download the Visual Studio Code installer from the

  2. Run the installer and follow the instructions.

_images/vscode.png

Fig. 16 Visual Studio Code installer#

Note

During the installation process, make sure to check the box that says “Open with Code”.

  1. Open a terminal and run the following command to verify the installation:

code --version
  1. Install extensions for Visual Studio Code:

    _images/vscode_gf.png

    Fig. 17 Visual Studio Code extensions#