Skip to content
GeMRTOS
GeMRTOS

The Generic eMbedded Multiprocessor RTOS

  • Home
  • Download
  • Docs
    • Documentation Browser
    • GeMRTOS Manuals
    • GeMRTOS repository
    • License
  • Services
  • Contact us
Search
GeMRTOS
GeMRTOS

The Generic eMbedded Multiprocessor RTOS

  • Download
  • Docs
    • Documentation Browser
    • Manuals
    • GeMRTOS repository
    • License
  • Services
  • Contact us
GeMRTOS
GeMRTOS

The Generic eMbedded Multiprocessor RTOS

  • Home
  • Download
  • Docs
    • Documentation Browser
    • GeMRTOS Manuals
    • GeMRTOS repository
    • License
  • Services
  • Contact us
Search
GeMRTOS
GeMRTOS

The Generic eMbedded Multiprocessor RTOS

  • Download
  • Docs
    • Documentation Browser
    • Manuals
    • GeMRTOS repository
    • License
  • Services
  • Contact us

GeMRTOS - Features

  • GeMRTOS Mutex and Critical Sections in Multiprocessor RTOS
  • GeMRTOS Signals: Runtime Exception Handling for Nios V RTOS
  • GeMRTOS System Architecture – Multiprocessor Design with Altera Nios V Processors
  • Hybrid Partition Scheduling in GeMRTOS, Multiprocessor RTOS for Altera FPGA
  • GeMRTOS Scheduling Lists: EDF and Fixed Priority RTOS Guide
  • GeMRTOS Tasks: Types, Creation, and Scheduling for Nios V
  • GeMRTOS Trigger Resources: Event Handling Beyond Interrupts
  • GeMRTOS Controller: Complete FPGA RTOS Hardware Guide
  • Data Structures in GeMRTOS: Control Blocks and Linked Lists
  • GeMRTOS Semaphores: Binary and Counting API for Nios V RTOS
  • GeMRTOS Message Queue: Producer-Consumer API for Nios V RTOS

GeMRTOS - Getting started

  • Introduction to GeMRTOS
  • Getting Started with GeMRTOS: Multiprocessor RTOS for Altera FPGA (Nios II & Nios V)
  • API references
  • Platform Designer Flow for GeMRTOS Nios V FPGA Development
  • GeMRTOS RTOS Task Periods: Infinite Loop vs Periodic Tasks
  • Install Quartus Prime and WSL for GeMRTOS Nios V on Windows

General

  • Using GCC with MinGW for the GeMRTOS Windows Simulation
  • Error (16031): Current Internal Configuration mode does not support memory initialization or ROM. Select Internal Configuration mode with ERAM.
  • newlib Thread Safety in GeMRTOS Nios V Multiprocessor RTOS
  • Set Up Questa-Intel FPGA Edition License for GeMRTOS Nios V
  • Installing Nios II Software Built Tools (SBT) for Eclipse in Quartus Prime starting from version 19.1
  • Fix Quartus Prime 23.1 Fatal Error When Creating ALTPLL IP
  • Fix Missing SDRAM Controller IP in Quartus Prime for GeMRTOS
  • GeMRTOS Nios: Fix 256MB Compile Boundary with -relax-all
  • Questa Simulation Setup for GeMRTOS Nios V: Two Common Fixes
  • Quartus Warning 113015: mem_init.hex Width Mismatch BSP Fix
  • GeMRTOS Secondary Processors Not Booting: nios2-download Fix
  • Fix Quartus Prime System Console: jvm.dll and awt.dll Errors
  • Eclipse does not start after full Quartus Prime instalation
View Categories
  • Home
  • GeMRTOS KnowledgeBase
  • Using GCC with MinGW for the GeMRTOS Windows Simulation

Using GCC with MinGW for the GeMRTOS Windows Simulation

0:00 / 2:06
  • View as Markdown Open this page as plain Markdown (opens in a new tab)
  • Open in ChatGPT Ask questions about this page (opens in a new tab)
  • Open in Claude Ask questions about this page (opens in a new tab)
  • Open in Google AI Studio Ask questions about this page (Google account required) (opens in a new tab)

GeMRTOS ships a Windows simulation layer that runs the same kernel sources as the FPGA target, so you can explore the API, the scheduling behaviour and the example catalogue without a board. Building it on Windows needs GCC from MSYS2 — and it needs the 32-bit toolchain specifically.

This is the step most often gotten wrong. The general MinGW instructions you will find elsewhere install the 64-bit compiler (mingw-w64-x86_64-gcc) and use the MINGW64 environment. GeMRTOS’s supplied build scripts require C:\msys64\mingw32\bin\gcc.exe and the MINGW32 environment. If you install only the 64-bit package, the build stops before it starts.

Install MSYS2 and the 32-bit GCC #

  1. Download and install MSYS2 from msys2.org. Accept the default location, C:\msys64 — the GeMRTOS scripts look there.
  2. Open the MSYS2 MINGW32 terminal from the Start menu. Not MINGW64, and not the plain MSYS terminal.
  3. Install the 32-bit compiler and make:
    pacman -S mingw-w64-i686-gcc make
  4. Confirm what you actually installed:
    gcc -dumpmachine
    # expected: i686-w64-mingw32
    If this prints x86_64-w64-mingw32, you are in the MINGW64 terminal. Close it and open MINGW32.

Build and run the tests #

From the project root, tests\run_tests.bat sets up the MINGW32 environment for you and invokes make. It checks for C:\msys64\mingw32\bin\gcc.exe first and tells you exactly which package to install if it is missing, so it is the quickest way to confirm your toolchain is correct.

A healthy run ends with a per-binary summary and a final pass line. If the compiler is wrong, you will see the missing-GCC message instead of compiler errors — the script fails early on purpose rather than producing confusing link failures later.

Optional: Visual Studio Code #

If you prefer an editor with debugging, install Visual Studio Code and its C/C++ extension, then add C:\msys64\mingw32\bin to your PATH so the extension finds the same compiler the build scripts use. Microsoft’s Using GCC with MinGW guide covers the editor setup — but follow the package and environment names above rather than the 64-bit ones in that guide.

Adding mingw32\bin to PATH is only needed for the editor. The GeMRTOS build scripts locate the compiler themselves.

Share This Article :

  • Facebook
  • X
  • LinkedIn
  • Pinterest
Still stuck? How can we help?

How can we help?

Table of Contents
  • Install MSYS2 and the 32-bit GCC
  • Build and run the tests
  • Optional: Visual Studio Code

Copyright © 2026 - contact us - Dorrego 287 - B8000FLE - Bahía Blanca - Argentina - +542914311867  GeMRTOS

Nios II, Nios V, Quartus Prime, ModelsSim are property of their respective companies.
Altera, Quartus, Cyclone, MAX and Agilex are trademarks of Altera Corporation.
GeMRTOS is property of R. Cayssials.
**All contact forms on this site are protected by reCAPTCHA. Google Privacy

Altera Solution Acceleration Partner - Member

GeMRTOS is a Member in Altera’s ASAP Program