<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Development Environment on XWOS</title>
    <link>/en/Docs/UserManual/Env/</link>
    <description>Recent content in Development Environment on XWOS</description>
    <generator>Hugo</generator>
    <language>en</language>
    <atom:link href="/en/Docs/UserManual/Env/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>XWOS Build Toolchain Installation Guide</title>
      <link>/en/Docs/UserManual/Env/XWTC/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/en/Docs/UserManual/Env/XWTC/</guid>
      <description>&lt;h2 id=&#34;xwtc&#34;&gt;XWTC&lt;/h2&gt;&#xA;&lt;p&gt;&lt;code&gt;xwtc&lt;/code&gt; is a collection of tools for XWOS compilation. It can be downloaded from Baidu Cloud Drive and installed according to the included &lt;strong&gt;说明.md&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://pan.baidu.com/s/1WwSaEajt6JqgMOLOa8iPEQ&#34;&gt;https://pan.baidu.com/s/1WwSaEajt6JqgMOLOa8iPEQ&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Extraction code: xwos&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;It includes:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;arm-none-eabi-gcc&lt;/li&gt;&#xA;&lt;li&gt;armllvm&lt;/li&gt;&#xA;&lt;li&gt;riscv-nuclei-elf-gcc&lt;/li&gt;&#xA;&lt;li&gt;nxp gcc toolchain&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;The Windows version also includes:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;windows-build-tools, including tools such as &lt;code&gt;make&lt;/code&gt;, &lt;code&gt;sed&lt;/code&gt;, &lt;code&gt;emacs&lt;/code&gt;, etc.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h4 id=&#34;ubuntu&#34;&gt;Ubuntu&lt;/h4&gt;&#xA;&lt;p&gt;If the user uses &lt;strong&gt;Ubuntu&lt;/strong&gt; as the development environment, in addition to following &lt;strong&gt;说明.md&lt;/strong&gt; for installation, some additional tools need to be installed:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Rust Development Environment Guide</title>
      <link>/en/Docs/UserManual/Env/Rust/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/en/Docs/UserManual/Env/Rust/</guid>
      <description>&lt;h2 id=&#34;rust-development-tools&#34;&gt;Rust Development Tools&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Install &lt;strong&gt;RUST&lt;/strong&gt; according to the &lt;a href=&#34;https://www.rust-lang.org/tools/install&#34;&gt;official guide&lt;/a&gt;;&lt;/li&gt;&#xA;&lt;li&gt;Switch mirror sources:&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Ubuntu configuration file path: &lt;code&gt;~/.cargo/config.toml&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Windows configuration file path: &lt;code&gt;C:\Users\username\.cargo\config.toml&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-toml&#34; data-lang=&#34;toml&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;[source.crates-io]&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;replace-with = &lt;span style=&#34;color:#b44&#34;&gt;&amp;#39;ustc&amp;#39;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;[source.ustc]&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;registry = &lt;span style=&#34;color:#b44&#34;&gt;&amp;#34;sparse+https://mirrors.ustc.edu.cn/crates.io-index/&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;[registries.ustc]&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;index = &lt;span style=&#34;color:#b44&#34;&gt;&amp;#34;sparse+https://mirrors.ustc.edu.cn/crates.io-index/&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;[source.tuna]&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;registry = &lt;span style=&#34;color:#b44&#34;&gt;&amp;#34;sparse+https://mirrors.tuna.tsinghua.edu.cn/crates.io-index/&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;[registries.tuna]&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;index = &lt;span style=&#34;color:#b44&#34;&gt;&amp;#34;sparse+https://mirrors.tuna.tsinghua.edu.cn/crates.io-index/&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;[source.sjtu]&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;registry = &lt;span style=&#34;color:#b44&#34;&gt;&amp;#34;sparse+https://mirrors.sjtug.sjtu.edu.cn/crates.io-index/&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;[registries.sjtu]&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;index = &lt;span style=&#34;color:#b44&#34;&gt;&amp;#34;sparse+https://mirrors.sjtug.sjtu.edu.cn/crates.io-index/&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;[net]&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;git-fetch-with-cli = &lt;span style=&#34;color:#a2f;font-weight:bold&#34;&gt;true&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;ul&gt;&#xA;&lt;li&gt;Ubuntu: Install unstable version&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-shell&#34; data-lang=&#34;shell&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;rustup install nightly&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;rustup +nightly target add thumbv8m.main-none-eabihf&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;rustup +nightly target add thumbv8m.main-none-eabi&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;rustup +nightly target add thumbv8m.base-none-eabi&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;rustup +nightly target add thumbv7m-none-eabi&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;rustup +nightly target add thumbv7em-none-eabihf&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;rustup +nightly target add thumbv7em-none-eabi&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;rustup +nightly target add thumbv6m-none-eabi&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;rustup +nightly target add riscv32imac-unknown-none-elf&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;rustup +nightly target add aarch64-unknown-none&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;rustup +nightly component add rust-src&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;ul&gt;&#xA;&lt;li&gt;Windows: Install unstable version&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Note: Windows only supports using the &lt;code&gt;gnu&lt;/code&gt; version of the toolchain&lt;/p&gt;</description>
    </item>
    <item>
      <title>Eclipse-Based IDE Setup Guide</title>
      <link>/en/Docs/UserManual/Env/Eclipse/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/en/Docs/UserManual/Env/Eclipse/</guid>
      <description>&lt;p&gt;The setup methods for Eclipse-based IDEs (e.g., STM32CubeIDE, S32DS, NucleiStudio, etc.) are similar.&lt;/p&gt;&#xA;&lt;h2 id=&#34;build-settings&#34;&gt;Build Settings&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Menu: &lt;strong&gt;Project &amp;ndash;&amp;gt; Properties&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Tab: &lt;strong&gt;C/C++ Build&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&lt;strong&gt;Build Settings&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Disable Eclipse&amp;rsquo;s automatic &lt;code&gt;Makefile&lt;/code&gt; generation;&lt;/li&gt;&#xA;&lt;li&gt;Set &lt;code&gt;build directory&lt;/code&gt; to the &lt;strong&gt;board directory&lt;/strong&gt; to use XWOS&amp;rsquo;s own build system.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;img&#34; src=&#34;/en/Docs/UserManual/Env/Eclipse/Properties-C_C++_Build-Settings.png&#34; title=&#34;Build Settings&#34;&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Build Behavior&lt;/strong&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Set the &lt;code&gt;build&lt;/code&gt; target to &lt;code&gt;all&lt;/code&gt; or leave it empty;&lt;/li&gt;&#xA;&lt;li&gt;Set the &lt;code&gt;clean&lt;/code&gt; target to &lt;code&gt;d&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;img&#34; src=&#34;/en/Docs/UserManual/Env/Eclipse/Properties-C_C++_Build-Behavior.png&#34; title=&#34;Build Behavior&#34;&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;environment-variable-settings&#34;&gt;Environment Variable Settings&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Menu: &lt;strong&gt;Project &amp;ndash;&amp;gt; Properties&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;Tab: &lt;strong&gt;C/C++ Build &amp;ndash;&amp;gt; Environment&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;Settings:&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;WKSPC&lt;/code&gt;: Path for build output files;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;V&lt;/code&gt;: Set to &lt;code&gt;1&lt;/code&gt; to display commands during build;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;D&lt;/code&gt;:&#xA;&lt;ul&gt;&#xA;&lt;li&gt;When set to &lt;code&gt;1&lt;/code&gt;, compiler optimizations will not affect debugging;&lt;/li&gt;&#xA;&lt;li&gt;When set to &lt;code&gt;0&lt;/code&gt;, compiler optimizations will affect debugging.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;img&#34; src=&#34;/en/Docs/UserManual/Env/Eclipse/Properties-C_C++_Build-Environment.png&#34; title=&#34;Environment Variables&#34;&gt;&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
