Setup Guide for Development Environment for GCC on Windows
Table of Contents
Install Arm GNU GCC Compiler
Download Arm GNU Toolchain 13.2.rel1 for Windows: Arm GNU Toolchain
Run the .exe installer to install the Arm GNU Toolchain.
Add environment variable
GCC_TOOLCHAIN_13_2_1 = C:\Program Files (x86)\Arm GNU Toolchain arm-none-eabi\13.2 Rel1\bin
MSYS2 Installation For Windows
Follow the below steps to install MSYS2 in Windows:
Download the Windows installer for MSYS2: MSYS2
Once the installer is downloaded, double-click the
.exefile to start the installation process and follow the on-screen instructions in the installation wizard.Select
Launch MSYS2 UCRT64.Enter the command
pacman -S make. EnterY, incase prompted to.Add the following path:
C:\msys64\usr\binto Path in System Variables.
Ninja Installation For Windows
Follow the below steps to install ninja in Windows:
Download Ninja v1.13.1 for Windows: Ninja
Add the following path:
C:\Users\user_name\Downloads\ninja-winto Path in System Variables.
CMake
CMake 4.1.2 Download
Download CMake 4.1.2 for Windows: CMake installer.
CMake Installation
Run the downloaded MSI file.
Note: For Win64, enable the install option Add CMake to the system PATH.
Python
Python Download
(Recommended 3.13.x)
Go to the official Python website: Python
Click on Download Python 3.13.x (the latest 3.13 release).
Python Installation
Locate the downloaded .exe file and run it.
Make sure to check the box that says
Add Python to PATHat the bottom of the installer window before clickingInstall Now. This is essential for accessing Python from the command line.
Install OpenOCD
OpenOCD is required for flashing and debugging over SWD/JTAG. Download a Windows build (for example xPack OpenOCD) and add its bin directory to your PATH.
xPack OpenOCD: OpenOCD xPack releases
Verify:
openocd --version
Debug Steps
For debug capabilities - download the Windows installer from the link below: Ozone Debugger
Once the installer Ozone_Windows_V334a_x64.exe is downloaded, double-click the .exe file to start the installation process and follow the on-screen instructions in the installation wizard.
Environment Variables Summary
The various tools use the following environment variables.
Environment Variable |
Description |
|---|---|
GCC_TOOLCHAIN_13_2_1 |
GCC Compiler path: ( |