<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
    <title>Mare Nostrum</title>
    <subtitle>Ibrahim Erturk&#39;s notes on embedded systems, Rust, Qt and Yocto, plus poetry and book photography.</subtitle>
    <link rel="self" type="application/atom+xml" href="https://erturk.me/atom.xml"/>
    <link rel="alternate" type="text/html" href="https://erturk.me"/>
    <generator uri="https://www.getzola.org/">Zola</generator>
    <updated>2026-11-03T09:00:00+03:00</updated>
    <id>https://erturk.me/atom.xml</id>
    <entry xml:lang="en">
        <title>Yuki, Baby and Now</title>
        <published>2026-11-03T09:00:00+03:00</published>
        <updated>2026-11-03T09:00:00+03:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://erturk.me/blog/yuki/"/>
        <id>https://erturk.me/blog/yuki/</id>
        
        <summary type="html">&lt;p&gt;This is Yuki. He is a phantom toy poodle, which means a black coat with tan markings on his eyebrows, muzzle and paws.&lt;/p&gt;</summary>
        
    </entry>
    <entry xml:lang="en">
        <title>If by Rudyard Kipling - Read by Sir Michael Caine</title>
        <published>2025-04-13T15:41:00+03:00</published>
        <updated>2025-04-13T15:41:00+03:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://erturk.me/blog/if-by-rudyard-kipling/"/>
        <id>https://erturk.me/blog/if-by-rudyard-kipling/</id>
        
        <summary type="html">&lt;p&gt;And—which is more—you’ll be a Man, my son!&lt;/p&gt;</summary>
        
    </entry>
    <entry xml:lang="en">
        <title>A Fast DDS QML Example with Conan 2 (using conanfile.py)</title>
        <published>2025-04-05T18:38:00+03:00</published>
        <updated>2025-04-05T18:38:00+03:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://erturk.me/projects/fastdds-conan-rpc/"/>
        <id>https://erturk.me/projects/fastdds-conan-rpc/</id>
        
        <content type="html" xml:base="https://erturk.me/projects/fastdds-conan-rpc/">&lt;span id=&quot;continue-reading&quot;&gt;&lt;/span&gt;
&lt;p&gt;This project demonstrates how to use Fast DDS with a QML GUI, managed by Conan 2 using a conanfile.py recipe. The example also implements a RPC (remote procedure call) over DDS.&lt;/p&gt;
&lt;h2 id=&quot;prerequisites&quot;&gt;Prerequisites&lt;a class=&quot;zola-anchor&quot; href=&quot;#prerequisites&quot; aria-label=&quot;Anchor link for: prerequisites&quot;&gt;
    &lt;svg class=&quot;zola-anchor-link&quot; viewBox=&quot;0 0 16 16&quot; version=&quot;1.1&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;
        &lt;path fill-rule=&quot;evenodd&quot;
            d=&quot;M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z&quot;&gt;
        &lt;/path&gt;
    &lt;/svg&gt;
&lt;/a&gt;
&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;FastDDSGen V2 tool from eProsima (included in FastDDS installation for Windows) requires Java Runtime Environment (JRE) installation&lt;/li&gt;
&lt;li&gt;CMake 3.15+&lt;/li&gt;
&lt;li&gt;MSVC C++ compiler supporting C++20&lt;/li&gt;
&lt;li&gt;Conan 2.0+&lt;/li&gt;
&lt;li&gt;Python 3.6+ (for Conan)&lt;/li&gt;
&lt;li&gt;Ninja build&lt;/li&gt;
&lt;li&gt;Clink integration with Cmder for enhancing the Windows &lt;code&gt;cmd&lt;/code&gt; shell experience&lt;/li&gt;
&lt;li&gt;GNU Make&lt;/li&gt;
&lt;li&gt;VS Code&lt;/li&gt;
&lt;li&gt;A third-party prebuilt 32-bit library, &lt;code&gt;RBIC1Lib&lt;/code&gt;, used for enabling communication between the 32-bit proxy side and the 64-bit invoker side.&lt;/li&gt;
&lt;li&gt;gTest and gMock for test suite for testing and mocking&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;libraries-from-conan-center&quot;&gt;Libraries from Conan center&lt;a class=&quot;zola-anchor&quot; href=&quot;#libraries-from-conan-center&quot; aria-label=&quot;Anchor link for: libraries-from-conan-center&quot;&gt;
    &lt;svg class=&quot;zola-anchor-link&quot; viewBox=&quot;0 0 16 16&quot; version=&quot;1.1&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;
        &lt;path fill-rule=&quot;evenodd&quot;
            d=&quot;M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z&quot;&gt;
        &lt;/path&gt;
    &lt;/svg&gt;
&lt;/a&gt;
&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;FastDDS&lt;/li&gt;
&lt;li&gt;FastDDS CDR&lt;/li&gt;
&lt;li&gt;Boost asio&lt;/li&gt;
&lt;li&gt;Boost signals2&lt;/li&gt;
&lt;li&gt;Qt 6.5.3 LTS&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;building-on-windows&quot;&gt;Building on Windows&lt;a class=&quot;zola-anchor&quot; href=&quot;#building-on-windows&quot; aria-label=&quot;Anchor link for: building-on-windows&quot;&gt;
    &lt;svg class=&quot;zola-anchor-link&quot; viewBox=&quot;0 0 16 16&quot; version=&quot;1.1&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;
        &lt;path fill-rule=&quot;evenodd&quot;
            d=&quot;M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z&quot;&gt;
        &lt;/path&gt;
    &lt;/svg&gt;
&lt;/a&gt;
&lt;/h2&gt;
&lt;p&gt;Start a &lt;code&gt;Cmder&lt;/code&gt; console&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #D8DEE9; background-color: #2E3440;&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #616E88;&quot;&gt;# For building invoker (64-bit) app&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #616E88;&quot;&gt;# clone the repo&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #88C0D0;&quot;&gt;λ&lt;/span&gt;&lt;span style=&quot;color: #A3BE8C;&quot;&gt; git clone https://github.com/ierturk/fastdds-rpc.git&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #88C0D0;&quot;&gt;λ&lt;/span&gt;&lt;span style=&quot;color: #A3BE8C;&quot;&gt; cd fastdds-rpc&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #616E88;&quot;&gt;#&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #88C0D0;&quot;&gt;λ&lt;/span&gt;&lt;span style=&quot;color: #ECEFF4;&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #A3BE8C;&quot;&gt;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build\vcvarsall.bat&lt;/span&gt;&lt;span style=&quot;color: #ECEFF4;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #A3BE8C;&quot;&gt; x64&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #616E88;&quot;&gt;# Note: Adjust the path to match your Visual Studio installation if it differs.&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #88C0D0;&quot;&gt;λ&lt;/span&gt;&lt;span style=&quot;color: #A3BE8C;&quot;&gt; make all&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #88C0D0;&quot;&gt;λ&lt;/span&gt;&lt;span style=&quot;color: #A3BE8C;&quot;&gt; code .&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #616E88;&quot;&gt;# ctrl+shift+p&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #616E88;&quot;&gt;# CMake: Select Configure Preset&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #616E88;&quot;&gt;# select conan-windows-msvc-194-x86_64-debug config&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #616E88;&quot;&gt;# For building proxy (32-bit) app&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #88C0D0;&quot;&gt;λ&lt;/span&gt;&lt;span style=&quot;color: #ECEFF4;&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #A3BE8C;&quot;&gt;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build\vcvarsall.bat&lt;/span&gt;&lt;span style=&quot;color: #ECEFF4;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #A3BE8C;&quot;&gt; x86&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #616E88;&quot;&gt;# Note: Modify the path above if your Visual Studio installation is in a different location.&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #88C0D0;&quot;&gt;λ&lt;/span&gt;&lt;span style=&quot;color: #A3BE8C;&quot;&gt; make all&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #88C0D0;&quot;&gt;λ&lt;/span&gt;&lt;span style=&quot;color: #A3BE8C;&quot;&gt; code .&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #616E88;&quot;&gt;# ctrl+shift+p&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #616E88;&quot;&gt;# CMake: Select Configure Preset&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #616E88;&quot;&gt;# select conan-windows-msvc-194-x86-debug config&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;All tests will be built for x64; no tests will be built for the x86 build. VS Code tests can be used, or in the console, run under the build directory: &lt;code&gt;build\windows-msvc-194-x86_64-debug&lt;/code&gt;.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #D8DEE9; background-color: #2E3440;&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;λ ctest --verbose&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;</content>
        
    </entry>
    <entry xml:lang="en">
        <title>A sample project that uses slint-ui, dust_dds and third party dll C/C++ library usage on windows with Rust</title>
        <published>2025-03-20T19:47:00+03:00</published>
        <updated>2025-03-20T19:47:00+03:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://erturk.me/projects/zsc31050-calib-rust/"/>
        <id>https://erturk.me/projects/zsc31050-calib-rust/</id>
        
        <content type="html" xml:base="https://erturk.me/projects/zsc31050-calib-rust/">&lt;span id=&quot;continue-reading&quot;&gt;&lt;/span&gt;
&lt;p&gt;The aim of the project is to develop a comprehensive system that runs on Windows 11 and is capable of communicating with remote systems using topics, such as in ROS2, instead of IP addresses.&lt;/p&gt;
&lt;p&gt;There is a specific requirement for this project: I have a 32-bit legacy DLL, and my application should be 64-bit. In this case I need to develop at least two modules, one of them 32-bit and the other one is 64-bit. Consequently, I have to employ an IPC to exchange data between modules. There are lots of possibility such as gRPC but I don’t want to use IP addresses but topics. Even though it is not a best practice, this project will be a learning by doing project. My main aim is discovering possibilities.&lt;/p&gt;
&lt;p&gt;So let’s start!&lt;/p&gt;
&lt;hr /&gt;
&lt;h3 id=&quot;the-tools-that-used-within-this-project&quot;&gt;The Tools that Used within this Project&lt;a class=&quot;zola-anchor&quot; href=&quot;#the-tools-that-used-within-this-project&quot; aria-label=&quot;Anchor link for: the-tools-that-used-within-this-project&quot;&gt;
    &lt;svg class=&quot;zola-anchor-link&quot; viewBox=&quot;0 0 16 16&quot; version=&quot;1.1&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;
        &lt;path fill-rule=&quot;evenodd&quot;
            d=&quot;M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z&quot;&gt;
        &lt;/path&gt;
    &lt;/svg&gt;
&lt;/a&gt;
&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Rust Toolchain with installed i686 and x86_64 target&lt;/li&gt;
&lt;li&gt;MSVC compilers&lt;/li&gt;
&lt;li&gt;DLLs from Renesas&lt;/li&gt;
&lt;li&gt;VS Code and Rust Analyzer plugin&lt;/li&gt;
&lt;li&gt;Git for Windows&lt;/li&gt;
&lt;/ul&gt;
&lt;hr /&gt;
&lt;h3 id=&quot;setup&quot;&gt;Setup&lt;a class=&quot;zola-anchor&quot; href=&quot;#setup&quot; aria-label=&quot;Anchor link for: setup&quot;&gt;
    &lt;svg class=&quot;zola-anchor-link&quot; viewBox=&quot;0 0 16 16&quot; version=&quot;1.1&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;
        &lt;path fill-rule=&quot;evenodd&quot;
            d=&quot;M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z&quot;&gt;
        &lt;/path&gt;
    &lt;/svg&gt;
&lt;/a&gt;
&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Install Rustup&lt;/li&gt;
&lt;li&gt;Install MSVC compilers by using MSVC build tools with C/C++ workload&lt;/li&gt;
&lt;li&gt;the Optionally Make for Windows if you would like to build and run project by GNU Make&lt;/li&gt;
&lt;li&gt;Rest of process is clone project and run with your favorite tool… cargo, make or VS Code (settins included, see .vscode folder)&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #D8DEE9; background-color: #2E3440;&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;### installing required rust toolchains&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;PS&amp;gt; rustup toolchain install stable-x86_64-pc-windows-msvc&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;PS&amp;gt; rustup toolchain install stable-i686-pc-windows-msvc&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;hr /&gt;
&lt;h3 id=&quot;running-and-debugging&quot;&gt;Running and Debugging&lt;a class=&quot;zola-anchor&quot; href=&quot;#running-and-debugging&quot; aria-label=&quot;Anchor link for: running-and-debugging&quot;&gt;
    &lt;svg class=&quot;zola-anchor-link&quot; viewBox=&quot;0 0 16 16&quot; version=&quot;1.1&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;
        &lt;path fill-rule=&quot;evenodd&quot;
            d=&quot;M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z&quot;&gt;
        &lt;/path&gt;
    &lt;/svg&gt;
&lt;/a&gt;
&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Type just following commands in your favourite terminal app&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #D8DEE9; background-color: #2E3440;&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;PS&amp;gt; git clone https://github.com/ierturk/zsc31050-calib-rust.git&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;PS&amp;gt; cd zsc31050-calib-rust&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;## those commands need to be run on splitted terminals&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;## if you prefer GNU Make and you have one on Windows&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;PS&amp;gt; make run-server&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;PS&amp;gt; make run-gui&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;## if you prefer cargo&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;PS&amp;gt; cargo build --target i686-pc-windows-msvc --no-default-features -p rbic1_dll_svc --example server&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;PS&amp;gt; cargo build --target x86_64-pc-windows-msvc -p test_gui&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If you prefer using VS Code to run tasks:&lt;br /&gt;
Use ctrl-shift P then Tasks: Run task and select one&lt;/p&gt;
&lt;p&gt;If everything is fine, you will obtain results similar to those depicted in the header image.&lt;/p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>Notes on FreeBSD on MacBook Pro</title>
        <published>2023-12-31T13:36:00+03:00</published>
        <updated>2023-12-31T13:36:00+03:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://erturk.me/projects/notes-on-freebsd-on-macbook-pro/"/>
        <id>https://erturk.me/projects/notes-on-freebsd-on-macbook-pro/</id>
        
        <content type="html" xml:base="https://erturk.me/projects/notes-on-freebsd-on-macbook-pro/">&lt;span id=&quot;continue-reading&quot;&gt;&lt;/span&gt;
&lt;hr /&gt;
&lt;h3 id=&quot;introduction&quot;&gt;Introduction&lt;a class=&quot;zola-anchor&quot; href=&quot;#introduction&quot; aria-label=&quot;Anchor link for: introduction&quot;&gt;
    &lt;svg class=&quot;zola-anchor-link&quot; viewBox=&quot;0 0 16 16&quot; version=&quot;1.1&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;
        &lt;path fill-rule=&quot;evenodd&quot;
            d=&quot;M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z&quot;&gt;
        &lt;/path&gt;
    &lt;/svg&gt;
&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;I own a quite old MacBook Pro, Mid-2012 (9,2). Even though, everything went well until the Apple and the other additional package managers including MacPorts, HomeBrew and Nix cease to support the Catalina. Apple also ceased to update the MacOS on my machine. I won’t able to install a version of the MacOS on my machine. Also Xcode won’t be updated. As a result, my machine stuck on the Catalina.&lt;/p&gt;
&lt;p&gt;I decided to install FreeBSD which is a aclone of UNIX. MacOS is also a clone of UNIX. There are lots of work to install FreeBSD on a MacBook due to hardware driver. The other option is the Windows. But you can not install Windows 11 due to lack of hardware encryption support (TPM).&lt;/p&gt;
&lt;p&gt;In the following sections you can find my experience regarding the installing FreeBSD on a MacBook.&lt;/p&gt;
&lt;hr /&gt;
&lt;h3 id=&quot;installation-the-base-os&quot;&gt;Installation the Base OS&lt;a class=&quot;zola-anchor&quot; href=&quot;#installation-the-base-os&quot; aria-label=&quot;Anchor link for: installation-the-base-os&quot;&gt;
    &lt;svg class=&quot;zola-anchor-link&quot; viewBox=&quot;0 0 16 16&quot; version=&quot;1.1&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;
        &lt;path fill-rule=&quot;evenodd&quot;
            d=&quot;M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z&quot;&gt;
        &lt;/path&gt;
    &lt;/svg&gt;
&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;Installing is a straight forward procedure. It can be downloaded required image from &lt;a rel=&quot;external&quot; href=&quot;https://download.freebsd.org/releases/amd64/amd64/ISO-IMAGES/14.0/&quot;&gt;the download page of the FreeBSD&lt;/a&gt;, then write it into a USB flash drive as follow.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #D8DEE9; background-color: #2E3440;&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;# dd if=/pat-to-downloaded-image of=/path-to-usb-flash-device bs=4m&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;You need an ethernet connection for networking. To select boot drive, it needs to be press option-key on MacBook.&lt;br /&gt;
Im my case, if you try to install into same drive which MacOS installed, the installer permits only UFS. So I would like to try ZFS and I selected another drive to install with the ZFS.&lt;/p&gt;
&lt;hr /&gt;
&lt;h3 id=&quot;networking&quot;&gt;Networking&lt;a class=&quot;zola-anchor&quot; href=&quot;#networking&quot; aria-label=&quot;Anchor link for: networking&quot;&gt;
    &lt;svg class=&quot;zola-anchor-link&quot; viewBox=&quot;0 0 16 16&quot; version=&quot;1.1&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;
        &lt;path fill-rule=&quot;evenodd&quot;
            d=&quot;M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z&quot;&gt;
        &lt;/path&gt;
    &lt;/svg&gt;
&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;There is no way to use built-in wi-fi module Broadcom brcm4331 with FreeBSD. At least I could not found one. I use a USB/WiFi module to access internet. Another way is using directly ethernet connection. You can also use a wi-fi extender with an ethernet output.&lt;br /&gt;
If you decided to use USB/WiFi module, in my case (this a RaLink module), it needs to be added following lines into the files rc.conf and loader.conf.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #D8DEE9; background-color: #2E3440;&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;# loader.conf&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;# USB-WiFi&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;if_run_load=&amp;quot;YES&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;runfw_load=&amp;quot;YES&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre class=&quot;giallo&quot; style=&quot;color: #D8DEE9; background-color: #2E3440;&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;# rc.conf&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;# WiFi&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;wlans_run0=&amp;quot;wlan0&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;ifconfig_wlan0=&amp;quot;WPA DHCP&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And then run following command&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #D8DEE9; background-color: #2E3440;&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;wpa_passphrase SSID PASSWORD &amp;gt;&amp;gt; /etc/wpa_supplicant.conf&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;After a reboot you will have internet access through USB/Wifi adapter.&lt;/p&gt;
&lt;hr /&gt;
&lt;h3 id=&quot;installation-desktop-environment&quot;&gt;Installation Desktop Environment&lt;a class=&quot;zola-anchor&quot; href=&quot;#installation-desktop-environment&quot; aria-label=&quot;Anchor link for: installation-desktop-environment&quot;&gt;
    &lt;svg class=&quot;zola-anchor-link&quot; viewBox=&quot;0 0 16 16&quot; version=&quot;1.1&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;
        &lt;path fill-rule=&quot;evenodd&quot;
            d=&quot;M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z&quot;&gt;
        &lt;/path&gt;
    &lt;/svg&gt;
&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;I choose the XFCE as DE due to I need a lightweight one. But it needs to be done some work with the Xorg before installing the DE.&lt;br /&gt;
Install the Xorg as follow.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #D8DEE9; background-color: #2E3440;&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;# pkg install xorg&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;To install extra support for the backlights for the display and the keyboard run the following line.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #D8DEE9; background-color: #2E3440;&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;# pkg install asmctl&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then add following lines into the files rc.conf and loader.conf.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #D8DEE9; background-color: #2E3440;&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;# loader.conf&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;# MacBook fixes&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;asmc_load=&amp;quot;YES&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;acpi_video_load=&amp;quot;YES&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;wsp_load=&amp;quot;YES&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre class=&quot;giallo&quot; style=&quot;color: #D8DEE9; background-color: #2E3440;&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;# rc.conf&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;# MacBook fixes&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;kld_list=&amp;quot;i915kms&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;dbus_enable=&amp;quot;YES&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;mousd_port=&amp;quot;wsp0&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;webcamd_enable=&amp;quot;YES&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;After a reboot for the test Xorg support run the follwing line.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #D8DEE9; background-color: #2E3440;&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;# startx&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If everything went well, you can use the TrackPad with multiple gesture including drag and right-click by tapping with two fingers. For using FaceTime camera, it needs to be installed libv4l.&lt;br /&gt;
Now I can continue to install the DE with some extras as follow.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #D8DEE9; background-color: #2E3440;&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;# pkg install xfce xfce4-goodies xfce4-power-manager xfce4-pulseaudio-plugin libv4l ungoogled-chromium&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If everything went well, I can start the XFCE DE by issuing following command as regular user. By the way the user needs to be belonged the group video.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #D8DEE9; background-color: #2E3440;&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;$ startxfce4&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If you would like to use  display manager, I recommend the LightDM. I tried tried to use SLIM as a display manager but within the XFCE4, the xfce-terminal won’t respect the bashrc and profile.&lt;br /&gt;
I can install the LightDM as follow.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #D8DEE9; background-color: #2E3440;&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;# pkg install lightdm&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then create a file .xinitrc with the following content&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #D8DEE9; background-color: #2E3440;&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;# .xinitrc&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;. /usr/local/etc/xdg/xfce4/xinitrc&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;After the reboot you will be greeted by the LightDM.&lt;br /&gt;
&lt;img src=&quot;https://erturk.me/projects/notes-on-freebsd-on-macbook-pro/lightdm-ss.png&quot; alt=&quot;LightDM-ScreenShot&quot; /&gt;
After logged in, the mouse is here…
&lt;img src=&quot;https://erturk.me/projects/notes-on-freebsd-on-macbook-pro/xfce4-ss.png&quot; alt=&quot;XFCE4-ScreenShot&quot; /&gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;h3 id=&quot;jails-and-containers&quot;&gt;Jails and Containers&lt;a class=&quot;zola-anchor&quot; href=&quot;#jails-and-containers&quot; aria-label=&quot;Anchor link for: jails-and-containers&quot;&gt;
    &lt;svg class=&quot;zola-anchor-link&quot; viewBox=&quot;0 0 16 16&quot; version=&quot;1.1&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;
        &lt;path fill-rule=&quot;evenodd&quot;
            d=&quot;M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z&quot;&gt;
        &lt;/path&gt;
    &lt;/svg&gt;
&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;In FreeBSD, it can be run the FreeBSD itself, the other BSD distros and theLinux distros without using the VM. It looks like the Docker or Podman container but more advanced. You can check &lt;a rel=&quot;external&quot; href=&quot;https://docs.freebsd.org/en/books/handbook/jails/&quot;&gt;the documentation&lt;/a&gt;. Also there are lots of tools to manage the jails. I chose the &lt;a rel=&quot;external&quot; href=&quot;https://bastillebsd.org/&quot;&gt;Bastille&lt;/a&gt; here. To install the Bastille please refer to &lt;a rel=&quot;external&quot; href=&quot;https://bastillebsd.org/getting-started/&quot;&gt;the getting started documentation&lt;/a&gt;. I tried to run Linux in FreeBSD. It explained in &lt;a rel=&quot;external&quot; href=&quot;https://bastillebsd.org/blog/2021/08/01/bastille-experiments-with-ubuntu-and-debian-linux-containers/&quot;&gt;this blog entry&lt;/a&gt;, and it just works on my configuration.&lt;br /&gt;
My configuration is as follow.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #D8DEE9; background-color: #2E3440;&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;# loader.conf&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;# bastille configuration&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;fdescfs_load=&amp;quot;YES&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;linprocfs_load=&amp;quot;YES&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;linsysfs_load=&amp;quot;YES&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;tmpfs_load=&amp;quot;YES&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre class=&quot;giallo&quot; style=&quot;color: #D8DEE9; background-color: #2E3440;&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;# rc.conf&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;# bastille configuration&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;bastille_enable=&amp;quot;YES&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;bastille_rcorder=&amp;quot;YES&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;cloned_interfaces=&amp;quot;lo1&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;ifconfig_lo1_name=&amp;quot;bastille0&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;linux_enable=&amp;quot;YES&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;pf_enable=&amp;quot;YES&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre class=&quot;giallo&quot; style=&quot;color: #D8DEE9; background-color: #2E3440;&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;# pf.conf&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;# bastille configuration&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;ext_if=&amp;quot;wlan0&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;# nat on wlan0 from {192.168.8.0/24} to any -&amp;gt; (wlan0)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;set block-policy return&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;scrub in on $ext_if all fragment reassemble&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;set skip on lo&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;table &amp;lt;jails&amp;gt; persist&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;nat on $ext_if from &amp;lt;jails&amp;gt; to any -&amp;gt; ($ext_if:0)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;rdr-anchor &amp;quot;rdr/*&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;block in all&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;pass out quick keep state&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;antispoof for $ext_if inet&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;pass in inet proto tcp from any to any port ssh flags S/SA keep state&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;hr /&gt;
&lt;h3 id=&quot;virtual-machines-bhyve&quot;&gt;Virtual Machines - BHYVE&lt;a class=&quot;zola-anchor&quot; href=&quot;#virtual-machines-bhyve&quot; aria-label=&quot;Anchor link for: virtual-machines-bhyve&quot;&gt;
    &lt;svg class=&quot;zola-anchor-link&quot; viewBox=&quot;0 0 16 16&quot; version=&quot;1.1&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;
        &lt;path fill-rule=&quot;evenodd&quot;
            d=&quot;M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z&quot;&gt;
        &lt;/path&gt;
    &lt;/svg&gt;
&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;I tried VMs to get the Wi-Fi module working by using PCI Pass-Thru. There is a project on FreeBSD &lt;a rel=&quot;external&quot; href=&quot;https://github.com/pgj/freebsd-wifibox&quot;&gt;wifibox&lt;/a&gt; but it didn’t work on my MacBook. You can refer &lt;a rel=&quot;external&quot; href=&quot;https://github.com/pgj/freebsd-wifibox/discussions/58&quot;&gt;this discussion&lt;/a&gt; for more information. So I decided to use &lt;a rel=&quot;external&quot; href=&quot;https://voidlinux.org/&quot;&gt;VoidLinux&lt;/a&gt; for this purpose. Because the &lt;a rel=&quot;external&quot; href=&quot;https://www.alpinelinux.org/&quot;&gt;AlpineLinux&lt;/a&gt; which is used in the wifibox project removed the b43 drivers.It didn’t fully work but the VM loads correctly the required kernel module. It needs to be worked on IRQs. You can refer &lt;a rel=&quot;external&quot; href=&quot;https://wireless.wiki.kernel.org/en/users/Drivers/b43#devicefirmware&quot;&gt;the wireless linux kernel document&lt;/a&gt; for more information. I can extract the reqired file to work withthe BCM4331 (b43/ucode29_mimo.fw) by using b43-fw-cutter tool.&lt;br /&gt;
Anyway the final configs for the VMs as follow. I use the vm-bhyve manager as a tool. It can be installed required packages as follow. You can refer &lt;a rel=&quot;external&quot; href=&quot;https://wiki.freebsd.org/chengcui/install_FreeBSD13_VM_via_bhyve&quot;&gt;here&lt;/a&gt; and &lt;a rel=&quot;external&quot; href=&quot;https://wiki.freebsd.org/chengcui/install_Ubuntu22.04_VM_via_bhyve&quot;&gt;here&lt;/a&gt; for more information.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #D8DEE9; background-color: #2E3440;&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;# pkg install vm-bhyve grub2-bhyve&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre class=&quot;giallo&quot; style=&quot;color: #D8DEE9; background-color: #2E3440;&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;# loader.conf&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;# VM config via bhyve&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;vmm_load=&amp;quot;YES&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;nmdm_load=&amp;quot;YES&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;if_bridge_load=&amp;quot;YES&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;if_tap_load=&amp;quot;YES&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;# the passthru pci device&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;pptdevs=&amp;quot;2/0/0&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre class=&quot;giallo&quot; style=&quot;color: #D8DEE9; background-color: #2E3440;&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;# rc.conf&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;vm_enable=&amp;quot;YES&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;vm_dir=&amp;quot;zfs:zroot/bhyve&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;# disable to load broadcom driver and kernel modules to use as PCI Pass-Thru&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;devmatch_enable=&amp;quot;YES&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;devmatch_blacklist=&amp;quot;if_bwi if_bwn&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;To access internet from within the guest OS, it needs to be an ethernet connection for the FreeBSD host.&lt;/p&gt;
&lt;hr /&gt;
&lt;h3 id=&quot;rust-on-stm32-on-freebsd&quot;&gt;Rust on STM32 on FreeBSD&lt;a class=&quot;zola-anchor&quot; href=&quot;#rust-on-stm32-on-freebsd&quot; aria-label=&quot;Anchor link for: rust-on-stm32-on-freebsd&quot;&gt;
    &lt;svg class=&quot;zola-anchor-link&quot; viewBox=&quot;0 0 16 16&quot; version=&quot;1.1&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;
        &lt;path fill-rule=&quot;evenodd&quot;
            d=&quot;M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z&quot;&gt;
        &lt;/path&gt;
    &lt;/svg&gt;
&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;I can build and run my project &lt;a rel=&quot;external&quot; href=&quot;https://erturk.me/projects/a-rust-bsp-package-for-stm32f4-discovery-kit/&quot;&gt;A BSP for STM32F4 Discovery Kit&lt;/a&gt; on the FreeBSD. For full setup you can also refer &lt;a rel=&quot;external&quot; href=&quot;https://erturk.me/projects/working-with-rust-embedded-on-wsl/&quot;&gt;this post&lt;/a&gt;. You need to install additional tools to work with the &lt;a rel=&quot;external&quot; href=&quot;https://probe.rs/&quot;&gt;probe-rs&lt;/a&gt; and &lt;a rel=&quot;external&quot; href=&quot;https://slint.dev/&quot;&gt;Slint&lt;/a&gt;. Rust can be installed straight forward by using the tool &lt;a rel=&quot;external&quot; href=&quot;https://www.rust-lang.org/learn/get-started&quot;&gt;rustup&lt;/a&gt;. Required tools can be installed as follow&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #D8DEE9; background-color: #2E3440;&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;# pkg vscode install pkgconf libftdi1&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;To build probe-rs with the FTDI support&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #D8DEE9; background-color: #2E3440;&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;cargo install probe-rs --features cli,ftdi&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;To add rust-analyzer support into VSCode&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #D8DEE9; background-color: #2E3440;&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;rustup component add rust-analyzer&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;To build Slint on FreeBSD, it needs to export the location of the file fonts.conf as follow. You can refer &lt;a rel=&quot;external&quot; href=&quot;https://github.com/RazrFalcon/fontdb/issues/61&quot;&gt;fontdb discussion&lt;/a&gt; for more information.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #D8DEE9; background-color: #2E3440;&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;export FONTCONFIG_FILE=/usr/local/etc/fonts/fonts.conf.&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Or can be defined within VSCode config file settings.json as follow&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #D8DEE9; background-color: #2E3440;&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;{&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    &amp;quot;rust-analyzer.server.path&amp;quot;: &amp;quot;~/.cargo/bin/rust-analyzer&amp;quot;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    &amp;quot;rust-analyzer.cargo.extraEnv&amp;quot;: {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;        &amp;quot;FONTCONFIG_FILE&amp;quot;: &amp;quot;/usr/local/etc/fonts/fonts.conf&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    },&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    &amp;quot;terminal.integrated.env.linux&amp;quot;: {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;        &amp;quot;FONTCONFIG_FILE&amp;quot;: &amp;quot;/usr/local/etc/fonts/fonts.conf&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;To use STLink as a regular user I need an extra package. It looks like udev-rules in Linux.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #D8DEE9; background-color: #2E3440;&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;# pkgu install u2f-devd&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Add user to the group u2f&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #D8DEE9; background-color: #2E3440;&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;pw groupmod u2f -m YourUserNameHere&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Config u2f for STLink&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #D8DEE9; background-color: #2E3440;&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;# u2f.conf&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;notify 100 {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;	match &amp;quot;system&amp;quot;		&amp;quot;USB&amp;quot;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;	match &amp;quot;subsystem&amp;quot;	&amp;quot;DEVICE&amp;quot;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;	match &amp;quot;type&amp;quot;		&amp;quot;ATTACH&amp;quot;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;	match &amp;quot;vendor&amp;quot;		&amp;quot;0x0483&amp;quot;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;	match &amp;quot;product&amp;quot;		&amp;quot;0x3752&amp;quot;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;	action &amp;quot;chgrp u2f /dev/$cdev; chmod g+rw /dev/$cdev&amp;quot;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;};&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;attach 100 {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;	match &amp;quot;vendor&amp;quot;		&amp;quot;0x0483&amp;quot;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;	match &amp;quot;product&amp;quot;		&amp;quot;0x3752&amp;quot;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;	action &amp;quot;chgrp u2f /dev/$device-name; chmod g+rw /dev/$device-name&amp;quot;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;};&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The remaining procedure is the same as on Linux or WSL.&lt;/p&gt;
&lt;hr /&gt;
&lt;h3 id=&quot;conclusion&quot;&gt;Conclusion&lt;a class=&quot;zola-anchor&quot; href=&quot;#conclusion&quot; aria-label=&quot;Anchor link for: conclusion&quot;&gt;
    &lt;svg class=&quot;zola-anchor-link&quot; viewBox=&quot;0 0 16 16&quot; version=&quot;1.1&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;
        &lt;path fill-rule=&quot;evenodd&quot;
            d=&quot;M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z&quot;&gt;
        &lt;/path&gt;
    &lt;/svg&gt;
&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;Everything works fine on the FreeBSD except for the Wifi.&lt;br /&gt;
I came across notable projects during this works as listed below.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a rel=&quot;external&quot; href=&quot;https://github.com/pgj/freebsd-wifibox&quot;&gt;wifibox&lt;/a&gt; - an inspring project&lt;/li&gt;
&lt;li&gt;&lt;a rel=&quot;external&quot; href=&quot;https://bastillebsd.org/&quot;&gt;bastille&lt;/a&gt; - a jail manager - looks promising&lt;/li&gt;
&lt;li&gt;&lt;a rel=&quot;external&quot; href=&quot;https://github.com/ungoogled-software/ungoogled-chromium&quot;&gt;ungoogled-chromium&lt;/a&gt; - for more privacy&lt;/li&gt;
&lt;li&gt;&lt;a rel=&quot;external&quot; href=&quot;https://voidlinux.org/&quot;&gt;VoidLinux&lt;/a&gt; - looks promising&lt;/li&gt;
&lt;li&gt;&lt;a rel=&quot;external&quot; href=&quot;https://raindrop.io/&quot;&gt;raindrop.io&lt;/a&gt; - a bookmark manager is your friend during switching between the OSes.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Sharing is Caring!&lt;/p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>A Board Support Package for STM32F4 Discovery Kit</title>
        <published>2023-11-28T19:51:00+03:00</published>
        <updated>2023-11-28T19:51:00+03:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://erturk.me/projects/a-rust-bsp-package-for-stm32f4-discovery-kit/"/>
        <id>https://erturk.me/projects/a-rust-bsp-package-for-stm32f4-discovery-kit/</id>
        
        <content type="html" xml:base="https://erturk.me/projects/a-rust-bsp-package-for-stm32f4-discovery-kit/">&lt;span id=&quot;continue-reading&quot;&gt;&lt;/span&gt;
&lt;hr /&gt;
&lt;h3 id=&quot;the-tools-that-used-within-this-post&quot;&gt;The Tools that Used within this Post&lt;a class=&quot;zola-anchor&quot; href=&quot;#the-tools-that-used-within-this-post&quot; aria-label=&quot;Anchor link for: the-tools-that-used-within-this-post&quot;&gt;
    &lt;svg class=&quot;zola-anchor-link&quot; viewBox=&quot;0 0 16 16&quot; version=&quot;1.1&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;
        &lt;path fill-rule=&quot;evenodd&quot;
            d=&quot;M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z&quot;&gt;
        &lt;/path&gt;
    &lt;/svg&gt;
&lt;/a&gt;
&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a rel=&quot;external&quot; href=&quot;https://www.rust-lang.org/learn/get-started&quot;&gt;Rust Toolchain&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel=&quot;external&quot; href=&quot;https://github.com/dorssel/usbipd-win&quot;&gt;usbpid-win&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel=&quot;external&quot; href=&quot;https://probe.rs/docs/getting-started/installation/&quot;&gt;probe-rs&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel=&quot;external&quot; href=&quot;https://code.visualstudio.com/&quot;&gt;VSCode&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel=&quot;external&quot; href=&quot;https://learn.microsoft.com/en-us/windows/wsl/install&quot;&gt;WSL&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel=&quot;external&quot; href=&quot;https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer&quot;&gt;rust-analyzer plugin for VSCode&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel=&quot;external&quot; href=&quot;https://marketplace.visualstudio.com/items?itemName=probe-rs.probe-rs-debugger&quot;&gt;probe-rs plugin for VSCode&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel=&quot;external&quot; href=&quot;https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-wsl&quot;&gt;WSL plugin for VSCode&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel=&quot;external&quot; href=&quot;https://github.com/ierturk/rust-on-stm32&quot;&gt;GitHUB repository&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel=&quot;external&quot; href=&quot;https://www.st.com/en/evaluation-tools/32f429idiscovery.html&quot;&gt;STM32F429ZI Discovery Board&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel=&quot;external&quot; href=&quot;https://apps.microsoft.com/detail/windows-subsystem-for-linux/9P9TQF7MRM4R?hl=en-gb&amp;amp;gl=US&quot;&gt;WSL - Windows Subsystem for Linux&lt;/a&gt;
&lt;a rel=&quot;external&quot; href=&quot;https://apps.microsoft.com/detail/9PN20MSR04DW?hl=en-gb&amp;amp;gl=US&quot;&gt;Ubuntu 22.04.2 LTS&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel=&quot;external&quot; href=&quot;https://slint.dev/&quot;&gt;Slint UI&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel=&quot;external&quot; href=&quot;https://marketplace.visualstudio.com/items?itemName=Slint.slint&quot;&gt;Slint UI Plugin for VSCode&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel=&quot;external&quot; href=&quot;https://github.com/cbiffle/lilos&quot;&gt;lilos Async RTOS&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;hr /&gt;
&lt;h3 id=&quot;setup&quot;&gt;Setup&lt;a class=&quot;zola-anchor&quot; href=&quot;#setup&quot; aria-label=&quot;Anchor link for: setup&quot;&gt;
    &lt;svg class=&quot;zola-anchor-link&quot; viewBox=&quot;0 0 16 16&quot; version=&quot;1.1&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;
        &lt;path fill-rule=&quot;evenodd&quot;
            d=&quot;M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z&quot;&gt;
        &lt;/path&gt;
    &lt;/svg&gt;
&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;For setup the whole development system on WSL and VSCode please refer to &lt;a rel=&quot;external&quot; href=&quot;https://erturk.me/projects/working-with-rust-embedded-on-wsl/&quot;&gt;this post&lt;/a&gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;h3 id=&quot;running-and-debugging&quot;&gt;Running and Debugging&lt;a class=&quot;zola-anchor&quot; href=&quot;#running-and-debugging&quot; aria-label=&quot;Anchor link for: running-and-debugging&quot;&gt;
    &lt;svg class=&quot;zola-anchor-link&quot; viewBox=&quot;0 0 16 16&quot; version=&quot;1.1&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;
        &lt;path fill-rule=&quot;evenodd&quot;
            d=&quot;M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z&quot;&gt;
        &lt;/path&gt;
    &lt;/svg&gt;
&lt;/a&gt;
&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Clone &lt;a rel=&quot;external&quot; href=&quot;https://github.com/ierturk/rust-on-stm32&quot;&gt;the repository&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Open the folder in VSCode&lt;/li&gt;
&lt;li&gt;In terminal&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #D8DEE9; background-color: #2E3440;&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;ierturk@DESKTOP-JC8L4M1:~$ cargo run -release&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Or&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;It can be run through VSCode menus&lt;/li&gt;
&lt;/ul&gt;
&lt;hr /&gt;
&lt;h3 id=&quot;conclusion&quot;&gt;Conclusion&lt;a class=&quot;zola-anchor&quot; href=&quot;#conclusion&quot; aria-label=&quot;Anchor link for: conclusion&quot;&gt;
    &lt;svg class=&quot;zola-anchor-link&quot; viewBox=&quot;0 0 16 16&quot; version=&quot;1.1&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;
        &lt;path fill-rule=&quot;evenodd&quot;
            d=&quot;M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z&quot;&gt;
        &lt;/path&gt;
    &lt;/svg&gt;
&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;This is the Slint-UI Carousel Demo runs on the F4 MCU&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://erturk.me/projects/a-rust-bsp-package-for-stm32f4-discovery-kit/rust-slint-ui-carousel-demo.jpeg&quot; alt=&quot;Slint UI Carousel Demo&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Happy reading and coding!&lt;/p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>Working with Rust Embedded on WSL</title>
        <published>2023-11-07T13:29:00+03:00</published>
        <updated>2023-11-07T13:29:00+03:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://erturk.me/projects/working-with-rust-embedded-on-wsl/"/>
        <id>https://erturk.me/projects/working-with-rust-embedded-on-wsl/</id>
        
        <content type="html" xml:base="https://erturk.me/projects/working-with-rust-embedded-on-wsl/">&lt;span id=&quot;continue-reading&quot;&gt;&lt;/span&gt;
&lt;p&gt;In this post, it’ll be tried to explain how to get a working example by using only the tools that provided by Rust community. So let’s start!&lt;/p&gt;
&lt;hr /&gt;
&lt;h3 id=&quot;the-tools-that-used-within-this-post&quot;&gt;The Tools that Used within this Post&lt;a class=&quot;zola-anchor&quot; href=&quot;#the-tools-that-used-within-this-post&quot; aria-label=&quot;Anchor link for: the-tools-that-used-within-this-post&quot;&gt;
    &lt;svg class=&quot;zola-anchor-link&quot; viewBox=&quot;0 0 16 16&quot; version=&quot;1.1&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;
        &lt;path fill-rule=&quot;evenodd&quot;
            d=&quot;M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z&quot;&gt;
        &lt;/path&gt;
    &lt;/svg&gt;
&lt;/a&gt;
&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Rust Toolchain&lt;sup class=&quot;footnote-reference&quot;&gt;&lt;a href=&quot;#1&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;&lt;/li&gt;
&lt;li&gt;usbpid-win&lt;sup class=&quot;footnote-reference&quot;&gt;&lt;a href=&quot;#2&quot;&gt;2&lt;/a&gt;&lt;/sup&gt;&lt;/li&gt;
&lt;li&gt;probe-rs&lt;sup class=&quot;footnote-reference&quot;&gt;&lt;a href=&quot;#3&quot;&gt;3&lt;/a&gt;&lt;/sup&gt;&lt;/li&gt;
&lt;li&gt;VSCode&lt;sup class=&quot;footnote-reference&quot;&gt;&lt;a href=&quot;#4&quot;&gt;4&lt;/a&gt;&lt;/sup&gt;&lt;/li&gt;
&lt;li&gt;WSL&lt;sup class=&quot;footnote-reference&quot;&gt;&lt;a href=&quot;#5&quot;&gt;5&lt;/a&gt;&lt;/sup&gt;&lt;/li&gt;
&lt;li&gt;rust-analyzer plugin for VSCode&lt;sup class=&quot;footnote-reference&quot;&gt;&lt;a href=&quot;#6&quot;&gt;6&lt;/a&gt;&lt;/sup&gt;&lt;/li&gt;
&lt;li&gt;probe-rs plugin for VSCode&lt;sup class=&quot;footnote-reference&quot;&gt;&lt;a href=&quot;#7&quot;&gt;7&lt;/a&gt;&lt;/sup&gt;&lt;/li&gt;
&lt;li&gt;WSL plugin for VSCode&lt;sup class=&quot;footnote-reference&quot;&gt;&lt;a href=&quot;#8&quot;&gt;8&lt;/a&gt;&lt;/sup&gt;&lt;/li&gt;
&lt;li&gt;GitHUB repository&lt;sup class=&quot;footnote-reference&quot;&gt;&lt;a href=&quot;#9&quot;&gt;9&lt;/a&gt;&lt;/sup&gt;&lt;/li&gt;
&lt;li&gt;STM32F429ZI Discovery Board&lt;sup class=&quot;footnote-reference&quot;&gt;&lt;a href=&quot;#10&quot;&gt;10&lt;/a&gt;&lt;/sup&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;hr /&gt;
&lt;h3 id=&quot;setup&quot;&gt;Setup&lt;a class=&quot;zola-anchor&quot; href=&quot;#setup&quot; aria-label=&quot;Anchor link for: setup&quot;&gt;
    &lt;svg class=&quot;zola-anchor-link&quot; viewBox=&quot;0 0 16 16&quot; version=&quot;1.1&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;
        &lt;path fill-rule=&quot;evenodd&quot;
            d=&quot;M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z&quot;&gt;
        &lt;/path&gt;
    &lt;/svg&gt;
&lt;/a&gt;
&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Install WSL&lt;sup class=&quot;footnote-reference&quot;&gt;&lt;a href=&quot;#11&quot;&gt;11&lt;/a&gt;&lt;/sup&gt; and an Ubuntu 22.04.2 LTS&lt;sup class=&quot;footnote-reference&quot;&gt;&lt;a href=&quot;#12&quot;&gt;12&lt;/a&gt;&lt;/sup&gt; instance from Windows Store&lt;/li&gt;
&lt;li&gt;Download and install usbpid-win from the Github repository&lt;sup class=&quot;footnote-reference&quot;&gt;&lt;a href=&quot;#2&quot;&gt;2&lt;/a&gt;&lt;/sup&gt;&lt;/li&gt;
&lt;li&gt;Run the WSL instance on a windows commandline as follow&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #D8DEE9; background-color: #2E3440;&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;PS C:\Users\ierturk&amp;gt; wsl ~&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;Install probe-rs within WSL instance as decribed in here&lt;sup class=&quot;footnote-reference&quot;&gt;&lt;a href=&quot;#3&quot;&gt;3&lt;/a&gt;&lt;/sup&gt;&lt;/li&gt;
&lt;li&gt;Plugin the Discovery board into a USB port on your Windows PC&lt;br /&gt;
On a windows command line when you issued follwing commad,  a list will be displayed&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #D8DEE9; background-color: #2E3440;&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;PS C:\Users\ierturk&amp;gt; usbipd wsl list&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;BUSID  VID:PID    DEVICE                                                        STATE&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;3-1    0483:374b  ST-Link Debug, USB Mass Storage Device, STMicroelectronic...  Not attached&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;3-2    046d:c52b  Logitech USB Input Device, USB Input Device                   Not attached&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;4-1    05ac:8509  FaceTime HD Camera (Built-in), FaceTime HD camera             Not attached&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;6-2    05ac:8242  Apple IR Receiver                                             Not attached&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;6-3    05ac:0253  Apple Keyboard, Apple Multi-Touch, USB Input Device           Not attached&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;7-3    05ac:821d  Apple Broadcom Built-in Bluetooth                             Not attached&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;Bind the USB device on an elevated command line as follow&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #D8DEE9; background-color: #2E3440;&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;PS C:\Users\root&amp;gt; usbipd bind --busid 3-1&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;Now you can attach the USB device as standard user as follow&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #D8DEE9; background-color: #2E3440;&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;PS C:\Users\ierturk&amp;gt; usbipd wsl attach --busid 3-1&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;Install VSCode and the plugins mentioned here &lt;sup class=&quot;footnote-reference&quot;&gt;&lt;a href=&quot;#6&quot;&gt;6&lt;/a&gt;&lt;/sup&gt; &lt;sup class=&quot;footnote-reference&quot;&gt;&lt;a href=&quot;#7&quot;&gt;7&lt;/a&gt;&lt;/sup&gt; &lt;sup class=&quot;footnote-reference&quot;&gt;&lt;a href=&quot;#8&quot;&gt;8&lt;/a&gt;&lt;/sup&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;hr /&gt;
&lt;h3 id=&quot;running-and-debugging&quot;&gt;Running and Debugging&lt;a class=&quot;zola-anchor&quot; href=&quot;#running-and-debugging&quot; aria-label=&quot;Anchor link for: running-and-debugging&quot;&gt;
    &lt;svg class=&quot;zola-anchor-link&quot; viewBox=&quot;0 0 16 16&quot; version=&quot;1.1&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;
        &lt;path fill-rule=&quot;evenodd&quot;
            d=&quot;M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z&quot;&gt;
        &lt;/path&gt;
    &lt;/svg&gt;
&lt;/a&gt;
&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Open VSCode&lt;/li&gt;
&lt;li&gt;Install WSL plugin&lt;sup class=&quot;footnote-reference&quot;&gt;&lt;a href=&quot;#8&quot;&gt;8&lt;/a&gt;&lt;/sup&gt; in VSCode&lt;/li&gt;
&lt;li&gt;Connect to WSL instance from within VSCode using WSL plugin&lt;sup class=&quot;footnote-reference&quot;&gt;&lt;a href=&quot;#8&quot;&gt;8&lt;/a&gt;&lt;/sup&gt;&lt;/li&gt;
&lt;li&gt;Install rust-analyzer&lt;sup class=&quot;footnote-reference&quot;&gt;&lt;a href=&quot;#6&quot;&gt;6&lt;/a&gt;&lt;/sup&gt; and probe-rs&lt;sup class=&quot;footnote-reference&quot;&gt;&lt;a href=&quot;#7&quot;&gt;7&lt;/a&gt;&lt;/sup&gt; plugins in VSCode in WSL instance&lt;/li&gt;
&lt;li&gt;Open terminal in VSCode&lt;/li&gt;
&lt;li&gt;Create a work directory and clone the repository&lt;sup class=&quot;footnote-reference&quot;&gt;&lt;a href=&quot;#9&quot;&gt;9&lt;/a&gt;&lt;/sup&gt; as follow&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #D8DEE9; background-color: #2E3440;&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;ierturk@DESKTOP-JC8L4M1:~$ mkdir Work&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;ierturk@DESKTOP-JC8L4M1:~$ cd Work&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;ierturk@DESKTOP-JC8L4M1:~$ sudo apt-get install git&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;ierturk@DESKTOP-JC8L4M1:~$ git clone https://github.com/ierturk/rust-embedded-wsl-probe-rs.git&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;Open folder &lt;code&gt;rust-embedded-wsl-probe-rs&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Now just open debug tab and hit the button&lt;/li&gt;
&lt;li&gt;Place breakpoints where you want&lt;/li&gt;
&lt;li&gt;Hit the play button&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Then it should be displayed following screen
&lt;img src=&quot;https://erturk.me/projects/working-with-rust-embedded-on-wsl/vscode-debug-wsl.png&quot; alt=&quot;VSCode DEbug Screen&quot; /&gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;h3 id=&quot;conclusion&quot;&gt;Conclusion&lt;a class=&quot;zola-anchor&quot; href=&quot;#conclusion&quot; aria-label=&quot;Anchor link for: conclusion&quot;&gt;
    &lt;svg class=&quot;zola-anchor-link&quot; viewBox=&quot;0 0 16 16&quot; version=&quot;1.1&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;
        &lt;path fill-rule=&quot;evenodd&quot;
            d=&quot;M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z&quot;&gt;
        &lt;/path&gt;
    &lt;/svg&gt;
&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;&lt;img src=&quot;https://erturk.me/projects/working-with-rust-embedded-on-wsl/lcd-demo.jpeg&quot; alt=&quot;LCD Demo&quot; /&gt;
It just woks as you can see. Yo can work on this and modify some parts according to your requirements.&lt;/p&gt;
&lt;p&gt;Hope you enjoyed with the tutorial, found useful.
Thank you for reading.&lt;/p&gt;
&lt;div class=&quot;footnote-definition&quot; id=&quot;1&quot;&gt;&lt;sup class=&quot;footnote-definition-label&quot;&gt;1&lt;/sup&gt;
&lt;p&gt;&lt;a rel=&quot;external&quot; href=&quot;https://www.rust-lang.org/learn/get-started&quot;&gt;Rust Getting Started&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&quot;footnote-definition&quot; id=&quot;2&quot;&gt;&lt;sup class=&quot;footnote-definition-label&quot;&gt;2&lt;/sup&gt;
&lt;p&gt;&lt;a rel=&quot;external&quot; href=&quot;https://github.com/dorssel/usbipd-win&quot;&gt;usbpid-win&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&quot;footnote-definition&quot; id=&quot;3&quot;&gt;&lt;sup class=&quot;footnote-definition-label&quot;&gt;3&lt;/sup&gt;
&lt;p&gt;&lt;a rel=&quot;external&quot; href=&quot;https://probe.rs/docs/getting-started/installation/&quot;&gt;probe-rs&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&quot;footnote-definition&quot; id=&quot;4&quot;&gt;&lt;sup class=&quot;footnote-definition-label&quot;&gt;4&lt;/sup&gt;
&lt;p&gt;&lt;a rel=&quot;external&quot; href=&quot;https://code.visualstudio.com/&quot;&gt;VSCode&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&quot;footnote-definition&quot; id=&quot;5&quot;&gt;&lt;sup class=&quot;footnote-definition-label&quot;&gt;5&lt;/sup&gt;
&lt;p&gt;&lt;a rel=&quot;external&quot; href=&quot;https://learn.microsoft.com/en-us/windows/wsl/install&quot;&gt;WSL&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&quot;footnote-definition&quot; id=&quot;6&quot;&gt;&lt;sup class=&quot;footnote-definition-label&quot;&gt;6&lt;/sup&gt;
&lt;p&gt;&lt;a rel=&quot;external&quot; href=&quot;https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer&quot;&gt;rust-analyzer plugin for VSCode&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&quot;footnote-definition&quot; id=&quot;7&quot;&gt;&lt;sup class=&quot;footnote-definition-label&quot;&gt;7&lt;/sup&gt;
&lt;p&gt;&lt;a rel=&quot;external&quot; href=&quot;https://marketplace.visualstudio.com/items?itemName=probe-rs.probe-rs-debugger&quot;&gt;probe-rs plugin for VSCode&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&quot;footnote-definition&quot; id=&quot;8&quot;&gt;&lt;sup class=&quot;footnote-definition-label&quot;&gt;8&lt;/sup&gt;
&lt;p&gt;&lt;a rel=&quot;external&quot; href=&quot;https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-wsl&quot;&gt;WSL plugin for VSCode&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&quot;footnote-definition&quot; id=&quot;9&quot;&gt;&lt;sup class=&quot;footnote-definition-label&quot;&gt;9&lt;/sup&gt;
&lt;p&gt;&lt;a rel=&quot;external&quot; href=&quot;https://github.com/ierturk/rust-embedded-wsl-probe-rs&quot;&gt;GitHUB repository&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&quot;footnote-definition&quot; id=&quot;10&quot;&gt;&lt;sup class=&quot;footnote-definition-label&quot;&gt;10&lt;/sup&gt;
&lt;p&gt;&lt;a rel=&quot;external&quot; href=&quot;https://www.st.com/en/evaluation-tools/32f429idiscovery.html&quot;&gt;STM32F429ZI Discovery Board&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&quot;footnote-definition&quot; id=&quot;11&quot;&gt;&lt;sup class=&quot;footnote-definition-label&quot;&gt;11&lt;/sup&gt;
&lt;p&gt;&lt;a rel=&quot;external&quot; href=&quot;https://apps.microsoft.com/detail/windows-subsystem-for-linux/9P9TQF7MRM4R?hl=en-gb&amp;amp;gl=US&quot;&gt;WSL - Windows Subsystem for Linux&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&quot;footnote-definition&quot; id=&quot;12&quot;&gt;&lt;sup class=&quot;footnote-definition-label&quot;&gt;12&lt;/sup&gt;
&lt;p&gt;&lt;a rel=&quot;external&quot; href=&quot;https://apps.microsoft.com/detail/9PN20MSR04DW?hl=en-gb&amp;amp;gl=US&quot;&gt;Ubuntu 22.04.2 LTS&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>Jodida pero contenta - Buika</title>
        <published>2023-11-06T03:30:30+03:00</published>
        <updated>2023-11-06T03:30:30+03:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://erturk.me/blog/jodida-pero-contenta-buika/"/>
        <id>https://erturk.me/blog/jodida-pero-contenta-buika/</id>
        
        <summary type="html">&lt;p&gt;my heart still beats with the most distant stars&lt;/p&gt;</summary>
        
    </entry>
    <entry xml:lang="en">
        <title>A New Look And Feel!</title>
        <published>2023-11-06T03:05:00+03:00</published>
        <updated>2023-11-06T03:05:00+03:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://erturk.me/blog/a-new-look-and-feel/"/>
        <id>https://erturk.me/blog/a-new-look-and-feel/</id>
        
        <summary type="html">&lt;p&gt;A journey to the Rust Language.&lt;/p&gt;</summary>
        
    </entry>
    <entry xml:lang="en">
        <title>Angina Pectoris</title>
        <published>2023-09-06T00:35:51+03:00</published>
        <updated>2023-09-06T00:35:51+03:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://erturk.me/blog/angina-pectoris/"/>
        <id>https://erturk.me/blog/angina-pectoris/</id>
        
        <summary type="html">&lt;p&gt;my heart still beats with the most distant stars&lt;/p&gt;</summary>
        
    </entry>
    <entry xml:lang="en">
        <title>Gratitude</title>
        <published>2023-07-24T12:32:02+03:00</published>
        <updated>2023-07-24T12:32:02+03:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://erturk.me/blog/gratitude/"/>
        <id>https://erturk.me/blog/gratitude/</id>
        
        <summary type="html">&lt;p&gt;Har icinde biten gonca gule minnet eylemem&lt;/p&gt;</summary>
        
    </entry>
    <entry xml:lang="en">
        <title>If We Pay Attention...</title>
        <published>2023-07-24T12:32:02+03:00</published>
        <updated>2023-07-24T12:32:02+03:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://erturk.me/blog/if-we-pay-attention/"/>
        <id>https://erturk.me/blog/if-we-pay-attention/</id>
        
        <summary type="html">&lt;p&gt;an elegant sadness&lt;/p&gt;</summary>
        
    </entry>
    <entry xml:lang="en">
        <title>Renegade</title>
        <published>2023-07-03T16:31:46+03:00</published>
        <updated>2023-07-03T16:31:46+03:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://erturk.me/blog/renegade/"/>
        <id>https://erturk.me/blog/renegade/</id>
        
        <summary type="html">&lt;p&gt;Seyh Bedrettin Destani&lt;/p&gt;</summary>
        
    </entry>
    <entry xml:lang="en">
        <title>A Case Study on the Yocto Project</title>
        <published>2022-08-20T00:29:04+03:00</published>
        <updated>2022-08-20T00:29:04+03:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://erturk.me/projects/a-case-study-on-the-yocto-project/"/>
        <id>https://erturk.me/projects/a-case-study-on-the-yocto-project/</id>
        
        <summary type="html">&lt;p&gt;Building a Barcode Reader From Beginning to End&lt;/p&gt;</summary>
        
    </entry>
    <entry xml:lang="en">
        <title>SciPowerLab Updated</title>
        <published>2022-08-20T00:29:04+03:00</published>
        <updated>2022-08-20T00:29:04+03:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://erturk.me/projects/sci-power-lab-updated/"/>
        <id>https://erturk.me/projects/sci-power-lab-updated/</id>
        
        <content type="html" xml:base="https://erturk.me/projects/sci-power-lab-updated/">&lt;span id=&quot;continue-reading&quot;&gt;&lt;/span&gt;
&lt;hr /&gt;
&lt;h1 id=&quot;scipowerlab&quot;&gt;SciPowerLab&lt;a class=&quot;zola-anchor&quot; href=&quot;#scipowerlab&quot; aria-label=&quot;Anchor link for: scipowerlab&quot;&gt;
    &lt;svg class=&quot;zola-anchor-link&quot; viewBox=&quot;0 0 16 16&quot; version=&quot;1.1&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;
        &lt;path fill-rule=&quot;evenodd&quot;
            d=&quot;M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z&quot;&gt;
        &lt;/path&gt;
    &lt;/svg&gt;
&lt;/a&gt;
&lt;/h1&gt;
&lt;p&gt;Scilab Power Electronics ToolBox&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Author&lt;/strong&gt; ierturk &lt;a href=&quot;mailto:ierturk@ieee.org&quot;&gt;me [at] erturk.me&lt;/a&gt; @ &lt;a rel=&quot;external&quot; href=&quot;http://erturk.me&quot;&gt;ErturkMe&lt;/a&gt;&lt;br /&gt;
&lt;strong&gt;Version&lt;/strong&gt; 0.3.0&lt;br /&gt;
&lt;strong&gt;Date&lt;/strong&gt; 12-Jul-2022&lt;br /&gt;
&lt;strong&gt;Brief&lt;/strong&gt; Scilab Power Electronics ToolBox&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;Module uses Scilab&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;SciPowerLab Toolbox
ErturkMe - Power Electronics and Electrical Machines&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;XCPL (0.3) - Update for New Scilab 6 API for Xcos block&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Usage&lt;/strong&gt;&lt;br /&gt;
Run builder.sce in root folder&lt;br /&gt;
Run loader.sce created by builder macro&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Available Blocks&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ul&gt;
&lt;li&gt;xcpl_BLDC&lt;br /&gt;
Brushless DC Machine in abc frame&lt;/li&gt;
&lt;li&gt;xcpl_BLSC&lt;br /&gt;
Brushless DC Machine Sensored Controller&lt;/li&gt;
&lt;li&gt;xcpl_PMSM&lt;br /&gt;
Permanent Magnet Synchronous Machine in dq frame&lt;/li&gt;
&lt;li&gt;xcpl_PMSC&lt;br /&gt;
Permanent Magnet Synchronous Machine FOC Controller&lt;/li&gt;
&lt;li&gt;xcpl_IMPU&lt;br /&gt;
Induction Machine Per-Unit Model in dq frame&lt;/li&gt;
&lt;li&gt;xcpl_SVPWM&lt;br /&gt;
Space Vector PWM generator&lt;/li&gt;
&lt;li&gt;xcpl_PSDINV&lt;br /&gt;
Pseudo Inverter (It does not support three-state switching case)&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Available Demos&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ul&gt;
&lt;li&gt;Field Oriented Controlling Permanent Magnet Synchronous Machine&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Links&lt;/strong&gt;
The toolbox can be downloaded from following links or can be installed directly within SciLab.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a rel=&quot;external&quot; href=&quot;https://atoms.scilab.org/toolboxes/XCPL/0.3.0&quot;&gt;Scilab ATOMS - SciPowerLab - Toolbox for Power Electronics and Electrical Machines&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel=&quot;external&quot; href=&quot;https://github.com/ierturk/SciPowerLab&quot;&gt;GitHub - SciPowerLab - Toolbox for Power Electronics and Electrical Machines&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Citation&lt;/strong&gt;&lt;br /&gt;
@software{Erturk_Scilab_Xcos_Power_Electronics,
author = {Erturk, Ibrahim},
title = {{Scilab/Xcos Power Electronics and Electric Machines ToolBox}}
}&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;COPYRIGHT 2011-2022 ErturkMe&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.&lt;/p&gt;
&lt;/blockquote&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>Identifying Livestock With Yolo V3 Object Detection Using Pytorch</title>
        <published>2022-06-26T13:57:40+03:00</published>
        <updated>2022-06-26T13:57:40+03:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://erturk.me/projects/identifying-livestock-with-yolo-v3-object-detection-using-pytorch/"/>
        <id>https://erturk.me/projects/identifying-livestock-with-yolo-v3-object-detection-using-pytorch/</id>
        
        <content type="html" xml:base="https://erturk.me/projects/identifying-livestock-with-yolo-v3-object-detection-using-pytorch/">&lt;span id=&quot;continue-reading&quot;&gt;&lt;/span&gt;
&lt;hr /&gt;
&lt;div &gt;
    &lt;iframe
        width=&quot;560&quot; height=&quot;315&quot;
        src=&quot;https://www.youtube.com/embed/mNQ21kzEskE&quot;
        webkitallowfullscreen
        mozallowfullscreen
        allowfullscreen&gt;
    &lt;/iframe&gt;
&lt;/div&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>Öylesine</title>
        <published>2022-06-26T13:25:30+03:00</published>
        <updated>2022-06-26T13:25:30+03:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://erturk.me/blog/oylesine/"/>
        <id>https://erturk.me/blog/oylesine/</id>
        
        <summary type="html">&lt;p&gt;my heart still beats with the most distant stars&lt;/p&gt;</summary>
        
    </entry>
    <entry xml:lang="en">
        <title>Once Upon a Time</title>
        <published>2022-06-26T13:15:34+03:00</published>
        <updated>2022-06-26T13:15:34+03:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://erturk.me/blog/once-upon-a-time/"/>
        <id>https://erturk.me/blog/once-upon-a-time/</id>
        
        <summary type="html">&lt;p&gt;my heart still beats with the most distant stars&lt;/p&gt;</summary>
        
    </entry>
    <entry xml:lang="en">
        <title>June Night</title>
        <published>2022-06-26T12:14:39+03:00</published>
        <updated>2022-06-26T12:14:39+03:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://erturk.me/blog/june-night/"/>
        <id>https://erturk.me/blog/june-night/</id>
        
        <summary type="html">&lt;p&gt;They took away the blues&lt;/p&gt;</summary>
        
    </entry>
    <entry xml:lang="en">
        <title>The Vagabond Istanbul</title>
        <published>2022-06-26T12:13:57+03:00</published>
        <updated>2022-06-26T12:13:57+03:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://erturk.me/blog/the-vagabond-istanbul/"/>
        <id>https://erturk.me/blog/the-vagabond-istanbul/</id>
        
        <summary type="html">&lt;p&gt;if this city is beautiful it’s because of you&lt;/p&gt;</summary>
        
    </entry>
    <entry xml:lang="en">
        <title>The Book Cellar</title>
        <published>2022-06-26T12:13:02+03:00</published>
        <updated>2022-06-26T12:13:02+03:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://erturk.me/blog/the-book-cellar/"/>
        <id>https://erturk.me/blog/the-book-cellar/</id>
        
        <content type="html" xml:base="https://erturk.me/blog/the-book-cellar/">&lt;span id=&quot;continue-reading&quot;&gt;&lt;/span&gt;</content>
        
    </entry>
    <entry xml:lang="en">
        <title>The Discreet Shadow</title>
        <published>2022-06-26T12:12:30+03:00</published>
        <updated>2022-06-26T12:12:30+03:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://erturk.me/blog/the-discreet-shadow/"/>
        <id>https://erturk.me/blog/the-discreet-shadow/</id>
        
        <content type="html" xml:base="https://erturk.me/blog/the-discreet-shadow/">&lt;span id=&quot;continue-reading&quot;&gt;&lt;/span&gt;
&lt;p&gt;All previous crimes of the Russian empire…&lt;/p&gt;
&lt;p&gt; &lt;em&gt;The Unbearable Lightness of Being, Milan Kundera&lt;/em&gt;&lt;/p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>The Wild Fire</title>
        <published>2022-06-26T12:11:39+03:00</published>
        <updated>2022-06-26T12:11:39+03:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://erturk.me/blog/the-wild-fire/"/>
        <id>https://erturk.me/blog/the-wild-fire/</id>
        
        <summary type="html">&lt;p&gt;an elegant sadness&lt;/p&gt;</summary>
        
    </entry>
    <entry xml:lang="en">
        <title>Istanbul Will Appear if You Get Out of My Way</title>
        <published>2022-06-26T12:10:45+03:00</published>
        <updated>2022-06-26T12:10:45+03:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://erturk.me/blog/istanbul-will-appear-if-you-get-out-of-my-way/"/>
        <id>https://erturk.me/blog/istanbul-will-appear-if-you-get-out-of-my-way/</id>
        
        <summary type="html">&lt;p&gt;an elegant sadness&lt;/p&gt;</summary>
        
    </entry>
    <entry xml:lang="en">
        <title>I Have No Mission</title>
        <published>2022-06-26T12:09:36+03:00</published>
        <updated>2022-06-26T12:09:36+03:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://erturk.me/blog/i-have-no-mission/"/>
        <id>https://erturk.me/blog/i-have-no-mission/</id>
        
        <content type="html" xml:base="https://erturk.me/blog/i-have-no-mission/">&lt;span id=&quot;continue-reading&quot;&gt;&lt;/span&gt;
&lt;p&gt;I have no mission. No one has.&lt;/p&gt;
&lt;p&gt; &lt;em&gt;The Unbearable Lightness of Being, Milan Kundera&lt;/em&gt;&lt;/p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>Let the Ships Sail Without You</title>
        <published>2022-06-26T12:08:56+03:00</published>
        <updated>2022-06-26T12:08:56+03:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://erturk.me/blog/let-the-ships-sail-without-you/"/>
        <id>https://erturk.me/blog/let-the-ships-sail-without-you/</id>
        
        <summary type="html">&lt;p&gt;an elegant sadness&lt;/p&gt;</summary>
        
    </entry>
    <entry xml:lang="en">
        <title>If I Died I Would Die Perfectly</title>
        <published>2022-06-26T12:08:03+03:00</published>
        <updated>2022-06-26T12:08:03+03:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://erturk.me/blog/if-i-died-i-would-die-perfectly/"/>
        <id>https://erturk.me/blog/if-i-died-i-would-die-perfectly/</id>
        
        <summary type="html">&lt;p&gt;an elegant sadness&lt;/p&gt;</summary>
        
    </entry>
    <entry xml:lang="en">
        <title>When the Heart Speaks</title>
        <published>2022-06-26T12:05:16+03:00</published>
        <updated>2022-06-26T12:05:16+03:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://erturk.me/blog/when-the-heart-speaks/"/>
        <id>https://erturk.me/blog/when-the-heart-speaks/</id>
        
        <content type="html" xml:base="https://erturk.me/blog/when-the-heart-speaks/">&lt;span id=&quot;continue-reading&quot;&gt;&lt;/span&gt;
&lt;p&gt;When the heart speaks, the mind finds it indecent to object.&lt;/p&gt;
&lt;p&gt; &lt;em&gt;The Unbearable Lightness of Being, Milan Kundera&lt;/em&gt;&lt;/p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>I Already Know</title>
        <published>2022-06-26T10:57:50+03:00</published>
        <updated>2022-06-26T10:57:50+03:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://erturk.me/blog/i-already-know/"/>
        <id>https://erturk.me/blog/i-already-know/</id>
        
        <summary type="html">&lt;p&gt;an elegant sadness&lt;/p&gt;</summary>
        
    </entry>
    <entry xml:lang="en">
        <title>Don&#39;t Regret Anything in Life</title>
        <published>2022-02-05T15:44:41+03:00</published>
        <updated>2022-02-05T15:44:41+03:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://erturk.me/blog/dont-regret-anything-in-life/"/>
        <id>https://erturk.me/blog/dont-regret-anything-in-life/</id>
        
        <content type="html" xml:base="https://erturk.me/blog/dont-regret-anything-in-life/">&lt;span id=&quot;continue-reading&quot;&gt;&lt;/span&gt;
&lt;p&gt;Don’t regret anything in life. If it’s good, it’s wonderful. If it’s bad, it’s experience!
When you win, you win. When you lose, you learn.&lt;/p&gt;
&lt;p&gt; &lt;em&gt;Richard Phillips Feynman&lt;/em&gt;&lt;/p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>Those Who Died Where They Were Born</title>
        <published>2022-01-14T14:54:59+03:00</published>
        <updated>2022-01-14T14:54:59+03:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://erturk.me/blog/those-who-died-where-they-were-born/"/>
        <id>https://erturk.me/blog/those-who-died-where-they-were-born/</id>
        
        <content type="html" xml:base="https://erturk.me/blog/those-who-died-where-they-were-born/">&lt;span id=&quot;continue-reading&quot;&gt;&lt;/span&gt;
&lt;p&gt;Those who died where they were born…&lt;/p&gt;
&lt;p&gt; &lt;em&gt;Zulfu Livaneli&lt;/em&gt;&lt;/p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>Not Even Your Own</title>
        <published>2022-01-08T02:31:22+03:00</published>
        <updated>2022-01-08T02:31:22+03:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://erturk.me/blog/not-even-your-own/"/>
        <id>https://erturk.me/blog/not-even-your-own/</id>
        
        <content type="html" xml:base="https://erturk.me/blog/not-even-your-own/">&lt;span id=&quot;continue-reading&quot;&gt;&lt;/span&gt;
&lt;p&gt;No heart can ever be truly understood. Not even your own.&lt;/p&gt;
&lt;p&gt; &lt;em&gt;Red Queen, Victoria Aveyard&lt;/em&gt;&lt;/p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>Because of You</title>
        <published>2022-01-08T02:29:46+03:00</published>
        <updated>2022-01-08T02:29:46+03:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://erturk.me/blog/because-of-you/"/>
        <id>https://erturk.me/blog/because-of-you/</id>
        
        <summary type="html">&lt;p&gt;my heart still beats with the most distant stars&lt;/p&gt;</summary>
        
    </entry>
    <entry xml:lang="en">
        <title>A Wall Never Seen the Sun</title>
        <published>2022-01-08T02:28:00+03:00</published>
        <updated>2022-01-08T02:28:00+03:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://erturk.me/blog/a-wall-never-seen-the-sun/"/>
        <id>https://erturk.me/blog/a-wall-never-seen-the-sun/</id>
        
        <summary type="html">&lt;p&gt;an elegant sadness&lt;/p&gt;</summary>
        
    </entry>
    <entry xml:lang="en">
        <title>Words Without Letters</title>
        <published>2022-01-07T16:12:24+03:00</published>
        <updated>2022-01-07T16:12:24+03:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://erturk.me/blog/words-without-letters/"/>
        <id>https://erturk.me/blog/words-without-letters/</id>
        
        <content type="html" xml:base="https://erturk.me/blog/words-without-letters/">&lt;span id=&quot;continue-reading&quot;&gt;&lt;/span&gt;
&lt;p&gt;Words without letters&lt;br /&gt;
Standing in the shadow of the doors&lt;/p&gt;
&lt;p&gt; &lt;em&gt;1Q84, Haruki Murakami&lt;/em&gt;&lt;/p&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>Getting Started Developing Qt with VS Code Development Containers as Simple as Possible</title>
        <published>2022-01-05T17:47:00+03:00</published>
        <updated>2022-01-05T17:47:00+03:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://erturk.me/projects/getting-started-qt-with-vs-code/"/>
        <id>https://erturk.me/projects/getting-started-qt-with-vs-code/</id>
        
        <content type="html" xml:base="https://erturk.me/projects/getting-started-qt-with-vs-code/">&lt;span id=&quot;continue-reading&quot;&gt;&lt;/span&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;em&gt;Disclaimer&lt;/em&gt; — This is just my humble opinion and maybe there is more convenient way out there for this purpose.&lt;br /&gt;
For this purpose I already prepared a repo on GitHub&lt;sup class=&quot;footnote-reference&quot;&gt;&lt;a href=&quot;#1&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;. The repo is a collection of some experimental works on AI, Image Processing, Qt Qml and embedded RPC. The procedure is is simple as follow.&lt;/p&gt;
&lt;h3 id=&quot;requirements&quot;&gt;Requirements&lt;a class=&quot;zola-anchor&quot; href=&quot;#requirements&quot; aria-label=&quot;Anchor link for: requirements&quot;&gt;
    &lt;svg class=&quot;zola-anchor-link&quot; viewBox=&quot;0 0 16 16&quot; version=&quot;1.1&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;
        &lt;path fill-rule=&quot;evenodd&quot;
            d=&quot;M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z&quot;&gt;
        &lt;/path&gt;
    &lt;/svg&gt;
&lt;/a&gt;
&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Any &lt;code&gt;Linux&lt;/code&gt; Distribution (tested on &lt;code&gt;Debian 11&lt;/code&gt;) with &lt;code&gt;Wayland Display Manager&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;Docker&lt;/code&gt; daemon&lt;/li&gt;
&lt;li&gt;&lt;code&gt;VS Code&lt;/code&gt; with &lt;code&gt;Remote Container&lt;/code&gt; extension. Or alternatively it can be used &lt;code&gt;Remote SSH&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;run-just-as-follow&quot;&gt;Run Just as Follow&lt;a class=&quot;zola-anchor&quot; href=&quot;#run-just-as-follow&quot; aria-label=&quot;Anchor link for: run-just-as-follow&quot;&gt;
    &lt;svg class=&quot;zola-anchor-link&quot; viewBox=&quot;0 0 16 16&quot; version=&quot;1.1&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;
        &lt;path fill-rule=&quot;evenodd&quot;
            d=&quot;M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z&quot;&gt;
        &lt;/path&gt;
    &lt;/svg&gt;
&lt;/a&gt;
&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Clone the repos as follow&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #D8DEE9; background-color: #2E3440;&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #88C0D0;&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: #A3BE8C;&quot;&gt; git clone https://github.com/ierturk/qt-qml-ai-collection.git&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #88C0D0;&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: #A3BE8C;&quot;&gt; git submodule update --init&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Just open the cloned folder in &lt;code&gt;VS Code&lt;/code&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Reopen in the development container&lt;/li&gt;
&lt;li&gt;Build with &lt;code&gt;CMake&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Run any target built by &lt;code&gt;CMake&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For more information including building development containers you can refer the links below&lt;/p&gt;
&lt;p&gt;The repo used for demonstration&lt;sup class=&quot;footnote-reference&quot;&gt;&lt;a href=&quot;#1&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;&lt;br /&gt;
Development Container Sources&lt;sup class=&quot;footnote-reference&quot;&gt;&lt;a href=&quot;#2&quot;&gt;2&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;That’s all&lt;/p&gt;
&lt;div class=&quot;footnote-definition&quot; id=&quot;1&quot;&gt;&lt;sup class=&quot;footnote-definition-label&quot;&gt;1&lt;/sup&gt;
&lt;p&gt;&lt;a rel=&quot;external&quot; href=&quot;https://github.com/ierturk/qt-qml-ai-collection&quot;&gt;The repo used for demonstration&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div class=&quot;footnote-definition&quot; id=&quot;2&quot;&gt;&lt;sup class=&quot;footnote-definition-label&quot;&gt;2&lt;/sup&gt;
&lt;p&gt;&lt;a rel=&quot;external&quot; href=&quot;https://github.com/ierturk/dev-containers&quot;&gt;Development Container Sources&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
</content>
        
    </entry>
    <entry xml:lang="en">
        <title>A Collection Related FEMM Magnetic</title>
        <published>2022-01-05T17:21:33+03:00</published>
        <updated>2022-01-05T17:21:33+03:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://erturk.me/projects/a-collection-related-femm-magnetic/"/>
        <id>https://erturk.me/projects/a-collection-related-femm-magnetic/</id>
        
        <content type="html" xml:base="https://erturk.me/projects/a-collection-related-femm-magnetic/">&lt;span id=&quot;continue-reading&quot;&gt;&lt;/span&gt;
&lt;hr /&gt;
&lt;p&gt;The collection of &lt;strong&gt;FEMM&lt;/strong&gt; software examples and Libraries can be cloned from as follow.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #D8DEE9; background-color: #2E3440;&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: #88C0D0;&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: #A3BE8C;&quot;&gt; git clone https://github.com/ierturk/femm-magnetic-collection.git&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;FEMM Finite Element Analysis Software&lt;/strong&gt; is available freely from here&lt;sup class=&quot;footnote-reference&quot;&gt;&lt;a href=&quot;#1&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;h3 id=&quot;the-collection&quot;&gt;The Collection&lt;a class=&quot;zola-anchor&quot; href=&quot;#the-collection&quot; aria-label=&quot;Anchor link for: the-collection&quot;&gt;
    &lt;svg class=&quot;zola-anchor-link&quot; viewBox=&quot;0 0 16 16&quot; version=&quot;1.1&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;
        &lt;path fill-rule=&quot;evenodd&quot;
            d=&quot;M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z&quot;&gt;
        &lt;/path&gt;
    &lt;/svg&gt;
&lt;/a&gt;
&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;BLDC Machine Analysis&lt;/li&gt;
&lt;li&gt;Generating animated images from &lt;code&gt;FEMM&lt;/code&gt; solutions&lt;/li&gt;
&lt;li&gt;Java FEMM Link and Java PowerLab integration&lt;/li&gt;
&lt;li&gt;Java FEMM Link for acces to FEMM from Java programs&lt;/li&gt;
&lt;li&gt;SciCos FEMM Link. The &lt;code&gt;SciCos&lt;/code&gt; is the predecessor of &lt;code&gt;SciLab/XCos&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img src=&quot;https://erturk.me/projects/a-collection-related-femm-magnetic/./a-collection-related-femm-magnetic-thumbnail.gif&quot; alt=&quot;FEMM Magnetic Thumbnail&quot; /&gt;&lt;/p&gt;
&lt;div class=&quot;footnote-definition&quot; id=&quot;1&quot;&gt;&lt;sup class=&quot;footnote-definition-label&quot;&gt;1&lt;/sup&gt;
&lt;p&gt;&lt;a rel=&quot;external&quot; href=&quot;https://www.femm.info/wiki/HomePage&quot;&gt;Finite Element Method Magnetics&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
</content>
        
    </entry>
</feed>
