Eclipse-Based IDE Setup Guide

Eclipse-Based IDE Setup Guide

The setup methods for Eclipse-based IDEs (e.g., STM32CubeIDE, S32DS, NucleiStudio, etc.) are similar.

Build Settings

  • Menu: Project –> Properties

  • Tab: C/C++ Build

  • Build Settings

    • Disable Eclipse’s automatic Makefile generation;
    • Set build directory to the board directory to use XWOS’s own build system.

img

  • Build Behavior
    • Set the build target to all or leave it empty;
    • Set the clean target to d.

img

Environment Variable Settings

  • Menu: Project –> Properties
  • Tab: C/C++ Build –> Environment
  • Settings:
    • WKSPC: Path for build output files;
    • V: Set to 1 to display commands during build;
    • D:
      • When set to 1, compiler optimizations will not affect debugging;
      • When set to 0, compiler optimizations will affect debugging.

img

Rust Plugin

  • Menu: "Help" -> "Install New Software..." -> "Add..."
  • Repository: http://mirrors.ustc.edu.cn/eclipse/corrosion/releases/1.2.3/
  • Plugin: Corrosion: Rust edition in Eclipse IDE

Different versions of Eclipse and the plugin have compatibility issues, requiring attempts with different plugin versions. Generally, the 1.2.3 version of the plugin works fine. Do not select the latest 1.2.4 version of the plugin.